Parity PR 5b: service tests, one VERSION, and the 415 on a non-JSON write (mcl-bookclub#9) #18

Closed
mercurius wants to merge 0 commits from mercurius/4-pr5b-service into main
Member

Parity PR 5b of macula-services/mcl-bookclub-phoenix#4, with the Phoenix half of macula-services/mcl-bookclub#9.

  • Service tests the Erlang twin has (health with and without the query store, info's version), a console test against a real store, and one VERSION for the umbrella (every app and the release read it; /health reports the application's own version).
  • mcl-bookclub#9: MclBookclubPhoenixWeb.RequireJsonWrite in the :api pipeline answers 415 {"ok": false, "error": "unsupported_media_type"} for any POST that is not application/json (charset allowed), before the body is read. Red first (5741515), then the plug (cf504c4). It includes the Erlang fold from the Fable PASS: the DNS-rebinding wording (#12) and the malformed-Content-Type test.
  • CHANGELOG for both.

Local gates on b37d5d97: format, compile --warnings-as-errors, credo --strict, mix test (259 tests, 0 failures). Dialyzer is left to CI.

Refs macula-services/mcl-bookclub-phoenix#4
Refs macula-services/mcl-bookclub#9

Parity PR 5b of macula-services/mcl-bookclub-phoenix#4, with the Phoenix half of macula-services/mcl-bookclub#9. - Service tests the Erlang twin has (health with and without the query store, info's version), a console test against a real store, and one `VERSION` for the umbrella (every app and the release read it; `/health` reports the application's own version). - mcl-bookclub#9: `MclBookclubPhoenixWeb.RequireJsonWrite` in the `:api` pipeline answers `415 {"ok": false, "error": "unsupported_media_type"}` for any `POST` that is not `application/json` (charset allowed), before the body is read. Red first (5741515), then the plug (cf504c4). It includes the Erlang fold from the Fable PASS: the DNS-rebinding wording (#12) and the malformed-Content-Type test. - CHANGELOG for both. Local gates on b37d5d97: format, compile --warnings-as-errors, credo --strict, mix test (259 tests, 0 failures). Dialyzer is left to CI. Refs macula-services/mcl-bookclub-phoenix#4 Refs macula-services/mcl-bookclub#9
CHANGELOG: an unmatched route still answers 404 here; only the Erlang twin answers 415 (mcl-bookclub#9 review)
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 6m57s
c4 model / c4-model-1 (push) Successful in 3s
c4 model / c4-model (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 8m19s
4350b75abc
Phoenix runs the :api pipeline only on a matched route, so RequireJsonWrite
never sees POST /api/x or /api/a/b/c: those stay 404 (probed).
Member

Landed by fast-forward: main is 4350b75abc (from 7ed3ef30). This repository does not allow the manually-merged style, so the PR is closed by hand.

Landed by fast-forward: main is 4350b75abc16a34b1e361db1fbda73ba7aabfebe (from 7ed3ef30). This repository does not allow the manually-merged style, so the PR is closed by hand.
terra closed this pull request 2026-12-01 14:20:57 +00:00
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (pull_request) Successful in 6m57s
c4 model / c4-model-1 (push) Successful in 3s
c4 model / c4-model (push) Successful in 0s
ci / gates (OTP 28.4.3 / Elixir 1.18.4) (push) Successful in 8m19s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-bookclub-phoenix!18
No description provided.