Skip to content

feat: add eDNA Explorer platform - #284

Merged
amandazhuyilan merged 6 commits into
mainfrom
AAI-860-add-edna-explorer
Jul 28, 2026
Merged

feat: add eDNA Explorer platform#284
amandazhuyilan merged 6 commits into
mainfrom
AAI-860-add-edna-explorer

Conversation

@amandazhuyilan

@amandazhuyilan amandazhuyilan commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

AAI-860: Adds eDNA Explorer as a platform. Unlike bpa/galaxy/sbp, access is manual-approval only (not auto-granted at registration).

Changes

  • Add EDNA_EXPLORER to PlatformEnum
  • Add eDNA Explorer to admin PLATFORM_MAPPING
  • Alembic migration adding the EDNA_EXPLORER enum value (row created by the existing populate_platforms_from_auth0 sync)
  • Not added to DEFAULT_PLATFORMS → new users land in PENDING until an admin approves
  • Tests: admin platform create + assertion that registration does not auto-grant eDNA

Related infra code changes here: https://github.com/AustralianBioCommons/aai-infrastructure/pull/32

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)
  • For any new secrets, I have updated the shared spreadsheet and the GitHub Secrets.

How to Test Manually (if necessary)

CI tests shall pass!

amandazhuyilan and others added 3 commits July 17, 2026 10:10
- Add EDNA_EXPLORER to PlatformEnum + admin PLATFORM_MAPPING
- Alembic migration adding the EDNA_EXPLORER enum value
- Keep it out of DEFAULT_PLATFORMS so access is manual-approval only
- Tests: admin create + no auto-grant on registration

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amandazhuyilan
amandazhuyilan force-pushed the AAI-860-add-edna-explorer branch from 3579bec to b78e970 Compare July 17, 2026 00:40
…orer

# Conflicts:
#	tests/admin_api/test_admin.py
#	tests/test_biocommons_register.py

@marius-mather marius-mather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK but the migration is blank - do we need it?

Comment thread migrations/versions/39caad32922e_edna_explorer.py
@amandazhuyilan
amandazhuyilan force-pushed the AAI-860-add-edna-explorer branch from fb5f988 to 686003f Compare July 28, 2026 04:04
alembic-postgresql-enum recreates the enum type, which fails on PlatformEnum:
platform.id is a PK referenced by FKs in platformrolelink/platformmembership/
platformmembershiphistory, so recreation errors with 'foreign key constraint
cannot be implemented' (broke check-migrations on Postgres).

Revert the plugin (dep + env.py wiring + lockfile churn) and add EDNA_EXPLORER
in place via ALTER TYPE ... ADD VALUE, matching SBP (575a146957f2) and
REJECTED (c4c7a8e9b2d3). Verified upgrade/check/downgrade on Postgres + SQLite.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amandazhuyilan
amandazhuyilan force-pushed the AAI-860-add-edna-explorer branch from a6f9f6f to d0d601e Compare July 28, 2026 06:25
@marius-mather
marius-mather self-requested a review July 28, 2026 06:27

@marius-mather marius-mather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good now, thanks for fixing the migration

@amandazhuyilan
amandazhuyilan merged commit 71ca9a3 into main Jul 28, 2026
5 checks passed
@amandazhuyilan
amandazhuyilan deleted the AAI-860-add-edna-explorer branch July 28, 2026 06:29
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