Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/services/overseas-entities/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ export default class OverseasEntityService {

public async postOverseasEntity (
transactionId: string,
body: OverseasEntity,
isSaveAndResumeFeatureActive: boolean = false
body: OverseasEntity
Copy link
Contributor

Choose a reason for hiding this comment

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

the isSaveAndResumeFeatureActive will still be needed for the update journey, this function is called by createOverseasEntity in overseas.entities.service which is used by update.filing.date.controller among other things.

Copy link
Contributor

Choose a reason for hiding this comment

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

actually, if that flag is needed then the endpoint will be, so if we are removing the old /start endpoint then the update s & r feature flags will have to be removed from the web as well as there will be no way to save the data all in one go. So looks like we may have to get confirmation from kainos that we can remove their feature flag too.

): Promise<Resource<OverseasEntityCreated> | ApiErrorResponse> {
const URL = (isSaveAndResumeFeatureActive)
? `/transactions/${transactionId}/overseas-entity/start`
: `/transactions/${transactionId}/overseas-entity`;
const URL = `/transactions/${transactionId}/overseas-entity`;
const response: HttpResponse = await this.client.httpPost(URL, mapOverseasEntity(body));

if (response.error) {
Expand Down