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

Add checks for the number of bookmarks and prevent removal of owned searches #1354

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

jcscottiii
Copy link
Collaborator

Change 1: Limit number of bookmarks

We already have a limit for the number of saved searches a user can own.

This code adds a new configuration for the number of bookmarks they can have.

In addition to the 25 saved searches they can own, they also can bookmark 25 other saved searches that they don't own.

Change 2: Prevent bookmark removal of owned searches

When a user creates a saved search, they are automatically bookmarked (Similar to issue tracker).

And in Issue Tracker, you can't remove the star if you are the admin. This change adds the same type of check.

…earches.

Change 1: Limit number of bookmarks

We already have a limit for the number of saved searches a user can own.

This code adds a new configuration for the number of bookmarks they can have.

In addition to the 25 saved searches they can own, they also can bookmark 25 other saved searches that they don't own.

Change 2: Prevent bookmark removal of owned searches

When a user creates a saved search, they are automatically bookmarked (Similar to [issue tracker](https://developers.google.com/issue-tracker/guides/work-with-hotlist#:~:text=Hotlists%20that%20you%20own%20are%20starred%20automatically)).

And in Issue Tracker, you can't remove the star if you are the admin. This change adds the same type of check.
@jcscottiii jcscottiii requested review from jrobbins and KyleJu April 2, 2025 16:38
@jcscottiii jcscottiii added this pull request to the merge queue Apr 2, 2025
Merged via the queue into main with commit 8bdcd32 Apr 2, 2025
6 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/saved-searches-v7.0.0 branch April 2, 2025 19:51
@jrobbins jrobbins mentioned this pull request Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants