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

[C-5183, C-5190] Refactor comment notifications #10092

Merged
merged 10 commits into from
Oct 18, 2024

Conversation

dylanjeffers
Copy link
Contributor

Description

After realizing some limitations with db-trigger notifications, I completely reworked notifications to be generated in the indexing layer itself. This made things ALOT more complicated, but was a necessary evil. Added a ton of test coverage.

Copy link

changeset-bot bot commented Oct 16, 2024

⚠️ No Changeset found

Latest commit: 67bf840

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers dylanjeffers changed the title [C-5183] Refactor comment notifications [C-5183, C-5190] Refactor comment notifications Oct 17, 2024
@@ -1,57 +0,0 @@
create or replace function handle_comment_mention() returns trigger as $$
Copy link
Contributor

Choose a reason for hiding this comment

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

i think you'd still want the to replace the existing function with a no-op? did @stereosteve say differently?

Copy link
Contributor Author

@dylanjeffers dylanjeffers Oct 17, 2024

Choose a reason for hiding this comment

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

@isaacsolo should have let you know that this was what steve said :) just need the migration to explicitly remove the triggers


if new.is_delete is false then
select tracks.owner_id
into entity_owner_id
Copy link
Contributor

Choose a reason for hiding this comment

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

these variable declarations can be cleaned up as well

raise IndexingValidationError(
f"parent_comment_id {parent_comment_id} must be a number"
)
if parent_comment_id is not None:
Copy link
Contributor

@isaacsolo isaacsolo Oct 17, 2024

Choose a reason for hiding this comment

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

nit could also just be if parent_comment_id same for cases below

@dylanjeffers dylanjeffers merged commit 52166e8 into main Oct 18, 2024
4 of 5 checks passed
@dylanjeffers dylanjeffers deleted the c-5183-fix-notifications branch October 18, 2024 10:49
audius-infra pushed a commit that referenced this pull request Oct 18, 2024
[528102b] Fix discovery comment notifications (#10119) Dylan Jeffers
[52166e8] [C-5183, C-5190] Refactor comment notifications (#10092) Dylan Jeffers
[40cdc8f] Fix get new blasts endpoint sql error (#10109) Reed
[761524e] Various comment reply fixes (muting/reporting) (#10096) JD Francis
[e488758] [C-5203] Fix comment unpin (#10102) Dylan Jeffers
[178f051] Update UDR to match specification (#10098) Raymond Jacobson
schottra added a commit that referenced this pull request Oct 18, 2024
…_tips

* origin/main:
  [PAY-3531] Add geo-location to download logging (#10118)
  [QA-1737] Center user links in collection and user cards (#10122)
  [C-5197] Fix native comment show more/less collapse (#10121)
  [C-5212] Open comment drawer from empty state (#10117)
  Audius Protocol v0.7.15
  Fix discovery comment notifications (#10119)
  [PAY-3522] Hides keyboard when opening purchase drawer from a DM (#10116)
  [C-5183, C-5190] Refactor comment notifications (#10092)
  Re-land changes to fix RN on xcode 16 (#10108)
  [QA-1773] Fix corner overflow on GiantTrackTile (#10110)
  [C-5209] Missing $ on downloads button (#10111)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants