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

Error when trying to change the 'Place of stay' and 'Responsible jurisdiction' of Port Health case as responsible jurisdiction is editable #12708

Open
adinaflorea9 opened this issue Oct 26, 2023 · 1 comment
Labels
cases change A change of an existing feature (ticket type) ready Issue fulfills the definition of ready and can be implemented vaadin-app Affects the Vaadin application

Comments

@adinaflorea9
Copy link

adinaflorea9 commented Oct 26, 2023

Problem Description

An error appears asking the user to provide a valid point of entry appears when trying to change the 'Place of stay' and 'Responsible jurisdiction' of a port health case (point of entry case) for cases of Travel Entries and for cases created directly as point of entry cases.

Steps:
Create case from the page of a travel entry:

  1. Log in with an Admin+NatUser;
  2. Open an existing travel entry and click on 'Create case';
  3. Fill in the mandatory information and se the jurisdiction to Region1, District1;
  4. Save the new case;
  5. When on the case edit page, update the jurisdiction to Region2, District 2 and try to save.

Create case from the case directory:

  1. Log in with an Admin+NatUser;
  2. In the 'Cases' directory, click to create a new case;
  3. For the 'Case origin' select 'Point of entry';
  4. Fill in the mandatory information and set the jurisdiction to Region 1, District 1;
  5. Save the new case;
  6. When on the case edit page, update the jurisdiction to Region 2, District 2 and try to save.

Actual behavior: An error appears asking the user to specify a valid point of entry.

Expected Behavior

The point of entry belongs to the responsible region and district -> it is cleared when the jurisdiction changed and saving is not allowed.

The responsible jurisdiction should be read only.

The "Place of stay of this case differs from its responsible jurisdiction" checkbox - if the checkbox is checked when the case is created, afterwards the place of stay information is already read only and can not be updated.

Additional Information

No response

@adinaflorea9 adinaflorea9 added bug An error or misbehavior of an existing feature (ticket type) cases vaadin-app Affects the Vaadin application major A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects) travel-entries labels Oct 26, 2023
@leventegal-she leventegal-she self-assigned this Nov 6, 2023
@leventegal-she
Copy link
Contributor

The point of entry belongs to the responsible region and district that's why it is cleared when the jurisdiction changed and saving is not allowed.

The expected behaviour should be that the responsible juridiction should be readonly. But it's a bit more complicated because of the "Place of stay of this case differs from its responsible jurisdiction" checkbox; a few possible combinations can be imagined but it needs a change request and refinemnt.

@leventegal-she leventegal-she removed their assignment Nov 6, 2023
@leventegal-she leventegal-she added needs-response Response from the issue creator required and removed travel-entries labels Nov 6, 2023
@MateStrysewske MateStrysewske added change A change of an existing feature (ticket type) and removed bug An error or misbehavior of an existing feature (ticket type) needs-response Response from the issue creator required major A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects) labels Nov 7, 2023
@adinaflorea9 adinaflorea9 added the ready Issue fulfills the definition of ready and can be implemented label Dec 11, 2023
@adinaflorea9 adinaflorea9 changed the title Error when trying to change the 'Place of stay' and 'Responsible jurisdiction' of Port Health case Error when trying to change the 'Place of stay' and 'Responsible jurisdiction' of Port Health case as responsible jurisdiction is editable Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cases change A change of an existing feature (ticket type) ready Issue fulfills the definition of ready and can be implemented vaadin-app Affects the Vaadin application
Projects
None yet
Development

No branches or pull requests

3 participants