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

Investigate how groups and permissions are assigned to newly created repositories #2

Open
lorawoodford opened this issue Dec 27, 2024 · 0 comments
Assignees

Comments

@lorawoodford
Copy link
Collaborator

lorawoodford commented Dec 27, 2024

New groups are created with pre-defined permissions in an after_create callback in the repository model here: https://github.com/archivesspace/archivesspace/blob/v3.3.1/backend/app/model/repository.rb#L46-L127

We can override that via a plugin that will assign the permissions we want to the groups we want. This repo was created to hold a prototype of that plugin.

I also did a little tinkering to see if we could add the same type of CI guardrails around this override that we have for plugins that override views (e.g. https://github.com/Smithsonian/caas_aspace_sova_button). Using the same basic diffing idea, that is working in CI here as well and can be seen on this initial PR: https://github.com/Smithsonian/caas_aspace_group_baselines/actions/runs/12520979093/job/34927417018

@lorawoodford lorawoodford self-assigned this Dec 27, 2024
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

No branches or pull requests

1 participant