You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation put user_conversation in private DB, while conversation are at public db with ACL. getConversations trying to load conversation when querying user_conversation with transientInclude. But it is mistaken to assume skygear will able to do a cross database transientIncludes. Resulting the transient result is empty.
_Proposed solution_
Put the user_conversation back to public database and set it non public readable.
SQL for migration:
UPDATE "app_chat"."user_conversation" SET "_database_id"='', "_access"='[{"public": false}]'
And modify the user_conversation related code back to using publicDB.
The text was updated successfully, but these errors were encountered:
For existing DB, please run the following SQL for old database migration
`UPDATE "app_chat"."user_conversation" SET "_database_id"='', "_access"='[]'`
refs #29
Current implementation put
user_conversation
in private DB, whileconversation
are at public db with ACL.getConversations
trying to load conversation when querying user_conversation with transientInclude. But it is mistaken to assume skygear will able to do a cross database transientIncludes. Resulting the transient result is empty._Proposed solution_
Put the user_conversation back to public database and set it non public readable.
SQL for migration:
And modify the user_conversation related code back to using publicDB.
The text was updated successfully, but these errors were encountered: