Skip to content

[LIMS-413]Improvement: Make dynamic editable#473

Merged
NKatti2011 merged 2 commits intoprereleasefrom
improvement/LIMS-413/make-dynamic-changable
Feb 23, 2023
Merged

[LIMS-413]Improvement: Make dynamic editable#473
NKatti2011 merged 2 commits intoprereleasefrom
improvement/LIMS-413/make-dynamic-changable

Conversation

@MattPrit
Copy link
Contributor

JIRA ticket: LIMS-413

Changes:

  • Allow DYNAMIC to be changed via the shipment page - i.e. allow users to change 'responsive remote' after a shipment has been created.
  • Change the type of DYNAMIC to be a string 'Yes'/'No' rather than a boolean.
  • Allow responsive remote options (REMOTEORMAILIN, SESSIONLENGTH, ENERGY, MICROFOCUSBEAM, SCHEDULINGRESTRICTIONS, LASTMINUTEBEAMTIME, DEWARGROUPING) to be shown/hidden when the value of DYNAMIC is changed on the shipment page.

To test:

  • Check that DYNAMIC and the remote options can be edited via the shipment page.

@MattPrit MattPrit requested a review from NKatti2011 February 15, 2023 13:26
$dynamic = $this->has_arg("DYNAMIC") ? $this->arg("DYNAMIC") : null;
$dynamic = null;
if ($this->has_arg('DYNAMIC')){
$dynamic = $this->arg("DYNAMIC") ? "Yes" : "No";
Copy link
Collaborator

Choose a reason for hiding this comment

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

If Dynamic == No, how will it be assigned? With yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems that shipments can't be created with 'Yes'/'No', but can be updated with 'Yes'/'No' - which is strange. This is not an issue when going through the front-end, but does make the 'API' less sensible. Since this problem also applies to MICROFOCUSBEAM, LASTMINUTEBEAMTIME etc., perhaps fixing this should be a seperate ticket?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since its not relevant to updating we can leave this as is.

@NKatti2011
Copy link
Collaborator

LGTM

@NKatti2011 NKatti2011 merged commit 896006a into prerelease Feb 23, 2023
NKatti2011 pushed a commit that referenced this pull request Feb 23, 2023
* LIMS-413: Make 'dynamic' editable on shipment page

* LIMS-413: Fix conversion of DYNAMIC to Yes/No
@John-Holt-Tessella John-Holt-Tessella deleted the improvement/LIMS-413/make-dynamic-changable branch June 13, 2023 12:07
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.

2 participants