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

PP 10451 handle selfservice 504 ledger gateway timeout #4150

Merged

Conversation

olatomgds
Copy link
Contributor

WHAT

PP-10451 Handle gateway timeout error during transactions download.
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.

HOW

Review exception handling of the transaction listing functionality and replicate the test scenarios for the associated changes.

Code change is done, but the entire historic test to do with transaction listing will need converting
…, when thrown from the Ledger service during search.

Rewriting Nock based 500 and 504 integration tests in Cypress.
Convert Nock 500 and 504 Integration Test scenarios to Cypress Tests
Writing test scenario as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic
Writing transaction search test scenarios as Cypress Tests for 400, 500 and 504 responses and
removing nock mock references and associated test scenarios from non-cypress integration tests.
Writing test scenario as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic
@olatomgds olatomgds marked this pull request as draft October 26, 2023 13:10
@olatomgds olatomgds marked this pull request as ready for review October 27, 2023 10:40
@olatomgds olatomgds requested a review from alexbishop1 October 27, 2023 14:25
Copy link
Contributor

@alexbishop1 alexbishop1 left a comment

Choose a reason for hiding this comment

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

It looks like some code from another story has slipped in here! Please remove it.

Logic looks basically fine and the tests are good but it looks like there’s some localised logic relating to extracting data from objects that does not look quite fine and I think some code could be removed to make it simpler.

Could you also look at squashing some of the commits together? I think we only really need one.

app/services/transaction.service.js Outdated Show resolved Hide resolved
app/services/transaction.service.js Outdated Show resolved Hide resolved
app/services/transaction.service.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
@olatomgds olatomgds requested a review from alexbishop1 October 27, 2023 17:57
Copy link
Contributor

@alexbishop1 alexbishop1 left a comment

Choose a reason for hiding this comment

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

Some comments below including some stuff I din’t really think about the first time round (sorry about that).

There still seems o be stuff from another story here (specifically, files app/controllers/invite-user.controller.js, app/controllers/invite-user.controller.test.js, app/views/team-members/team-member-invite.njk, test/integration/invite-users.controller.ft.test.js and test/ui/invite-user.ui.test.js). Please remove these changes from this PR.

app/middleware/error-handler.js Outdated Show resolved Hide resolved
app/middleware/error-handler.js Outdated Show resolved Hide resolved
app/middleware/error-handler.js Outdated Show resolved Hide resolved
app/services/transaction.service.js Outdated Show resolved Hide resolved
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.

Removed files pulled in from master for MR clarity.
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
Convert Nock 500 and 504 Integration Test scenarios to Cypress Tests
Writing test scenario as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
This change is for the single service transaction search and not the all services functionality.
Converting test scenarios as Cypress Tests for 400, 500 and 504 responses and removing nock mocking logic.
Download of transactions list by clicking the download link was de-scoped, so no tests were written for the download functionality.
Copy link
Contributor

@alexbishop1 alexbishop1 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! Can you squash all 19(!) commits into one with a nice commit message before merging?

@olatomgds olatomgds merged commit c463f0f into master Nov 1, 2023
5 checks passed
@olatomgds olatomgds deleted the PP-10451-Handle_Selfservice_504_Ledger_Gateway_Timeout branch November 1, 2023 15:00
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.

2 participants