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

Remove Purpose, Add Conversation Type to database. Sync sync groups when syncing all groups too. #1261

Merged
merged 11 commits into from
Nov 14, 2024

Conversation

codabrink
Copy link
Contributor

@codabrink codabrink commented Nov 13, 2024

  • Remove Purpose from the db (and the codebase)
  • Substitute it for ConversationType column in the db
  • Add a flag to include sync groups in the find_groups query
  • Invoke that flag on the sync all conversations function

@codabrink codabrink changed the title Coda/sync cleanup Remove Purpose, Add Conversation Type to database. Sync sync groups when syncing all groups too. Nov 13, 2024
@codabrink codabrink marked this pull request as ready for review November 13, 2024 20:12
@codabrink codabrink requested a review from a team as a code owner November 13, 2024 20:12
// Otherwise filter sync groups out by default.
if !matches!(conversation_type, Some(ConversationType::Sync)) && !include_sync_groups {
query = query.filter(groups_dsl::conversation_type.ne(ConversationType::Sync));
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aside from removing Purpose and adding ConversationType to the db, here's the main change of this PR.
No longer unconditionally filtering out Sync groups, however we still filter them out by default.

Copy link
Contributor

@cameronvoell cameronvoell left a comment

Choose a reason for hiding this comment

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

nice improvement consolidating to conversation_type 👌

@codabrink codabrink merged commit 213dd16 into main Nov 14, 2024
15 checks passed
@codabrink codabrink deleted the coda/sync-cleanup branch November 14, 2024 15:08
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