Skip to content

Comments

fix: correct bugs and gaps in database setup chapter#10

Merged
Taure merged 2 commits intomainfrom
docs/expand-views-auth-sessions
Feb 24, 2026
Merged

fix: correct bugs and gaps in database setup chapter#10
Taure merged 2 commits intomainfrom
docs/expand-views-auth-sessions

Conversation

@Taure
Copy link
Contributor

@Taure Taure commented Feb 24, 2026

Summary

  • Fix generated config/0 to match actual rebar3_kura output (application:get_env for database, <<"postgres">> password, ?MODULE pool)
  • Clarify that kura_repo behaviour only requires config/0 as a callback
  • Rewrite "Configuring the repo" section to explain environment-specific overrides via sys.config
  • Add kura_migrator:migrate/1 call in supervisor startup with admonish tip about production usage
  • Fix provider hook from {post,...} to {pre,...} to match rebar3_kura_setup.erl
  • Fix query/2 example to show actual return format ({ok, [#{...}]} not raw pgo result)

Test plan

  • mdbook build succeeds without errors
  • All code examples cross-referenced against Kura and rebar3_kura source
  • Forward reference to schemas-migrations.md intact
  • Visual review of rendered chapter

🤖 Generated with Claude Code

Taure and others added 2 commits February 24, 2026 18:32
…F, and simplified login flow

- Add ErlyDTL syntax reference table, base layout with template inheritance
- Add CSRF token to login form (required by nova_csrf_plugin)
- Document all template options (view, headers, status_code)
- Move credential validation from security function into controller
- Simplify session_auth to return {redirect, "/login"} instead of bare false
- Remove manual session ID generation — use Nova's auto-created sessions
- Consolidate routes from three groups to two (public + protected)
- Add use_sessions config, session API return types, and delete/1 cookie behavior

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cross-referenced against Kura and rebar3_kura source to fix:
- config/0 now matches generator output (application:get_env for database,
  <<"postgres">> password, ?MODULE pool)
- Clarify kura_repo behaviour only requires config/0 callback
- Rewrite "Configuring the repo" to explain env-specific overrides
- Add kura_migrator:migrate/1 call in supervisor startup
- Fix provider hook from {post,...} to {pre,...}
- Fix query example to show actual return format ({ok, [#{...}]})

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Taure Taure merged commit 3c21e7b into main Feb 24, 2026
1 check passed
@Taure Taure deleted the docs/expand-views-auth-sessions branch February 24, 2026 17:44
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