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

ref(saved search): Migrate betterPriority to priority #52909

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

ceorourke
Copy link
Member

@ceorourke ceorourke commented Jul 14, 2023

Now that we've GA'd the new priority sort, we should clean up the saved searches that were made with the sort "betterPriority".

Step 1: Front end PR to stop saving searches w/ betterPriority #52910
Step 2: This PR
Step 3: Backend PR #52915

@ceorourke ceorourke requested a review from a team as a code owner July 14, 2023 19:57
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 14, 2023
@github-actions
Copy link
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0514_migrate_priority_saved_searches.py ()

--
-- MIGRATION NOW PERFORMS OPERATION THAT CANNOT BE WRITTEN AS SQL:
-- Raw Python operation
--

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #52909 (37b6c33) into master (923fcf3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #52909   +/-   ##
=======================================
  Coverage   79.37%   79.37%           
=======================================
  Files        4932     4934    +2     
  Lines      207130   207222   +92     
  Branches    35392    35405   +13     
=======================================
+ Hits       164407   164489   +82     
- Misses      37691    37701   +10     
  Partials     5032     5032           
Impacted Files Coverage Δ
src/sentry/tasks/integrations/__init__.py 100.00% <ø> (ø)
src/sentry/integrations/base.py 90.20% <100.00%> (+0.06%) ⬆️
src/sentry/integrations/github/integration.py 79.00% <100.00%> (+1.09%) ⬆️
...sentry/plugins/providers/integration_repository.py 91.74% <100.00%> (+0.48%) ⬆️
src/sentry/tasks/integrations/link_all_repos.py 100.00% <100.00%> (ø)

... and 10 files with indirect coverage changes

Copy link
Member

@wedamija wedamija left a comment

Choose a reason for hiding this comment

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

30k rows in this table, should be safe to run as part of the deploy

ceorourke added a commit that referenced this pull request Jul 17, 2023
Change references to the new priority sort to just "priority" for
simplicity and to prevent more saved searches being created with the
sort string "betterPriority".

After this is merged we'll run a migration to make all saved searches
for priority sort the same
(#52909) and then finish by
cleaning up the backend to only accept "priority" (right now it treats
betterPriority and priority the same".

Step 1: This PR
Step 2: Migration #52909
Step 3: Backend PR #52915
@ceorourke ceorourke merged commit f243492 into master Jul 17, 2023
@ceorourke ceorourke deleted the ceorourke/migrate-priority-saved-searches branch July 17, 2023 21:31
ceorourke added a commit that referenced this pull request Jul 17, 2023
Now that the betterPriority sort is out and has replaced the old
priority, just rename everything to priority for simplicity.

Step 1: FE PR: #52910
Step 2: Migration: #52909
Step 3: This PR!
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants