-
-
Notifications
You must be signed in to change notification settings - Fork 219
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 the ability to remove the "All" default scope #2276
Comments
From here https://discord.com/channels/740892036978442260/1189990451269341234 I think it makes sense to be able to show the count on the
I think 1 is more friendly and 2 require less maintenance, we can also explore other approaches |
I was thinking about adding a custom method def scopes
remove_scope_all
scope Avo::Scopes::CustomAll
scope Avo::Scopes::Admins
end With this API we could even configure a default scope form when a user click on the menu item. def scopes
remove_scope_all
scope Avo::Scopes::CustomAll
default_scope Avo::Scopes::Admins
end The WDYT about the |
Great! Maybe |
Yeah, that could work too. |
@adrianthedev the logic was implemented on the 2 linked PRs. I'll do docs and tests after PRs review on the logic. Tests on CI will fail since it's testing on avo main branch. Tests should be run locally |
@adrianthedev there are 2 approaches Approach 1
Approach 2
|
Let's just do
remove_scope_all
and leavedefault_scope
for later.Tasks
The text was updated successfully, but these errors were encountered: