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

Comment model semantics #6199

Merged
merged 17 commits into from
Jan 5, 2024
Merged

Comment model semantics #6199

merged 17 commits into from
Jan 5, 2024

Conversation

timolegros
Copy link
Collaborator

@timolegros timolegros commented Jan 4, 2024

Link to Issue

Closes: #5338

Description of Changes

  • Updates Comments.chain to Comments.community_id
  • Removes a bunch of unused indexes and renames a few to remove 'offchain' prefix
  • Updates getComentDepth function to use a single recursive SQL query rather than multiple queries.

"How We Fixed It"

Test Plan

  • Search for comments
  • CRUD comments
  • Delete a community
  • Get community stats (analytics page and admin-panel)
  • Export members list from admin-panel
  • Mark and unmark comment as spam
  • CRUD comment notification subscriptions
  • CRUD discobot comments

Deployment Plan

Other Considerations

@timolegros timolegros temporarily deployed to commonwealth-frick January 4, 2024 16:11 Inactive
@timolegros timolegros temporarily deployed to discobot-listener-staging January 4, 2024 16:12 Inactive
@timolegros timolegros temporarily deployed to commonwealth-frick January 4, 2024 17:23 Inactive
# Conflicts:
#	packages/commonwealth/server/controllers/server_communities_methods/get_community_stats.ts
#	packages/commonwealth/server/routes/adminAnalytics.ts
# Conflicts:
#	packages/commonwealth/server/routes/deleteChain.ts
@timolegros timolegros marked this pull request as ready for review January 4, 2024 21:47
Copy link
Contributor

@lzach83 lzach83 left a comment

Choose a reason for hiding this comment

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

Everything looks good to me

# Conflicts:
#	packages/commonwealth/client/scripts/views/components/Profile/ProfileActivityRow.tsx
#	packages/commonwealth/server/models/community.ts
#	packages/commonwealth/server/routes/bulkOffchain.ts
#	packages/commonwealth/server/routes/communityStats.ts
#	packages/commonwealth/server/routes/deleteChain.ts
#	packages/commonwealth/server/scripts/emitWebhook.ts
@timolegros timolegros requested a review from rbennettcw January 5, 2024 21:13
Copy link
Collaborator

@kurtisassad kurtisassad left a comment

Choose a reason for hiding this comment

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

LGTM

@timolegros timolegros merged commit 5e4fd9a into master Jan 5, 2024
6 of 7 checks passed
@timolegros timolegros deleted the tim/comment-model-semantics branch January 5, 2024 22:12
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.

Comments table + model semantics - Child of #3779
4 participants