-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added create_at column to scheduled post local table #8601
base: updating-scheduled-post-actions
Are you sure you want to change the base?
Added create_at column to scheduled post local table #8601
Conversation
6a284f4
to
68eff02
Compare
@@ -167,7 +167,7 @@ export const transformSchedulePostsRecord = ({action, database, value}: Transfor | |||
scheduledPost.rootId = raw?.root_id ?? ''; | |||
scheduledPost.message = raw?.message ?? ''; | |||
scheduledPost.channelId = raw?.channel_id ?? ''; | |||
scheduledPost.files = raw?.files ?? emptyFileInfo; | |||
scheduledPost.files = raw?.metadata?.files ?? emptyFileInfo; | |||
scheduledPost.metadata = raw?.metadata ?? null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is not part of this PR, but 0/5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a minor sanity check.
@@ -22,6 +22,7 @@ export default schemaMigrations({migrations: [ | |||
{name: 'files', type: 'string'}, | |||
{name: 'root_id', type: 'string', isIndexed: true}, | |||
{name: 'metadata', type: 'string', isOptional: true}, | |||
{name: 'create_at', type: 'number'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sanity check: Here we are reusing a migration. Is that intended? I understand it is, because this will be the migration for the whole feature, and not something already in main, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, that's right, the whole feature needs migration (adding the scheduled post table to the local db), this is just a small part which was left.
20d7c19
to
68e9542
Compare
8ee12ac
to
96f7359
Compare
Summary
Ticket Link
Checklist
E2E iOS tests for PR
.Device Information
This PR was tested on:
Screenshots
Release Note