Skip to content

[DO NOT MERGE] Backend work for testing AAF integration work on aaf-dev tenant - #282

Draft
amandazhuyilan wants to merge 6 commits into
mainfrom
aaf-dev
Draft

[DO NOT MERGE] Backend work for testing AAF integration work on aaf-dev tenant#282
amandazhuyilan wants to merge 6 commits into
mainfrom
aaf-dev

Conversation

@amandazhuyilan

Copy link
Copy Markdown
Contributor

No description provided.

@amandazhuyilan
amandazhuyilan marked this pull request as draft July 6, 2026 00:25
amandazhuyilan and others added 3 commits July 31, 2026 14:06
* feat: add account_type field to BiocommonsUser

* chore: add migration for account type

* test: unit test enum handling for account_type

* refactor: make app_metadata mandatory, but allow for Auth0 responses not including it

* refactor: set account type when creating user from Auth0 data

* fix: make migration compatible with sqlite

* test: update tests with account_type

* fix: set account type automatically when syncing exported users

* test: factory functions for new schemas

* test: update tests to reflect changed schemas

* fix: add path_separator to alembic config to address deprecation warning

* fix: add httpx2 for starlette test client

* fix: bump starlette-admin to fix deprecation warning

* fix: make sure account type enum is created in migration

* feat: add account permissions for checking if user can change email/password etc

* chore: apply account permission checks to password/username/email change endpoints

* test: add unit test of endpoint permissions for AAF accounts

* feat: add account type to export

* test: update tests of export

* feat: allow exporting users for specific connections

* chore: allow testing workflows to run on all PRs, not just to main

* feat: Auth0 client methods to get connections

* fix: only sync DB connection users for now

* chore: add pytest-sugar for better test output

* test: factories for Auth0 connection data

* test: tests of connection methods

* fix: disable username change for AAF for now, needs more thought

* test: update test of AAF change username
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