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(shared-views): Change visibility query param to createdBy #88754

Merged

Conversation

MichaelSun48
Copy link
Member

All views are shared now, so we're making the table groups "My Views" and "Others" (names are very subject to change)

Previously, the groups were based on visibility, hence why we needed a "visibility" query param to filter based on ownership. Now, since we're filtering based on whether the user has created it, we need a new query param — "createdBy" (open to naming suggestions).

Next steps are:

  • Expose whether views are starred or not in the response schema
  • Add sorting options, including hoisting starred views to the top of the list.

This query param is not being used by any public pages, so we do not need to worry about breaking user workflows by just removing the visibility param.

@MichaelSun48 MichaelSun48 requested a review from malwilley April 3, 2025 22:15
@MichaelSun48 MichaelSun48 requested a review from a team as a code owner April 3, 2025 22:15
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 3, 2025
@MichaelSun48 MichaelSun48 merged commit e18f4b8 into master Apr 4, 2025
48 checks passed
@MichaelSun48 MichaelSun48 deleted the msun/sharedViews/changeGetVisibilityToCreatedBy branch April 4, 2025 20:53
MichaelSun48 added a commit that referenced this pull request Apr 7, 2025
…8854)

Refactors the frontend to respect the change to the `GET`
`/group-serach-view/` endpoint
[here](#88754)


Also updates the headers for the tables in the All Views page to be "My
Views" and "Others"
andrewshie-sentry pushed a commit that referenced this pull request Apr 8, 2025
All views are shared now, so we're making the table groups "My Views"
and "Others" (names are _very_ subject to change)

Previously, the groups were based on visibility, hence why we needed a
"visibility" query param to filter based on ownership. Now, since we're
filtering based on whether the user has created it, we need a new query
param — "createdBy" (open to naming suggestions).

Next steps are:
* Expose whether views are starred or not in the response schema 
* Add sorting options, including hoisting starred views to the top of
the list.


This query param is not being used by any public pages, so we do not
need to worry about breaking user workflows by just removing the
visibility param.
andrewshie-sentry pushed a commit that referenced this pull request Apr 8, 2025
…8854)

Refactors the frontend to respect the change to the `GET`
`/group-serach-view/` endpoint
[here](#88754)


Also updates the headers for the tables in the All Views page to be "My
Views" and "Others"
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