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 error seen in validating uuid. #551

Merged
merged 2 commits into from
May 3, 2024
Merged

Conversation

bseeger
Copy link
Contributor

@bseeger bseeger commented May 2, 2024

Issue tracking number πŸ”—

Description of change ✍️

This fix relates to something missed when validating uuids. If a subflow iteration was already deleted and the user clicked "Go Back" the code didn't handle that well. This fixes how the code handles that scenario and adds a tests for that to catch regressions in the future.

Priority πŸ₯‡

Effect on other applications using FFB 🌊

Testing

βœ… Checklist before requesting a review

  • [x ] Does the new code follow our preferred coding
    style
    ?
  • [x ] Does the code include javadocs, where necessary?
  • [x ] Have tests for this feature been added / updated?
  • [na ] Has the readme been updated?

@@ -63,6 +64,7 @@ public class ScreenController extends FormFlowController {

public static final String FLOW = "/flow";
public static final String FLOW_SCREEN_PATH = "{flow}/{screen}";
private final String DELETE_CONFIRMATION_REDIRECT_UUID = "deleteConfirmationRedirectUuid";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to take this out. It was for an intermediate impl attempt that we didn't end up using.

@bseeger bseeger force-pushed the fix_subflow_screen_in_subflow branch from b442140 to 19c3969 Compare May 2, 2024 15:22
Copy link
Contributor

@spokenbird spokenbird left a comment

Choose a reason for hiding this comment

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

Looks good!

@bseeger bseeger merged commit ff30b31 into main May 3, 2024
5 checks passed
@bseeger bseeger deleted the fix_subflow_screen_in_subflow branch May 3, 2024 20:57
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.

None yet

2 participants