Move return-logs-edit into return-logs folder #1592
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://eaflood.atlassian.net/browse/WATER-4805
In preparation for quarterly returns and as part of our continued efforts to migrate all existing features from the legacy code base, we are rebuilding the internal return log 'edit' journey.
The first change that has gone in added support for the Editing a return log session data. Quite rightly, we are keeping it and the subsequent pages separate from the general return logs pages for viewing return logs.
However, the initial services should have gone into a subfolder inside
/return-logs
, not a standalone folder.Also, the routing should have followed our existing conventions.
In the main, when interacting with a 'thing', we do it on a matching route. Viewing a bill run or return version? Then it's
/bill-runs
and/return-versions
.When we have finished building view a return log, it will be
/return-logs
.When we set up a 'thing', we put it on a
/setup
path under the main path, for example,/bill-runs/setup
. To keep things consistent we update the routing to match this.This may be at odds with a feature called 'edit a return log'. But it is worth bearing in mind we never actually edit the return log. The first time we complete this journey, we will set up the first return submission for the return log. Any subsequent edits are just 'setting up' new versions of the return submission.
So, a change to
/setup
will match existing conventions and give us some linguistic flexibility as we build out this feature.