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

feature: Add grouping for Domains #266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

cNille
Copy link

@cNille cNille commented Feb 2, 2025

Pull-request implementing grouping of domains. So that we can support multiple-admin panels, as mentioned in #265

Tests written, and I've used it locally in a project and seems to work fine.

  • Allow a domain to have a :group.
  • When defining ash_admin routes, allow to filter on a domain group.
  • Test: For the ash_admin_test.exs to ensure the group is accessible.
  • Test: For verifying the behaviour on page_live.
  • Test/refactor: DomainA and DomainB, to easier test one against the other. It was hard otherwise doing the refute html checks in the test when one was named Domain and the other DomainB as one contained the other 😂

Contributor checklist

  • Bug fixes include regression tests
  • Features include unit/acceptance tests

- Allow a domain to have a :group.
- When defining ash_admin routes, allow to filter on a domain group.
- Test: For the ash_admin_test.exs to ensure the group is accessible.
- Test: For verifying the behaviour on page_live.
- Test/refactor: DomainA and DomainB, to easier test one against the other.
@zachdaniel
Copy link
Contributor

The thing that is going to need to be tested here is with relationships that cross domains. Please be sure to try out cross-domain relationships and see the effects. We likely need to hide certain UI elements & buttons for viewing items that are not in the group that is currently being viewed.

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