Skip to content

UIREQ-1363: Fix Year field to correctly parse and display multiple years - #1369

Merged
Dmitriy-Litvinenko merged 1 commit into
masterfrom
UIREQ-1363
May 26, 2026
Merged

UIREQ-1363: Fix Year field to correctly parse and display multiple years#1369
Dmitriy-Litvinenko merged 1 commit into
masterfrom
UIREQ-1363

Conversation

@Dmitriy-Litvinenko

@Dmitriy-Litvinenko Dmitriy-Litvinenko commented May 25, 2026

Copy link
Copy Markdown
Contributor

Purpose

Fix Year field to correctly parse and display multiple years

Refs

https://folio-org.atlassian.net/browse/UIREQ-1363

@github-actions

Copy link
Copy Markdown

Jest Unit Test Results

    1 files  ±0     66 suites  ±0   1m 42s ⏱️ +2s
  889 tests ±0    889 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 251 runs  ±0  1 251 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 1cbde07. ± Comparison against base commit 7c70b4c.

@sonarqubecloud

Copy link
Copy Markdown

@Dmitriy-Litvinenko
Dmitriy-Litvinenko requested a review from a team May 25, 2026 13:15
@Dmitriy-Litvinenko Dmitriy-Litvinenko added the AI A pull request that was made with the participation of AI (changes in code, tests, etc.) label May 25, 2026
@BogdanDenis
BogdanDenis requested a review from a team May 26, 2026 11:54
@Dmitriy-Litvinenko
Dmitriy-Litvinenko merged commit ccdafa3 into master May 26, 2026
16 checks passed
@Dmitriy-Litvinenko
Dmitriy-Litvinenko deleted the UIREQ-1363 branch May 26, 2026 13:13

@zburke zburke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is the right fix for the wrong problem. It is the right fix because it does what the ticket asks (fine, approved) but this change doubles down on an undocumented convention for supplying structured data in a free-text field. Is the PO aware of this glaring inadequacy? There is no front-end validation for this structured data. Did you file a follow-up bug? There is no back-end validation for this structured data. Did you file a follow-up bug?

Secondly, "fix year field" does not describe the problem or how this change solves it. Don't make me read your code to figure out what is happening and why.

This would have been a great opportunity to add some documentation to getFormattedYears(). What is the shape of the arguments going in and the string coming out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI A pull request that was made with the participation of AI (changes in code, tests, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants