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

pipeline/task.bridge: do not cache invalid external adapter response objects. #11725

Conversation

brunotm
Copy link
Collaborator

@brunotm brunotm commented Jan 10, 2024

This change updates the task bridge to check the external adapter response object for invalid status code, provider status code and internal errors. Fixes the issues described on BCF-2415.

Aligned with the current behaviour for v2/v3 external adapters.

Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@brunotm brunotm changed the title pipeline/task.bridge: check for external adapter status in response o… pipeline/task.bridge: do use or cache invalid external adapter response objects. Jan 10, 2024
@brunotm brunotm marked this pull request as ready for review January 10, 2024 16:11
@brunotm brunotm changed the title pipeline/task.bridge: do use or cache invalid external adapter response objects. pipeline/task.bridge: do not cache invalid external adapter response objects. Jan 10, 2024
@brunotm brunotm force-pushed the MERC-2650-update-bridge-task-response-handler-to-correctly-handle-provider-status-code-in-ea-responses branch from 849d862 to ba7378e Compare January 10, 2024 18:27
@brunotm brunotm requested a review from amit-momin January 10, 2024 18:27
amit-momin
amit-momin previously approved these changes Jan 10, 2024
Copy link
Contributor

@amit-momin amit-momin 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 to me but we should also get someone's approval from the core side

@brunotm brunotm force-pushed the MERC-2650-update-bridge-task-response-handler-to-correctly-handle-provider-status-code-in-ea-responses branch from 3a8826f to 6208205 Compare January 12, 2024 15:32
@brunotm brunotm requested a review from jmank88 January 16, 2024 13:39
@jmank88 jmank88 requested review from samsondav and a team January 16, 2024 13:49
Copy link
Collaborator

@samsondav samsondav left a comment

Choose a reason for hiding this comment

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

Is there a follow up task to properly fix how EAs return status?

@samsondav samsondav enabled auto-merge January 17, 2024 15:33
@brunotm brunotm force-pushed the MERC-2650-update-bridge-task-response-handler-to-correctly-handle-provider-status-code-in-ea-responses branch from b209212 to 7ad23eb Compare January 17, 2024 16:09
@samsondav samsondav added this pull request to the merge queue Jan 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 17, 2024
@samsondav samsondav added this pull request to the merge queue Jan 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 17, 2024
@samsondav samsondav added this pull request to the merge queue Jan 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 17, 2024
@samsondav samsondav added this pull request to the merge queue Jan 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 17, 2024
@brunotm brunotm force-pushed the MERC-2650-update-bridge-task-response-handler-to-correctly-handle-provider-status-code-in-ea-responses branch from 7ad23eb to 408746c Compare January 18, 2024 14:14
@brunotm brunotm force-pushed the MERC-2650-update-bridge-task-response-handler-to-correctly-handle-provider-status-code-in-ea-responses branch from 408746c to 0c64bb7 Compare January 19, 2024 10:21
@brunotm brunotm force-pushed the MERC-2650-update-bridge-task-response-handler-to-correctly-handle-provider-status-code-in-ea-responses branch from 0c64bb7 to 5d1351c Compare January 19, 2024 10:22
@cl-sonarqube-production
Copy link

@samsondav samsondav added this pull request to the merge queue Jan 22, 2024
Merged via the queue into develop with commit b164040 Jan 22, 2024
82 checks passed
@samsondav samsondav deleted the MERC-2650-update-bridge-task-response-handler-to-correctly-handle-provider-status-code-in-ea-responses branch January 22, 2024 14:25
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.

4 participants