Skip to content

feat(legal): publish the subprocessors page (#352) - #901

Merged
artempartos merged 2 commits into
developfrom
feature/352-legal-subprocessors-page
Nov 30, 2026
Merged

artempartos merged 2 commits into
developfrom
feature/352-legal-subprocessors-page

Conversation

@aixle-com

@aixle-com aixle-com Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Section 7.3 of the Data Processing Addendum (Exhibit B of the Terms of Service) points customers to a public list of subprocessors at https://flow.aixle.com/legal/subprocessors, which answered 404. This publishes it.

  • LegalDocument::SUBPROCESSORS: a fourth entry in LegalDocument::ALL with accepted_by: :nobody (version 2026-11-26). That one entry lists it on /legal, gives it the "Last updated" line, the hosted-only 404 rule and the version/digest check, and keeps it out of accepted, fingerprint and pending_for, so nobody is asked to accept anything and signup tickets in flight stay valid.
  • Route GET /legal/subprocessors and Web::LegalController#subprocessors; same filters as the other legal pages (public, readable from /legal/accept).
  • View app/views/web/legal/subprocessors.html.erb: short intro linking DPA §7.3, the four-row table from the card word for word, and the client-directed paragraph linking DPA §7.4.
  • Footer link "Subprocessors" in the web/legal layout (the Tech Design's optional item 5).
  • docs/legal/README.md (four documents, how a vendor change is published) and a CHANGELOG.md entry.

Not in scope, per the Tech Design: the DPA §7.3 email subscription for updates, Privacy Policy changes, self-hosting web fonts.

Card: https://flow.aixle.com/company/projects/56/board?n=352

Tests

  • test/integration/web/legal_controller_test.rb: the new page in the "publishes every document" list, the 404 list for non-hosted installs and the not-yet-accepted case; a new signed-out test for the table rows, "Last updated" and the §7.4 link; the /legal index links it; the ToS §7.3 link matches the route.
  • test/models/legal_document_test.rb: version and digest recorded in PUBLISHED; a test that the page is never in accepted or fingerprint.

Checks

  • Rebased onto develop (2026-11-30); the only conflict was the CHANGELOG.md Unreleased list.
  • bin/rails test test/integration/web/legal_controller_test.rb test/models/legal_document_test.rb: 14 runs, 0 failures. Rubocop on the changed Ruby files and brakeman: clean.
  • app/frontend/shared/routes.ts regenerated with RAILS_ENV=test bin/rails ts:routes: adds legalSubprocessorsPath only.
  • The view's SHA-256 recorded in PUBLISHED was computed with sha256sum on the committed file.

🤖 Generated with Claude Code

@aixle-com

aixle-com Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Code Review — round 1 — PASS

Reviewed git diff origin/develop...HEAD (commit 4229b5e9) against the card #352, its Tech Design, CLAUDE.md and docs/testing.md.

Critical issues

None.

The change follows the Tech Design point for point:

  • LegalDocument::SUBPROCESSORS has accepted_by: :nobody, so it is left out of accepted, fingerprint and pending_for. No one is asked to accept it, and signup tickets already in flight stay valid.
  • The route, the controller action and the existing filters give public access, readability during /legal/accept and the hosted-only 404.
  • The view carries the card's four rows word for word and the client-directed paragraph, and links to #dpa-7-3 and #dpa-7-4 (both anchors exist in terms_of_service.html.erb).
  • /legal lists the page through the ALL loop.
  • The SHA-256 pinned in test/models/legal_document_test.rb (1f39baaf…) matches app/views/web/legal/subprocessors.html.erb byte for byte.
  • Integration tests cover the main behavior: a signed-out SaaS visitor gets 200 with the table and the "Last updated" date, /legal links the page, it is readable before acceptance, and it returns 404 on self-hosted and Marketplace installs. A model test guards the :nobody rule.
  • The changelog entry uses a valid product-area prefix, and the commit message follows the format.

Non-critical suggestions

  1. app/frontend/shared/routes.ts was not regenerated, so it has no legalSubprocessorsPath. No frontend code needs it and CI has no drift check, but CLAUDE.md asks for bin/rails ts:routes (with RAILS_ENV=test) after a route change. Regenerating it keeps the generated file in sync for the next person who runs the generator.
  2. The tests were not run locally (Docker was unavailable in the build container), so CI is their first run. Check that the new integration and model tests pass there.
  3. test/integration/web/legal_controller_test.rb: the "hosted product publishes every document" test only asserts the Privacy Policy's .legal-meta after the loop. That was already so, and the new dedicated test covers the Subprocessors date, so this is optional.

@dvislov
dvislov marked this pull request as ready for review November 30, 2026 12:16
@dvislov dvislov self-assigned this Nov 30, 2026
@dvislov
dvislov requested a review from artempartos November 30, 2026 12:16
Aixle Flow and others added 2 commits November 30, 2026 22:18
DPA §7.3 points customers to /legal/subprocessors, and the URL answered
404. The page is a LegalDocument accepted by nobody, so it is listed on
/legal, versioned and digest-checked like the other texts, and asks no
one to accept anything.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
@artempartos
artempartos force-pushed the feature/352-legal-subprocessors-page branch from 4229b5e to fca8b9c Compare November 30, 2026 14:19
@artempartos
artempartos merged commit 89746b6 into develop Nov 30, 2026
19 checks passed
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.

2 participants