Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the copier project template for the v0.6.12-rc1 release, focusing on auth-enabled stacks: ensuring insights API tests work when endpoints are auth-protected, improving auth UX in the dashboard modals, and adding tooling/support for role management.
Changes:
- Update insights/cache tests to send Authorization headers via a shared
auth_headersfixture (no-op when auth isn’t included). - Add “first user becomes admin” behavior in
UserServiceand introduce a CLI command to promote user roles, with accompanying i18n strings. - Refactor Auth dashboard modal tabs to always show a refresh action in error states.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| aegis/templates/copier-aegis-project/{{ project_slug }}/tests/test_cache_integration.py | Adds auth_headers usage for insights endpoint cache integration test. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/tests/conftest.py.jinja | Introduces admin_user + auth_headers fixtures (or no-op headers when auth absent). |
| aegis/templates/copier-aegis-project/{{ project_slug }}/tests/api/test_insights_endpoints.py | Sends auth_headers for /api/v1/insights/all calls to support auth-protected deployments. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/app/services/auth/user_service.py.jinja | Implements “first user becomes admin” + sets role on created/OAuth users. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/zh.py | Adds translations for promote-role CLI messaging and options. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/en.py | Adds English strings for promote-role CLI messaging and options. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/app/core/config.py.jinja | Sets AUTH_ENABLED default to true when auth service is included. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/app/components/frontend/dashboard/modals/auth_users_tab.py.jinja | Refactors refresh row into a helper and includes refresh on error rendering. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/app/components/frontend/dashboard/modals/auth_orgs_tab.py.jinja | Same refresh-row refactor for orgs tab; includes refresh on error rendering. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/app/cli/auth.py.jinja | Adds promote_user command and supporting role validation/messages. |
| aegis/templates/copier-aegis-project/{{ project_slug }}/.env.example.jinja | Updates auth section with clearer guidance and conditional defaults. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.