Skip to content

feat: add local mode - #1

Open
NicoLaval wants to merge 7 commits into
InseeFr:mainfrom
Making-Sense-Info:feat/add-local-mode
Open

feat: add local mode#1
NicoLaval wants to merge 7 commits into
InseeFr:mainfrom
Making-Sense-Info:feat/add-local-mode

Conversation

@NicoLaval

Copy link
Copy Markdown

Local mode without Keycloak.

  • anonymous Guybrush / FAKEPERMISSION, Magma and DDI-AS mocked, Postgres started in-process with Zonky, data in .local-postgres/.
  • drop Pogues JSON in local-questionnaires/. on start and on drop, the file overwrites the same id.
  • mvn spring-boot:run or the IntelliJ Pogues (local) config defaults to this profile.
  • packaged jars are unchanged.

NicoLaval and others added 7 commits September 6, 2026 10:20
Keep the embedded cluster out of git so each machine can reuse its own .local-postgres/ without noise.

Co-authored-by: Cursor <cursoragent@cursor.com>
The no-auth chain was building an empty User, so the UI had no owner stamp to list or save questionnaires against.

Co-authored-by: Cursor <cursoragent@cursor.com>
Local mode needs a real JSONB/Liquibase database; amd64 binaries ship with the library, ARM Mac and Linux pull extra artifacts, and they stay out of the fat jar.

Co-authored-by: Cursor <cursoragent@cursor.com>
The folder is the source of truth: on start and on file change, JSON files overwrite the same id, so replacing a sample is no longer a silent no-op.

Co-authored-by: Cursor <cursoragent@cursor.com>
A workspace classpath with no explicit profile now starts as local, and IntelliJ gets a shared Pogues (local) run configuration. Packaged jars stay on production defaults.

Co-authored-by: Cursor <cursoragent@cursor.com>
Document the local profile, the drop folder, and that files overwrite the same questionnaire id.

Co-authored-by: Cursor <cursoragent@cursor.com>
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