Skip to content

fix: #5329 repair unit tests after v1.8.0 merge#5330

Merged
ajrbyers merged 1 commit into
r-v1.9.xfrom
b-5329-fix-unit-tests-post-v1-8
Jun 4, 2026
Merged

fix: #5329 repair unit tests after v1.8.0 merge#5330
ajrbyers merged 1 commit into
r-v1.9.xfrom
b-5329-fix-unit-tests-post-v1-8

Conversation

@ajrbyers

@ajrbyers ajrbyers commented Jun 4, 2026

Copy link
Copy Markdown
Member

Repairs failures introduced by the v1.8.0 merge:

  • journal_defaults.json: split the fused author_affiliation_dates / a11y_public_info entry (duplicate keys silently dropped the setting, causing Setting.DoesNotExist) and remove a duplicate subject_production_complete entry.
  • clean and material article templates: close unclosed {% if %} blocks and remove duplicated galley download blocks (also fixes a duplicate note_to_proofreader_2 id).
  • review notify tests: save the active editor so editor_user_required does not redirect to login; assignment_notification view now passes the article object (not its pk) to the template so se_can_see_pii works.
  • repository: add a SQLite _search override on PreprintSearchManager using preprintauthor (the base hardcodes Article's frozenauthor).
  • contacts_box_person.html: anonymise author name/email with se_can_see_pii so section editors cannot see PII.
  • add DefaultSettingsIntegrityTests to guard journal_defaults.json.

Repairs failures introduced by the v1.8.0 merge:

- journal_defaults.json: split the fused author_affiliation_dates /
  a11y_public_info entry (duplicate keys silently dropped the setting,
  causing Setting.DoesNotExist) and remove a duplicate
  subject_production_complete entry.
- clean and material article templates: close unclosed {% if %} blocks
  and remove duplicated galley download blocks (also fixes a duplicate
  note_to_proofreader_2 id).
- review notify tests: save the active editor so editor_user_required
  does not redirect to login; assignment_notification view now passes
  the article object (not its pk) to the template so se_can_see_pii works.
- repository: add a SQLite _search override on PreprintSearchManager
  using preprintauthor (the base hardcodes Article's frozenauthor).
- contacts_box_person.html: anonymise author name/email with
  se_can_see_pii so section editors cannot see PII.
- add DefaultSettingsIntegrityTests to guard journal_defaults.json.
@ajrbyers ajrbyers merged commit d2a85cd into r-v1.9.x Jun 4, 2026
4 checks passed
@ajrbyers ajrbyers deleted the b-5329-fix-unit-tests-post-v1-8 branch June 4, 2026 10:31
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