Skip to content

#12464 update code to work with both versions of display value string#12469

Merged
stevenwinship merged 2 commits into
developfrom
12464-fix-display-for-trailing-comma
Jun 16, 2026
Merged

#12464 update code to work with both versions of display value string#12469
stevenwinship merged 2 commits into
developfrom
12464-fix-display-for-trailing-comma

Conversation

@sekmiller

Copy link
Copy Markdown
Contributor

What this PR does / why we need it: Fixes the removal of the trailing comma in a Compound Value field regardless of whether the Display Value string is "VALUE," or "VALUE, ".

Which issue(s) this PR closes:

Special notes for your reviewer: Probably a more elegant way to do this, but I wanted to make sure it would work for the two display value strings that we know about.

Suggestions on how to test this: Remember for the geospatial it will remove the trailing comma for each given group of values (Country, State, City). There are no commas separating the groups - they are put on a new line. So if all your geospatial items are countries then there are no commas at all.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?: no. fixing something introduced by another PR

Additional documentation:

@github-actions github-actions Bot added the Type: Bug a defect label Jun 16, 2026
@sekmiller sekmiller moved this to Ready for Review ⏩ in IQSS Dataverse Project Jun 16, 2026
@sekmiller sekmiller added this to the 6.11 milestone Jun 16, 2026
@pdurbin pdurbin self-assigned this Jun 16, 2026
@pdurbin pdurbin moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Jun 16, 2026

@pdurbin pdurbin 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.

Just a tiny comment. I haven't tested the code but I'm ready to approve, once the tests pass.

Comment thread src/main/java/edu/harvard/iq/dataverse/DatasetFieldCompoundValue.java Outdated
@coveralls

coveralls commented Jun 16, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 25.024% (-0.001%) from 25.025% — 12464-fix-display-for-trailing-comma into develop

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:12464-fix-display-for-trailing-comma
ghcr.io/gdcc/configbaker:12464-fix-display-for-trailing-comma

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@github-actions

Copy link
Copy Markdown

Test Results

403 tests  ±0   388 ✅ ±0   33m 28s ⏱️ -9s
 55 suites ±0    15 💤 ±0 
 55 files   ±0     0 ❌ ±0 

Results for commit c84d7fb. ± Comparison against base commit 670f82f.

@sekmiller sekmiller removed their assignment Jun 16, 2026

@pdurbin pdurbin 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.

I haven't tested this, but it looks like a good fix to me and API tests are passing. Approved.

@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Jun 16, 2026
@stevenwinship stevenwinship moved this from Ready for QA ⏩ to QA - OK to Merge 🔥 in IQSS Dataverse Project Jun 16, 2026
@stevenwinship

Copy link
Copy Markdown
Contributor
image

@stevenwinship stevenwinship merged commit 259b4ab into develop Jun 16, 2026
22 checks passed
@github-project-automation github-project-automation Bot moved this from QA - OK to Merge 🔥 to Merged 🚀 in IQSS Dataverse Project Jun 16, 2026
@stevenwinship stevenwinship deleted the 12464-fix-display-for-trailing-comma branch June 16, 2026 20:37
@stevenwinship stevenwinship removed their assignment Jun 16, 2026
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug a defect

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Trailing comma when selecting a single country (e.g. Afghanistan)

4 participants