Skip to content

Conversation

@xNilsson
Copy link
Contributor

@xNilsson xNilsson 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

@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.

@xNilsson
Copy link
Contributor Author

Sorry for dropping the ball here, just letting you know that I am looking into it now and will try to fix this during coming week :)

xNilsson added 3 commits May 30, 2025 22:37
- 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.
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