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

fix(protocol-designer): add fallback for well order #16956

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

ncdiehl11
Copy link
Collaborator

@ncdiehl11 ncdiehl11 commented Nov 22, 2024

Overview

This fixes a case where in batch edit move liquid toolbox, well order was set to null, displaying an
unknown translation in the WellOrder component. This PR refactors the util used to set the first and
second well order values, providing a fallback if the value is null.

reference

Test Plan and Hands on Testing

  • create or edit protocol with multiple transfers and multiple mixes
  • command + click multiple transfers to open batch edit toolbox
  • verify that well order defaults to T2B, L2R
  • repeat with mix batch edit toolbox

Changelog

  • refactor well order util and provide fallback for null value
  • implement in both batch edit toolboxes

Review requests

see test plan

Risk assessment

low

This fixes a case where in batch edit move liquid toolbox, well order was set to null, displaying an
unknown translation in the WellOrder component. This PR refactors the util used to set the first and
second well order values, providing a fallback if the value is null.
@ncdiehl11 ncdiehl11 requested review from koji and jerader November 22, 2024 18:42
@ncdiehl11 ncdiehl11 self-assigned this Nov 22, 2024
@ncdiehl11 ncdiehl11 marked this pull request as ready for review November 22, 2024 18:42
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner November 22, 2024 18:42
'mix_wellOrder_first',
't2b'
)}
secondValue={getWellOrderFieldValue(
Copy link
Collaborator

@jerader jerader Nov 22, 2024

Choose a reason for hiding this comment

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

same here, propsForFields.mix_wellOrder_second?.value ?? 'l2r'

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

i guess this bug exists in production as well 🤔 thanks for addressing it!

@ncdiehl11 ncdiehl11 force-pushed the fix_pd-batchedit-wellorder branch from f358c06 to 86704da Compare November 22, 2024 19:15
@ncdiehl11 ncdiehl11 merged commit 95aa2f7 into edge Nov 22, 2024
14 checks passed
@ncdiehl11 ncdiehl11 deleted the fix_pd-batchedit-wellorder branch November 22, 2024 19:43
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.

2 participants