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

chore(sales-dashboard): optimise sales dashboard search query #4377

Merged
merged 4 commits into from
Jul 24, 2024

Conversation

matthewelwell
Copy link
Contributor

Changes

Fix badly performing query in the sales dashboard for certain search terms.

How did you test this code?

Ran the sales dashboard locally and grabbed the resulting SQL query from the queryset, ran this against the production database to confirm that the query returned within a reasonable time period.

@matthewelwell matthewelwell requested a review from a team as a code owner July 24, 2024 10:24
@matthewelwell matthewelwell requested review from novakzaballa and removed request for a team July 24, 2024 10:24
Copy link

vercel bot commented Jul 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 10:49am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 10:49am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 10:49am

@github-actions github-actions bot added api Issue related to the REST API chore labels Jul 24, 2024
Copy link
Contributor

github-actions bot commented Jul 24, 2024

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-frontend:pr-4377 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4377 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api-test:pr-4377 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-4377 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith:pr-4377 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4377 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4377 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-4377 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4377 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-4377 Finished ✅ Results

Copy link
Contributor

github-actions bot commented Jul 24, 2024

Uffizzi Preview deployment-54570 was deleted.

Copy link

codecov bot commented Jul 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.82%. Comparing base (79b3ae7) to head (5fe2bf2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4377      +/-   ##
==========================================
+ Coverage   96.81%   96.82%   +0.01%     
==========================================
  Files        1165     1165              
  Lines       38526    38561      +35     
==========================================
+ Hits        37299    37338      +39     
+ Misses       1227     1223       -4     

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

@github-actions github-actions bot added chore and removed chore labels Jul 24, 2024
@matthewelwell matthewelwell force-pushed the chore(sales-dashboard)/fix-bad-query-for-skai branch from 6e04853 to b9714fc Compare July 24, 2024 10:39
@github-actions github-actions bot added chore and removed chore labels Jul 24, 2024
Copy link
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@github-actions github-actions bot added chore and removed chore labels Jul 24, 2024
@github-actions github-actions bot added chore and removed chore labels Jul 24, 2024
@matthewelwell matthewelwell added this pull request to the merge queue Jul 24, 2024
Merged via the queue into main with commit 369acbe Jul 24, 2024
34 checks passed
@matthewelwell matthewelwell deleted the chore(sales-dashboard)/fix-bad-query-for-skai branch July 24, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants