-
Notifications
You must be signed in to change notification settings - Fork 0
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
Select additional submission options page #988
Select additional submission options page #988
Conversation
9e546d7
to
7921d8a
Compare
https://eaflood.atlassian.net/browse/WATER-4306 Additional options for submission page. This will provide option for multiple upload, or none. Appropriate notifications will be shown to user based on selection.
7921d8a
to
4254b22
Compare
cb81efb
to
55b9d35
Compare
…ons-page-layout-and-controls
a0bf2d5
to
79329a8
Compare
79329a8
to
10791ed
Compare
…ons-page-layout-and-controls
…ons-page-layout-and-controls
c072acd
to
355386a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't often say this, but I think we might have too many tests! 😂
If you really think we should be testing both setting and updating values in our pages do please argue the case. But be warned, if I end up agreeing then the principle applies to all the other pages! 😜
test/services/return-requirements/submit-additional-submission-options.service.test.js
Show resolved
Hide resolved
…ons-page-layout-and-controls
e413ac8
to
f3a5fe8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really sorry @Demwunz I should have spotted the single option select thing on my first pass.
app/services/return-requirements/submit-additional-submission-options.service.js
Outdated
Show resolved
Hide resolved
test/services/return-requirements/submit-additional-submission-options.service.test.js
Outdated
Show resolved
Hide resolved
…ons-page-layout-and-controls
…ons-page-layout-and-controls
ce76694
to
64b40b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some really minor NITs left to resolve then all done!
@@ -10,6 +10,7 @@ const AddService = require('../services/return-requirements/add.service.js') | |||
const AgreementsExceptionsService = require('../services/return-requirements/agreements-exceptions.service.js') | |||
const CancelService = require('../services/return-requirements/cancel.service.js') | |||
const CheckService = require('../services/return-requirements/check.service.js') | |||
const AdditionalSubmissionOptionsService = require('../services/return-requirements/additional-submission-options.service.js') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT - think this just needs to go up a few lines to be under AbstractionPeriodService
.
* When a single agreement and exception is checked by the user, it returns as a string. When multiple agreements and | ||
* exceptions are checked, the 'additionalSubmissionOptions' is returned as an array. | ||
* This function works to make those single | ||
* selected string 'additionalSubmissionOptions' into an array for uniformity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs an update after the copy and paste.
* When a single agreement and exception is checked by the user, it returns as a string. When multiple agreements and | |
* exceptions are checked, the 'additionalSubmissionOptions' is returned as an array. | |
* This function works to make those single | |
* selected string 'additionalSubmissionOptions' into an array for uniformity. | |
* When a single additional submission option is checked by the user, it returns as a string. When multiple options are | |
* checked, the 'additionalSubmissionOptions' is returned as an array. This function works to make those single selected | |
* string 'additionalSubmissionOptions' into an array for uniformity. |
/** | ||
* NOTE: When a single point is checked by a user, it returns as a string. | ||
* When multiple additionalSubmissionOptions are checked, the 'payload' is returned as an array. | ||
* To make Joi validation straightforward, if the "payload.additionalSubmissionOptions" is a string, | ||
* it is turned into an array and validated as such. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment can be deleted now.
/** | |
* NOTE: When a single point is checked by a user, it returns as a string. | |
* When multiple additionalSubmissionOptions are checked, the 'payload' is returned as an array. | |
* To make Joi validation straightforward, if the "payload.additionalSubmissionOptions" is a string, | |
* it is turned into an array and validated as such. | |
*/ |
…ons-page-layout-and-controls
https://eaflood.atlassian.net/browse/WATER-4306
Additional options for submission page.
This branch will provide options for "multiple upload", or "none".
Appropriate notifications will be shown to user based on selection.