Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(CAT-2061) Fix empty string nullification #346

Merged
merged 1 commit into from
Sep 25, 2024
Merged

(CAT-2061) Fix empty string nullification #346

merged 1 commit into from
Sep 25, 2024

Conversation

david22swan
Copy link
Member

@david22swan david22swan commented Sep 25, 2024

Reinstating reverted change by Clebam with additional fix suggested by original author.

Original PR: #292
Revert PR: #342
Reason for revert: #340
Original author: https://github.com/Clebam

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@david22swan david22swan requested a review from a team as a code owner September 25, 2024 13:17
@david22swan
Copy link
Member Author

@Clebam Could you confirm that this is what you had in mind for your suggested fix on the revert PR?

Reinstating reverted change by Clebam with additional fix suggested by original author.

Original PR: #292
Revert PR: #342
Reason for revert: #340
Original author: https://github.com/Clebam
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.08%. Comparing base (78c3f26) to head (ccd3b58).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #346   +/-   ##
=======================================
  Coverage   92.08%   92.08%           
=======================================
  Files           6        6           
  Lines         720      720           
=======================================
  Hits          663      663           
  Misses         57       57           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Clebam
Copy link
Contributor

Clebam commented Sep 25, 2024

Hi @david22swan, Yes indeed. The purpose of this piece of code is to avoid sending a nil to a value that accepts only an Enum containing an empty string ''.

Originally my regex was a bit to wide an included Array[Enum[... (leading to the issue that lead to the revert)

The fix should properly only aim at Enum[

Copy link
Contributor

@jordanbreen28 jordanbreen28 left a comment

Choose a reason for hiding this comment

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

LGTM

@jordanbreen28 jordanbreen28 merged commit 16018aa into main Sep 25, 2024
8 checks passed
@jordanbreen28 jordanbreen28 deleted the CAT-2061 branch September 25, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants