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

Announcement reactions query spec improvement and refactor #28768

Merged
merged 6 commits into from Jan 17, 2024

Conversation

mjankowski
Copy link
Contributor

In the previous coverage I added for this we do exercise both account-present and account-not-present paths -- but we didn't have an assertion about the difference between those paths (the value of the me column in the query). This adds that coverage, and a few other details in coverage to get more precise.

The method change mainly pulls both the starting scope and the sql out to private methods, and tightens up return values with tap. I verified in console logs that the preloader still runs correctly here.

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bd53859) 84.85% compared to head (616535f) 84.86%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #28768   +/-   ##
=======================================
  Coverage   84.85%   84.86%           
=======================================
  Files        1038     1038           
  Lines       28162    28165    +3     
  Branches     4531     4531           
=======================================
+ Hits        23898    23902    +4     
  Misses       3103     3103           
+ Partials     1161     1160    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ClearlyClaire ClearlyClaire left a comment

Choose a reason for hiding this comment

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

This makes the query slightly more readable, but the whole thing is still incredibly slow and probably needs to be dropped or rewritten (with changes in the database model) eventually.

@ClearlyClaire ClearlyClaire added this pull request to the merge queue Jan 17, 2024
Merged via the queue into mastodon:main with commit 1b0cb3b Jan 17, 2024
28 checks passed
@mjankowski mjankowski deleted the announcement-reactions-query branch January 17, 2024 11:00
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.

None yet

2 participants