visualize-admin / visualization-tool

The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
https://visualize.admin.ch
BSD 3-Clause "New" or "Revised" License
29 stars 3 forks source link

ADFS tweaks #1538

Closed ptbrowne closed 1 month ago

ptbrowne commented 1 month ago

Goals

Polishing login via government ADFS. Each commit should be self explanatory.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 8:38am
ptbrowne commented 1 month ago

The build on Vercel is failing since Prisma schema sync tries to drop columns. I do not see those columns locally. Does it ring a bell @adintegra ?

⚠️ There might be data loss when applying the changes: • You are about to drop the column created_at on the users table, which still contains 3 non-null values. • You are about to drop the column updated_at on the users table, which still contains 3 non-null values. Error: Use the --accept-data-loss flag to ignore the data loss warnings like yarn prisma db push --accept-data-loss error Command failed with exit code 1.

adintegra commented 1 month ago

@ptbrowne just saw your comment on the dropping of columns. The columns were added in the branch I created (but not yet merged) yesterday. I suspect the migration must have been run from the branch and caused the schema drift.