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

feat(shared-views): Hoist starred views to the top of GET list #88851

Merged
merged 2 commits into from
Apr 7, 2025

Conversation

MichaelSun48
Copy link
Member

@MichaelSun48 MichaelSun48 commented Apr 4, 2025

This PR updates the GET /group-search-views/ logic to hoist starred views to the top when the createdBy query param is passed into the request.

Also updates the response schema to include a starred: boolean field that way the frontend knows which views are starred.

@MichaelSun48 MichaelSun48 requested a review from a team as a code owner April 4, 2025 21:05
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 4, 2025
Comment on lines -21 to -24


class GroupSearchViewStarredSerializerResponse(GroupSearchViewSerializerResponse):
position: int
Copy link
Member Author

Choose a reason for hiding this comment

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

Drive by change, this class was not used anywhere.

Copy link

codecov bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #88851   +/-   ##
=======================================
  Coverage   87.73%   87.73%           
=======================================
  Files       10072    10072           
  Lines      569655   569681   +26     
  Branches    22372    22372           
=======================================
+ Hits       499766   499803   +37     
+ Misses      69490    69479   -11     
  Partials      399      399           

@MichaelSun48 MichaelSun48 merged commit bf3cbb4 into master Apr 7, 2025
49 checks passed
@MichaelSun48 MichaelSun48 deleted the msun/sharedViews/addStarredToGetSchema branch April 7, 2025 16:05
andrewshie-sentry pushed a commit that referenced this pull request Apr 8, 2025
This PR updates the `GET` `/group-search-views/` logic to hoist starred
views to the top when the createdBy query param is passed into the
request.

Also updates the response schema to include a `starred: boolean` field
that way the frontend knows which views are starred.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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