Skip to content

chore(content): sync Photon export endpoint to dev - #999

Merged
MathiasStrom merged 1 commit into
devfrom
chore/sync-photon-export-to-dev
Jul 22, 2026
Merged

chore(content): sync Photon export endpoint to dev#999
MathiasStrom merged 1 commit into
devfrom
chore/sync-photon-export-to-dev

Conversation

@MathiasStrom

Copy link
Copy Markdown
Contributor

Bringer eksport-endepunktet fra #998 inn på dev.

#998 ble basert direkte på master for å nå prod raskt, og hoppet dermed over dev. dev hadde ikke divergert (lå bare 2 commits bak), så dette er ren synkronisering — samme commit cherry-picket, konfliktfritt.

Etter dette stemmer dev og master igjen, og feature-brancher fra dev får med endepunktet.

Ingen kodeendring utover det som allerede er reviewet i #998.

🤖 Generated with Claude Code

Photon (the new backend) has no access to this database, so the one-time user
migration cannot read MySQL directly. This adds a read-only bulk export it can
consume over HTTP instead.

GET /migration/photon-user-export/ returns every user with the exact fields
Photon's import needs — name, email, gender, allergy, image, the flags, and the
bio (description, gitHub_link, linkedIn_link). Password hashes and auth tokens
are left out on purpose: Photon sets its own placeholder password and users
authenticate via Feide afterwards, so no secret leaves this system.

Gated on is_admin_user (HS/Index) AND is_superuser. It exposes every member's
name, email and bio in one response, so it is meant to be short-lived — remove
it once the migration is done.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MathiasStrom
MathiasStrom merged commit 6b00b3d into dev Jul 22, 2026
9 checks passed
@MathiasStrom
MathiasStrom deleted the chore/sync-photon-export-to-dev branch July 22, 2026 14:52
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.

1 participant