This service allows a user to report that transit movement goods have been unloaded.
Service manager port: 10123
Run unit tests:
sbt test
Run integration tests:
sbt it/test
Run accessibility linter tests:
sbt A11y/test
To toggle between the Phase 5 transition and post-transition modes we have defined two separate modules, each with their own set of class bindings to handle the rules associated with these two periods.
sm2 --start CTC_TRADERS_P5_ACCEPTANCE_TRANSITION sm2 --stop MANAGE_TRANSIT_MOVEMENTS_UNLOADING_FRONTEND_TRANSITION sbt -Dplay.additional.module=config.TransitionModule run
Phase 5 final introduces multiple house consignments. This provides users with functionalities that are not available during the transition period, like the ability to add and remove entire house consignments.
sm2 --start CTC_TRADERS_P5_ACCEPTANCE sm2 --stop MANAGE_TRANSIT_MOVEMENTS_UNLOADING_FRONTEND sbt -Dplay.additional.module=config.PostTransitionModule run
We then need to post an IE007 (Arrival Notification) followed by a IE043 (Unloading Permission). From the /view-arrival-notifications
page click the Make unloading remarks
link for the relevant movement.
The following features can be toggled in application.conf:
Key | Argument type | sbt | Description |
---|---|---|---|
trader-test.enabled |
Boolean |
sbt -Dtrader-test.enabled=true run |
If enabled, this will override the behaviour of the "Is this page not working properly?" and "feedback" links. This is so we can receive feedback in the absence of Deskpro in externaltest . |
banners.showUserResearch |
Boolean |
sbt -Dbanners.showUserResearch=true run |
Controls whether or not we show the user research banner. |
play.additional.module |
String |
sbt -Dplay.additional.module=config.PostTransitionModule run |
Controls which module (TransitionModule or PostTransitionModule) we bind to the application at start-up. |
play.http.router |
String |
sbt -Dplay.http.router=testOnlyDoNotUseInAppConf.Routes run |
Controls which router is used for the application, either prod.Routes or testOnlyDoNotUseInAppConf.Routes |
Navigation is handled using multiple modes to facilitate additions, amendments, and removals at the various data levels.
The two modes are NormalMode
and CheckMode
. CheckMode
is indicative of something being changed, and can be seen by the presence of change
in the URL.
Examples:
-
Changing an additional reference in a consignment item:
I am changing a house consignment by changing a consignment item by changing an additional reference
So my URL would follow the structure of:
.../change-house-consignment/:houseConsignmentIndex/change-item/:itemIndex/change-additional-reference/:additionalReferenceIndex/...
-
Adding an additional reference to a consignment item:
I am changing a house consignment by changing a consignment item by adding an additional reference
So my URL would follow the structure of:
.../change-house-consignment/:houseConsignmentIndex/change-item/:itemIndex/additional-reference/:additionalReferenceIndex/...
-
Adding an additional reference while adding a consignment item:
I am changing a house consignment by adding a consignment item and adding an additional reference
So my URL would follow the structure of:
.../change-house-consignment/:houseConsignmentIndex/item/:itemIndex/additional-reference/:additionalReferenceIndex/...
-
Adding an additional reference while adding a consignment item while adding a house consignment:
I am adding a house consignment and adding a consignment item and adding an additional reference
So my URL would follow the structure of:
.../house-consignment/:houseConsignmentIndex/item/:itemIndex/additional-reference/:additionalReferenceIndex/...
-
Removing an additional reference from a consignment item:
I am changing a house consignment by changing a consignment item by removing an additional reference
So my URL would follow the structure of:
.../change-house-consignment/:houseConsignmentIndex/change-item/:itemIndex/additional-reference/:additionalReferenceIndex/remove
These modes help us navigate the user to the relevant 'check your answers' page after they have made their various additions, amendments, or removals.
This code is open source software licensed under the Apache 2.0 License.