Skip to content
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

Open
wants to merge 4 commits into
base: updating-scheduled-post-actions
Choose a base branch
from

Conversation

Rajat-Dabade
Copy link
Contributor

Summary

Ticket Link

Checklist

  • Added or updated unit tests (required for all new features)
  • Has UI changes
  • Includes text changes and localization file updates
  • Have tested against the 5 core themes to ensure consistency between them.
  • Have run E2E tests by adding label E2E iOS tests for PR.

Device Information

This PR was tested on:

Screenshots

Release Note


@Rajat-Dabade Rajat-Dabade force-pushed the add-create-at-column-scheduled-post branch from 6a284f4 to 68eff02 Compare February 21, 2025 07:16
@Rajat-Dabade Rajat-Dabade self-assigned this Feb 21, 2025
@Rajat-Dabade Rajat-Dabade marked this pull request as ready for review February 21, 2025 07:16
@@ -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;
Copy link
Contributor

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

Copy link
Contributor

@larkox larkox left a 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'},
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@Rajat-Dabade Rajat-Dabade force-pushed the updating-scheduled-post-actions branch from 20d7c19 to 68e9542 Compare February 25, 2025 09:20
@Rajat-Dabade Rajat-Dabade force-pushed the add-create-at-column-scheduled-post branch from 8ee12ac to 96f7359 Compare February 25, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants