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

Slack Sync updates slack docs parents Field #1295

Merged
merged 35 commits into from
Sep 8, 2023
Merged

Conversation

philipperolet
Copy link
Contributor

Based on the similar Notion PR for review simplicity (there is a common change)

Much, much, much simpler than Notion

Same migration plan

@@ -559,7 +559,7 @@ export async function syncThread(
documentUrl: sourceUrl,
timestampMs: createdAt,
tags,
parents: [],
parents: [channelId],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance we could guarantee that we use the same Id here and in the connector ressource internal Id?

I worry we change one and not the other?

Maybe it;'s not possible and we leave a comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per slack thread, the convention is now to use external ids directly everywhere, so it is legit to leave it as is.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

group: ["documentId", "channelId"],
});
// update all parents fields for all pages and databases by chunks of 128
const chunkSize = 128;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a lot of connections, maybe 32?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will update in all 3 migrations

Copy link
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit worried by

spolu
spolu previously approved these changes Sep 8, 2023
Base automatically changed from ds-parents-field-notion to main September 8, 2023 10:19
@philipperolet philipperolet dismissed spolu’s stale review September 8, 2023 10:19

The base branch was changed.

@philipperolet philipperolet merged commit ccb115e into main Sep 8, 2023
@philipperolet philipperolet deleted the ds-parents-slack branch September 8, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants