Skip to content

Reject "|" in topic short names (#1488) - #1506

Merged
jonfroehlich merged 5 commits into
masterfrom
1488-reject-pipe-in-topic-short-name
Dec 5, 2026
Merged

jonfroehlich merged 5 commits into
masterfrom
1488-reject-pipe-in-topic-short-name

Conversation

@jonfroehlich

@jonfroehlich jonfroehlich commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Closes #1488

Summary

A topic (ProjectUmbrella) short name containing | silently broke the Projects-page filter: each card lists its topics' short names joined by |, and project-listing-filter.js splits on it, so AR|VR became two bogus topics that never match their own button. The admin accepted such a name without complaint.

ProjectUmbrella.clean_fields() now rejects it, with the error shown on the short_name field:

Short names cannot contain "|": the Projects page uses it to separate topics. Try "/" instead (e.g. "AR/VR").

  • website/models/project_umbrella.py: class constant SHORT_NAME_DELIMITER = "|", a clean_fields() override (runs the field validation first, then the delimiter check, skipped when short_name is excluded or already invalid), docstrings. (Moved from clean() in review round 1, so a stored "|" is never reported against a different submitted value.)
  • website/tests/test_project_listing_filter.py: the module's own KEYWORD_DELIMITER = "|" now comes from ProjectUmbrella.SHORT_NAME_DELIMITER, so the existing tests pin the template, the JS and the model to one value.
  • website/tests/test_project_umbrella.py (new): full_clean() rejects AR|VR on the field; Maker/Design Tools, Augmented Reality, E-Textiles, AR/VR still pass (pin against over-rejecting); the admin add view returns 200 with a short_name error and creates no row. Added in review round 1: the same through the "+" popup (_popup=1); None/"" give only the ordinary field error; the message names "|" and suggests AR/VR; a stored A|B row edited with a blank short name shows only the blank-field error; and a ModelForm without short_name can still edit such a row.
  • Comments only: at KEYWORD_DELIMITER in the JS and in the (still single-line) {# #} in display_project_snippet.html.

No change to the view, CSS, JS logic, e2e tests or anything a browser loads, so there is no cached-script risk.

Decisions (PROVISIONAL, pending Jon)

  1. Validation, not JSON-encoding the attribute (JSON is the choice if editors' naming should never be restricted).
  2. Model-level validation (clean_fields()), not a field validator, so no migration.
  3. help_text left alone (changing it would auto-generate an AlterField).
  4. The error wording above.
  5. Proposed, not filed: a follow-up issue for the adjacent bug where two topics with the same short_name collapse into one filter button with a wrong count (the view's dict is keyed on the non-unique short_name; filtering itself still works). Labels would be Bug, Projects, Project Gallery Page.
  6. No Data Health check for pipe-containing names; nothing creates umbrellas outside the admin.

Notes

  • The issue's "nothing checks that the template and JS delimiters agree" was already stale when filed: KeywordDelimiterAgreementTests (8de15f5) pins the JS constant, and test_card_lists_each_topic_whole splits the rendered attribute on the same constant. Re-pointing that constant at the model is therefore a pin, not a regression test.
  • Existing data: none of the 14 production or 9 test-server topics that appear on /projects/ contains |. Topics attached to no visible project can't be checked without DB access; if one does contain |, the admin will refuse to save any edit to it until it is renamed. That is the intended surfacing.
  • The check guards form entry only (objects.create(), shell and loaddata bypass it). Acceptable, since the admin, including the "+" popup on Project/Publication/Talk/Poster/Grant, is the only write path.

Tests, failing first

New tests committed alone (5b9dcc9) and run against the unchanged model:

Found 3 test(s).
F.F
FAIL: test_admin_add_with_pipe_shows_field_error_and_creates_nothing
    self.assertEqual(response.status_code, 200)
AssertionError: 302 != 200
FAIL: test_pipe_in_short_name_is_rejected_on_the_field
    with self.assertRaises(ValidationError) as ctx:
AssertionError: ValidationError not raised
Ran 3 tests in 0.050s
FAILED (failures=2)

(302 = the add view saved the row.)

Full suite, Python 3.13.1 in the local makeabilitylabwebsite-website image, --settings=makeabilitylab.settings_test:

  • this branch: 1220 tests at 169be16 and 1224 at a0c5ffa (review round 1 added 4 tests), each with 34 skipped and 2 failures; at the current head 0024821 (2 more tests) CI ran 1226 tests, OK
  • base (a643f99): 1217 tests, 34 skipped, the same 2 failures

The two failures (test_news_prose_editor ... test_cleaner_kwargs_match_snapshot, test_pa11y_ci_config ... test_hide_elements_includes_installed_toolbar_host) come from the stale local image (django-prose-editor and django-debug-toolbar older than the pins) and fail identically on base. CI builds from the pins.

No migration: I exported the base tree, ran makemigrations website there to produce a migration history from master's models, copied that history into an export of this branch, and ran makemigrations website --check --dry-run: "No changes detected in app 'website'", exit 0.

No screenshots: the only UI change is an admin field error message.

🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5

jonfroehlich and others added 2 commits December 5, 2026 09:00
A ProjectUmbrella short_name containing the Projects-page topic delimiter
splits into bogus topics in the card's data-project-keywords. These tests
expect full_clean() and the admin add view to reject it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Projects page joins each card's topic short names with "|" and the
filter JS splits on it, so a short name containing "|" silently broke
filtering for that topic. ProjectUmbrella.clean() now rejects it with an
error on the field. A model clean() rather than a field validator keeps the
field's deconstruction unchanged, so no migration is generated.

The model now owns the delimiter as SHORT_NAME_DELIMITER; the listing
filter tests take it from there, so the template, JS and model are pinned
to one value. Comments at the JS constant and the card template point at
the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@jonfroehlich jonfroehlich left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review 1 (Fable 5.2) of head 169be16

Verdict: no blocking and no should-fix findings. Every claim in the PR body that I could re-derive holds. Four nits below, none of which needs to hold the merge.

Local runs used Python 3.13 in the makeabilitylabwebsite-website image (stale, built 2026-12-01) with --settings=makeabilitylab.settings_test and a throwaway Postgres.

Claims re-derived

Claim Result
Failing first Confirmed. At 5b9dcc9 (tests only) the two modules run 13 tests with 2 failures: 302 != 200 in the admin test and ValidationError not raised in the unit test. At head: 13 tests, OK.
Full-suite counts Confirmed. Head: 1220 tests, 34 skipped, 2 failures. Base a643f99: 1217 tests, 34 skipped, the same 2 failures (test_cleaner_kwargs_match_snapshot, test_hide_elements_includes_installed_toolbar_host). Both come from the stale local image and are not findings.
CI test, e2e and a11y pass on this head.
No migration Confirmed. I generated a migration history from base's models, copied it under head, and ran makemigrations website --check --dry-run with the plain settings: "No changes detected in app 'website'", exit 0. The check is sensitive: changing max_length on the field makes it exit 1 with an AlterField.
"+" popup path Confirmed by probe. A POST to the add view with _popup=1 and `AR
Editors are covered Confirmed. A user in the Editors group posting `AR
The issue's delimiter-agreement point was already stale Confirmed. KeywordDelimiterAgreementTests landed in 8de15f5 (2026-12-01), an ancestor of base; the issue was filed 2026-12-04.
Existing data Confirmed today: production shows 14 topic buttons and the test server 9, none containing `
The admin is the only write path Confirmed by grep: no management command, fixture, API write or list_editable touches ProjectUmbrella.
Template comment stays single-line Confirmed.

Other probes that passed:

  • A stored name containing | blocks any edit until it is renamed; renaming it saves, and deleting it still works.
  • " A|B " is rejected.
  • short_name=None and "" give the ordinary field errors.
  • The rendered error is HTML-escaped and attached to the field.

Mutations (against the two test modules)

Mutation Caught?
Drop clean() Yes
Model constant to , Yes
JS constant to , Yes
Template delimiter to , Yes
Model and JS to ,, template left at | Yes
Non-field error instead of a short_name error Yes
Also reject / Yes
== instead of in Yes
Drop the or "" guard No (nit 2)
Change the message text No (nit 2)

Findings (all nits)

  1. The "+" popup path is relied on but not pinned.
    • The only admin test posts to the plain add view.
    • It works today (probe above). One extra POST with _popup=1 would pin it. Low value, since it is the same ModelAdmin.
  2. Two untested lines in clean().
    • Removing or "" leaves every test green, yet ProjectUmbrella(name="n", short_name=None).full_clean() would then raise TypeError instead of ValidationError.
    • The message wording is also unpinned.
    • Fix: add None to the unit test, and optionally assert that | appears in the message.
  3. clean() reads the stored value, not the submitted one, when the field fails its own validation.
    • Reproduction: create a row with short_name="A|B" via objects.create(), then POST a blank or 300-character short_name to its change view. The form shows the | error beside the real field error, although the submitted value has no |.
    • Related latent case: a ModelForm that leaves short_name out would raise ValueError: ... has no field named 'short_name' on such a row. No form in the repo excludes that field, so nothing reaches this today.
    • Both need a pre-existing row with |, and none is visible on either site.
    • Optional fix: do the check in clean_fields(self, exclude=None) and skip it when short_name is excluded. That also adds no migration.
  4. The PR body undercounts the popup hosts. The Grant add form also renders the project_umbrellas "+" link (Video does not). Same ModelAdmin, so behaviour is unaffected; a wording correction only.

Not verified

  • Topics attached to no visible project on either server (needs database access; the PR says the same).
  • The Playwright and Pa11y suites locally. I relied on the green CI jobs; the only browser-loaded change is a JS comment.

Second review: Gemini 4 Neon (xhigh) (gemini-4-neon-xhigh)

Gemini reviewed the same diff (base a643f99, 5 files, 166 lines; no files excluded) and reported 2 findings. I triaged each by reproducing it.

# Where Gemini's finding Severity if true Verdict
1 website/models/project_umbrella.py, def clean(self): clean() ignores Django's exclude list and validates a stale stored value; suggests clean_fields(exclude=None) nit Partly valid
2 website/tests/test_project_umbrella.py, def setUp(self): setUp() omits super().setUp(), so base-class initialization is skipped should-fix Rejected; withdrawn by Gemini

Finding 1, partly valid.

  • The stale-value half is confirmed and is my nit 3 above.
  • The excluded-form half is mis-described: the result is a ValueError, not a non-field error. It is also unreachable today, because no form excludes short_name.
  • The suggested clean_fields fix is sound and optional.

Finding 2, rejected.

  • DatabaseTestCase defines no setUp; it only provides the make_* helpers.
  • Django's TestCase does its per-test work in _pre_setup(), before setUp().
  • The two DatabaseTestCase subclasses already in test_project_listing_filter.py override setUp the same way.
  • The new module passes alone and inside the full suite.

Follow-up. I sent Gemini one rebuttal, on finding 2. It replied "I withdraw the finding", agreeing that nothing is skipped and that a super().setUp() call would only be defensive future-proofing. Nothing is left in dispute.

🤖 Generated with Claude Code — review, triage and verdicts by Fable 5.2, claude-fable-5-2; second-review findings by gemini-4-neon-xhigh via Google Antigravity CLI

jonfroehlich and others added 2 commits December 5, 2026 09:45
Pins the "+" popup add view, None/"" short names, and the error message.
Two new tests fail on the current clean(): it reports a stored "|" when the
submitted short name is itself invalid, and a ModelForm without short_name
raises ValueError on a row that already holds "|".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eview)

clean() ran even when short_name was excluded from model validation, so it
reported a row's stored "|" when the submitted short name had failed its own
validation, and raised ValueError in a ModelForm that leaves short_name out.
clean_fields() skips an excluded or already-invalid short_name, which also
makes the None guard unnecessary. Still no migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonfroehlich

Copy link
Copy Markdown
Member Author

Fix round 1: replies to review 1

I reproduced each finding before changing anything. The new tests were committed first (eda04de) and run against the previous head's model:

Found 7 test(s).
..FE...
ERROR: test_form_without_short_name_can_edit_a_row_with_a_stored_pipe
ValueError: 'NameOnlyForm' has no field named 'short_name'.
FAIL: test_stored_pipe_is_not_reported_when_submitted_value_is_invalid
AssertionError: 2 != 1
Ran 7 tests in 0.179s
FAILED (failures=1, errors=1)

The popup, None/"" and message tests already passed there, so they are pins rather than regression tests.

# Finding Reply
Fable 1 The "+" popup path is not pinned Fixed in eda04de. test_admin_popup_add_with_pipe_shows_field_error_and_creates_nothing POSTs with _popup=1 and expects 200, a short_name error and no row. It is a pin, since it passed before the fix.
Fable 2 or "" and the message are untested Fixed in eda04de and a0c5ffa. test_missing_short_name_gives_only_the_field_error covers None and "" (exactly one short_name error, and not the delimiter one), and the unit test now asserts that the message contains "|" and AR/VR. After the clean_fields() move, or "" is gone: the delimiter check now runs only when short_name has passed its own validation, which rules out None.
Fable 3 A stored | is reported when the submitted value is invalid, and a form that excludes short_name raises ValueError Fixed in a0c5ffa by moving the check from clean() to clean_fields(exclude=None). That method runs super().clean_fields() first and skips the check when short_name is excluded or has already failed. Both cases were reproduced first by test_stored_pipe_is_not_reported_when_submitted_value_is_invalid (2 errors on the field, now 1) and test_form_without_short_name_can_edit_a_row_with_a_stored_pipe (ValueError, now valid). Still no migration: I re-ran makemigrations website --check --dry-run on the new model against a history generated from base a643f99's models: "No changes detected in app 'website'", exit 0.
Fable 4 The PR body omits Grant from the popup hosts Fixed in the PR body ("Project/Publication/Talk/Poster/Grant"). The body's descriptions of clean() also now say clean_fields().
Gemini 1 clean() ignores exclude Fixed, same change as Fable 3 (a0c5ffa). As triaged, the excluded-field case raised ValueError rather than producing a non-field error. The new test pins the corrected behaviour.
Gemini 2 setUp() omits super().setUp() Disagree, no change, consistent with the triage and with Gemini's withdrawal. DatabaseTestCase defines no setUp, Django's per-test setup runs in _pre_setup(), and the existing DatabaseTestCase subclasses in test_project_listing_filter.py override setUp the same way.

Local verification: website.tests.test_project_umbrella and website.tests.test_project_listing_filter together ran 17 tests, OK. This used Python 3.13 in the local makeabilitylabwebsite-website image with --settings=makeabilitylab.settings_test. The full suite is left to CI on head a0c5ffa. The comments in the template and the JS now name ProjectUmbrella.clean_fields(), and the {# #} comment is still on one line.

🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5

@jonfroehlich jonfroehlich left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review 2 (Fable 5.2) of head a0c5ffa

Covers the fix range 169be16..a0c5ffa (2 commits, 5 files) and the fix-round replies to review 1.

Verdict: no blocking and no should-fix findings. Every review 1 finding is closed and the fixes broke nothing. Three nits below, all optional.

Local runs used Python 3.13.1 and Django 5.2.19 in the makeabilitylabwebsite-website image (stale) with --settings=makeabilitylab.settings_test and a throwaway Postgres 16. CI on this head: test, e2e and a11y pass.

Review 1 findings

Finding Closed? How I checked
Fable 1: the "+" popup path was not pinned Yes test_admin_popup_add_with_pipe_shows_field_error_and_creates_nothing fails when the delimiter check is removed.
Fable 2: or "" and the message were untested Yes or "" is gone; None and "" each give exactly one ordinary field error. Removing "|" or the AR/VR hint from the message each fails the unit test.
Fable 3 / Gemini 1: a stored | was reported against a different submitted value; a form excluding short_name raised ValueError Yes Putting the 169be16 clean() back reproduces the reply's failing-first claim exactly: ValueError in the excluded-form test and 2 != 1 in the stored-pipe test. Both pass at head.
Fable 4: the PR body omitted Grant Yes The body now reads "Project/Publication/Talk/Poster/Grant".
Gemini 2: super().setUp() No change, correctly Gemini withdrew it in review 1.

Nothing broke

  • Full suite at head: 1224 tests, 34 skipped, 2 failures (test_cleaner_kwargs_match_snapshot, test_hide_elements_includes_installed_toolbar_host).
  • The same two on base a643f99: I re-ran those two modules there and both fail identically. They come from the stale local image and are not findings.
  • No migration: I generated a migration history from base a643f99's models, copied it under head, and ran makemigrations website --check --dry-run with the plain settings: "No changes detected in app 'website'", exit 0. The check is sensitive: changing the field's max_length gives an AlterField and exit 1.

Mutations (against test_project_umbrella and test_project_listing_filter, 17 tests)

Mutation Caught?
Drop the exclude check Yes
Drop the already-failed check Yes
Revert to clean() Yes
Message without "|" Yes
Message without the AR/VR hint Yes
Remove the delimiter check Yes
== instead of in Yes
Non-field error instead of a short_name error Yes
Don't call super().clean_fields() Yes
Discard the errors super() raised Yes
The delimiter error replaces the other fields' errors No (nit 1)
exclude instead of (exclude or ()) No (nit 2)
super().clean_fields() without passing exclude No (nit 2)

Probes of the clean_fields() override (all passed)

  • Admin add view. AR/VR saves; X|Y returns 200 with no row. The same holds for a user in the Editors group.
  • Admin change view, on a row stored as A|B:
    • re-posting A|B, or posting C|D, is refused;
    • a 300-character value shows only the max-length error;
    • a blank name with a blank short name shows one "required" error on each;
    • A|B with a blank name shows the name error and the delimiter error;
    • renaming to A/B saves, and delete and the changelist still work.
  • "+" popup. A valid add returns the popup response. An invalid add re-renders as a popup with the error on the field. A rename through the popup change view saves.
  • Error key and placement. The key is short_name, there are no non-field errors, and the message renders HTML-escaped in ul.errorlist#id_short_name_error inside the field's own form row.
  • full_clean(exclude=...). A list, set or tuple naming short_name skips the check. None, an empty list or set, and excludes naming other fields still reject. A direct clean_fields() call works with and without exclude.
  • Other call paths. Nothing in the repo calls full_clean() or clean_fields() on ProjectUmbrella outside the tests, and the API only reads umbrella names. An all-fields ModelForm, a short_name-only form and a model formset each put the error on short_name.
  • Edge values. " A|B " is rejected. 300 pipes give only the max-length error. An integer is coerced to a string by the field before the in test, so there is no TypeError.

Findings (all nits)

  1. Merging with other fields' errors is not pinned.
    • Defect: if clean_fields() replaced the error dict from super() with only its own error, no test would notice.
    • Reproduction: insert errors = {} before errors["short_name"] = [...]. The 17 tests stay green, yet ProjectUmbrella(name="x" * 300, short_name="A|B").full_clean() then loses the name error.
    • Reach is low: in the admin the form reports name errors itself, so only direct full_clean() callers are affected.
    • Fix: one assertion that both name and short_name are in message_dict for that instance.
  2. Two argument-handling details are unpinned.
    • (exclude or ()) → exclude survives, because full_clean() always passes a set. Only a direct clean_fields() call would then raise TypeError.
    • super().clean_fields() without exclude also survives; catching it needs an excluded field that holds an invalid stored value.
    • Fix, if wanted: one direct clean_fields() call in the unit test. Low value.
  3. The PR body's full-suite count is stale. It still says "this branch: 1220 tests"; this head runs 1224, with the same 34 skipped and the same 2 failures. Wording only.

Not verified

  • The Playwright and Pa11y suites locally. I relied on the green e2e and a11y jobs; the range changes only comments in the JS and the template.
  • That the Grant add form renders the "+" link. I took that from review 1.

Second review: Gemini 4 Neon (xhigh) (gemini-4-neon-xhigh)

Gemini reviewed the same range (base 169be16, 5 files, 185 diff lines; no files excluded) and reported 0 findings. There was nothing to triage or rebut.

Its reasoning trace reached me truncated: I could read the opening and the closing part, not the middle. In what I could read, it raised these concerns and dropped each one itself:

Concern Gemini considered Its conclusion My check
A deferred short_name might be mishandled by clean_fields() Dropped as speculation; it also asserted that full_clean() excludes deferred fields automatically Not a defect, but that assertion is wrong on Django 5.2.19. I loaded a stored `A
None or "" might reach the delimiter check Dropped: the field's own validation fails first Agrees with the already-failed mutation above.
exclude passed as a one-shot iterator Dropped: the framework converts it full_clean() passes a set; lists, sets and tuples all behave (probe above).
Mutating e.error_dict and re-raising might alias or lose error codes Dropped: the dict is rebuilt intact Agrees with the mixed-errors probes above.
The popup test and the formset prefix in the test helper Sound; a helper's name called "stylistic" Agreed.

🤖 Generated with Claude Code — review, triage and verdicts by Fable 5.2, claude-fable-5-2; second-review findings by gemini-4-neon-xhigh via Google Antigravity CLI

The delimiter error must join the stock field errors rather than replace
them, and a direct clean_fields() call must accept exclude=None or a list
and pass it on to the stock validation. Each test fails under the matching
mutation of clean_fields().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonfroehlich

Copy link
Copy Markdown
Member Author

Fix round 2: replies to review 2

I reproduced all three nits first. Each of the review's three surviving mutations, applied to clean_fields() at a0c5ffa, still left test_project_umbrella green. No model code changed this round: the two new tests pin behaviour that was already correct, so they passed before and after. Each fails under its matching mutation:

Mutation Before 0024821 At 0024821
errors = {} before adding the delimiter error not caught FAILED (failures=1)
exclude instead of (exclude or ()) not caught FAILED (errors=1)
super().clean_fields() without exclude not caught FAILED (errors=1)
# Finding Reply
1 Merging with other fields' errors isn't pinned Fixed in 0024821. test_delimiter_error_is_merged_with_other_field_errors asserts that ProjectUmbrella(name="x" * 300, short_name="A|B").full_clean() reports both name and short_name.
2 (exclude or ()) and passing exclude to super() aren't pinned Fixed in 0024821. test_direct_clean_fields_call_honours_exclude makes direct clean_fields() calls. With no exclude, A|B is rejected on short_name. With exclude=["short_name"], it passes. With exclude=["name"], a 300-character stored name is not reported, which proves exclude reaches the stock validation.
3 The PR body's full-suite count is stale Fixed in the PR body. It now gives 1220 at 169be16 and 1224 at a0c5ffa, and CI's 1226 at 0024821.

Verification: locally, test_project_umbrella and test_project_listing_filter ran 19 tests, OK, using Python 3.13 in the local image with --settings=makeabilitylab.settings_test. CI at head 0024821 passed every job: test ran 1226 tests, OK; e2e ran 28 tests; a11y passed.

🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5

@jonfroehlich

Copy link
Copy Markdown
Member Author

Closing check: nothing found

Read at head 0024821: the whole PR diff against base a643f99 (5 files), plus both reviews and both fix-round replies, treated as claims to check.

Review findings. Neither review, including the two Gemini passes, raised a blocking or should-fix finding. Their nits are all closed at this head:

  • Review 1: the popup pin, the None/"" and message assertions, the move to clean_fields() (stored-value and excluded-field cases) and the Grant wording are all in the code and the PR body. Gemini's super().setUp() point was withdrawn and needs no change.
  • Review 2: test_delimiter_error_is_merged_with_other_field_errors and test_direct_clean_fields_call_honours_exclude are present, and the PR body's suite counts are corrected.

Commits after review 2 (a0c5ffa..0024821). One commit, 18 added lines in website/tests/test_project_umbrella.py; no model, template or JS change.

  • Full suite, Python 3.13.1 in the local makeabilitylabwebsite-website image (stale), --settings=makeabilitylab.settings_test, throwaway Postgres 16: 1226 tests, 34 skipped, 2 failures (test_hide_elements_includes_installed_toolbar_host, test_cleaner_kwargs_match_snapshot). I re-ran those two modules on base a643f99 and both fail identically there, so they come from the stale image and are not findings.
  • CI on this head: test, e2e and a11y pass.
  • No migration: with a migration history generated from base's models and copied under head, makemigrations website --check --dry-run (plain settings) prints "No changes detected in app 'website'", exit 0. Control: changing the field's max_length gives an AlterField and exit 1.

Consistency across files. The PR body, the model docstrings, the JS comment, the template comment (still one line) and the test-module comments all name clean_fields() and agree with what the method does: it runs the stock field validation first, skips the delimiter check when short_name is excluded or already invalid, and merges its error with the others. I found no code path outside the admin that creates or edits a ProjectUmbrella, which matches the "form entry only" note.

Not verified. The Playwright and Pa11y suites locally (I relied on the green CI jobs), and topics that are not shown on /projects/ on either server.

🤖 Generated with Claude Code — Fable 5.2, claude-fable-5-2

@jonfroehlich
jonfroehlich merged commit 9cb7211 into master Dec 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Topic filter: a "|" in a topic short_name breaks filtering by it

1 participant