[Feature Request] Scoped CRUD / Global Scope for CRUD Controllers
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 12/100
Direzione di ricerca
The issue names no files, classes or tests, so there is no concrete entry point yet. Before any code, a newcomer would need to find how CRUD controllers build their query and where the dashboard main menu is defined, then agree the design with maintainers, since the URL parameter, the 'All' option and per-controller filtering are all open questions. Done means that agreed design is written down or a first prototype is reviewed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Short description of what this feature will allow to do:
I would like to suggest a feature to define a global scope shared across multiple CRUD controllers, instead of having to implement the same filters in each controller.
I have already encountered this requirement in three different projects.
For example:
- Annual event management: An application used to manage a festival that takes place every year. Organizers manage participants, workshops, schedules, etc. There is no reason to mix records from different editions on the same CRUD pages.
- Multi-project management: An application managing multiple projects, where products, services, and other entities belong to a specific project. Users should be able to select a project and only see records related to it across all relevant CRUD controllers.
In my current implementations, I use a global dropdown in the main menu to select the active scope, which is stored in the session. However, this approach has a major limitation: if a user opens multiple browser tabs and changes the scope in one tab, it also affects the others.
A better approach would be to manage the scope through a URL parameter, automatically preserved across EasyAdmin navigation. This would allow users to work with different scopes in separate tabs without conflicts.
Example of how to use this feature
The expected behavior would be:
- A global dropdown would allow users to select the active scope.
- The dropdown could also include an optional "All" option to disable scoping and display records from all scopes together.
- Each CRUD controller could configure whether it uses the global scope and, if so, define how its queries should be filtered based on the selected scope.
- The selected scope would be preserved in the URL when navigating between CRUD pages.
- New records could automatically be associated with the selected scope.
- CRUD controllers not using the scope would remain unaffected.
- Different browser tabs could use different scopes independently.
Ideally, the scope selector would be configured at the dashboard level, while each CRUD controller would define its own filtering logic.
I think this could be useful for many applications, especially those managing multiple projects, organizations, events, or tenants.
Here is an exemple of how I render scope in my "events management" project main menu (only the CRUDs in red square are filtered by scope):
|
|
|
Another exemple of design (using menu header style for the dropdown) from another project (red block are scoped CRUDs):
|
|
|
- Lingua principale
- PHP
- Stelle
- 4.3k
- Fork
- 1.1k
- Merge medio
- 2g 9h
- PR unite (30g)
- 52
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di EasyCorp/EasyAdminBundle
-
bug design
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
EasyCorp/EasyAdminBundle#7958 ·
I maintainer di solito rispondono entro 2 giorni
-
design feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
EasyCorp/EasyAdminBundle#7930 ·
I maintainer di solito rispondono entro 2 giorni
-
design
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 88/100
EasyCorp/EasyAdminBundle#7879 ·
I maintainer di solito rispondono entro 2 giorni
-
design
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
EasyCorp/EasyAdminBundle#7875 ·
I maintainer di solito rispondono entro 2 giorni
-
#[AdminRoute]: the requirements of an action silently replace the ones of the classForse già presa @anthonyhacart l’ha presa 2 giorni fa. Apertafeature
Difficoltà 3/5 Mezza giornata Idoneità per principianti 30/100
EasyCorp/EasyAdminBundle#7956 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di EasyCorp/EasyAdminBundle
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
taskforcesh/bullmq#5238 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itForse già presa @bfs2021 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Automattic/jetpack#55517 ·
I maintainer di solito rispondono entro 1 giorno
-
Address edit modal: what the customer types before the fields load is reset to the saved valueApertaMajor
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
PrestaShop/ps_onepagecheckout#245 ·
I maintainer di solito rispondono entro 1 giorno
-
wpvc
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
10up/ElasticPress#4420 ·
I maintainer di solito rispondono entro 1 giorno