Skip to content

AAI-268 Get or create the Auth0 role before adding it to the DB#47

Merged
marius-mather merged 2 commits into
mainfrom
create-role-fix
Aug 7, 2025
Merged

AAI-268 Get or create the Auth0 role before adding it to the DB#47
marius-mather merged 2 commits into
mainfrom
create-role-fix

Conversation

@marius-mather

@marius-mather marius-mather commented Aug 6, 2025

Copy link
Copy Markdown
Collaborator

Description

AAI-268: allow for roles already existing when calling the API to add them to the database

Changes

  • Check for existing Auth0 role and only create it if needed
  • Unit tests

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have added unit / integration tests that prove my fix is effective or that my feature works
  • I have run all tests locally and they pass
  • I have updated the documentation (if applicable)

How to Test Manually (if necessary)

Run uv run pytest

Comment thread auth0/client.py
@amandazhuyilan amandazhuyilan self-requested a review August 7, 2025 00:04
@marius-mather marius-mather merged commit a82b3bc into main Aug 7, 2025
2 checks passed
@amandazhuyilan amandazhuyilan deleted the create-role-fix branch June 19, 2026 03:22
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