Skip to content

chore: show deleted organisations in sales dashboard#5390

Merged
matthewelwell merged 3 commits intomainfrom
chore/sales-dashboard-improvements
Apr 25, 2025
Merged

chore: show deleted organisations in sales dashboard#5390
matthewelwell merged 3 commits intomainfrom
chore/sales-dashboard-improvements

Conversation

@matthewelwell
Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • [ ] I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

The main purpose of this PR was to add the ability to show deleted organisations in the sales dashboard. Since I was already working in the area, I also tried to tackle something that has been bothering me for a while, which is the performance of the sales dashboard. As such, I tried to optimise the annotations to only annotate the queryset with any annotation that was needed for sorting (as you can see here) but this didn't actually change anything due to the behaviour of django's lazily evaluated querysets. Without diving deeper into the pagination logic, I'm not sure there's an option here to optimise the queries that are needed.

How did you test this code?

Validated the 'include deleted' logic locally when running the API.

@matthewelwell matthewelwell requested a review from a team as a code owner April 25, 2025 11:45
@matthewelwell matthewelwell requested review from khvn26 and removed request for a team April 25, 2025 11:45
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2025

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

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Apr 25, 2025 11:45am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Apr 25, 2025 11:45am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Apr 25, 2025 11:45am

@github-actions github-actions Bot added the api Issue related to the REST API label Apr 25, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 25, 2025

Docker builds report

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

@github-actions github-actions Bot added the chore label Apr 25, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 25, 2025

Uffizzi Preview deployment-63145 was deleted.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.61%. Comparing base (8dc92c3) to head (c06a104).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5390   +/-   ##
=======================================
  Coverage   97.61%   97.61%           
=======================================
  Files        1237     1237           
  Lines       42975    42979    +4     
=======================================
+ Hits        41952    41956    +4     
  Misses       1023     1023           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

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

👍

image image image

@matthewelwell matthewelwell merged commit 65bfa27 into main Apr 25, 2025
38 checks passed
@matthewelwell matthewelwell deleted the chore/sales-dashboard-improvements branch April 25, 2025 16:43
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