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

Bau: Remove ip from service calls #1640

Merged
merged 19 commits into from
Jun 11, 2024
Merged

Conversation

BeckaL
Copy link
Contributor

@BeckaL BeckaL commented May 22, 2024

What

Removes sourceIp as a parameter from all remaining services (some have already been done as part of AUT-2578).

This was previously being used to set the "x-forwarded-for" header on the requests we send to the backend, but the common headers library is now being used to set this header, which requires the whole request object to be passed through, which we have already done here.

Therefore these services can be tidied by removing this parameter, and also removing it from the overall options.

This PR also contains some minor tidies that I came across along the way.

How to review

  1. Code Review commit by commit

@BeckaL BeckaL force-pushed the BAU/remove-ip-from-service-calls branch 3 times, most recently from eb325ec to fe3bd05 Compare May 22, 2024 14:43
@BeckaL BeckaL changed the title Bau/remove ip from service calls Bau: Remove ip from service calls May 22, 2024
BeckaL added 19 commits June 10, 2024 13:32
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.

Also pulls out some common noisy setup from these tests
…h to send notification service

Hopefully this makes it a bit more obvious what the point of these tests are
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This makes the naming consistent with the naming of the file it tests, meaning that it can be picked up by IDEs when looking for tests for a file
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
This is no longer used since we switched to using the common headers library to set the x-forwarded-for header on requests to the backend, so can be removed
Uses common test data to avoid a bit of noisy setup
@BeckaL BeckaL force-pushed the BAU/remove-ip-from-service-calls branch from 2564902 to fe27c11 Compare June 10, 2024 12:35
@BeckaL BeckaL marked this pull request as ready for review June 10, 2024 12:36
@BeckaL BeckaL requested review from a team as code owners June 10, 2024 12:36
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@gtvj gtvj left a comment

Choose a reason for hiding this comment

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

Hi @BeckaL - I've been through the PR commit by commit and all looks good.

@BeckaL BeckaL merged commit 1bf2e42 into main Jun 11, 2024
7 checks passed
@BeckaL BeckaL deleted the BAU/remove-ip-from-service-calls branch June 11, 2024 08:48
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