-
Notifications
You must be signed in to change notification settings - Fork 19
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
BB-473 Probe response logic should be handled in the handler #2479
Conversation
Hello nicolas2bert,My role is to assist you with the merge of this Status report is not available. |
a7a2ecd
to
959153c
Compare
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command:
Alternatively, the |
lib/util/probe.js
Outdated
const errorCode = 500; | ||
log.error('sending back error response', { | ||
httpCode: errorCode, | ||
error: messages, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not ideal to log JSON-serialized contents, as it will be serialized again so not very readable as is.
It's likely that for indexing purpose we want to keep the error
field as a string.
Maybe we can separate this logic in two cases:
- if there is a single error, just log its message in
error
- if there is more than one error, add
errors: errorMessages
to the log, and haveerror
log something generic likemultiple errors (see "errors" field for details)
. Alternatively we may also concatenate error messages in a "human-readable" string but we may end up with a long error message, not necessarily very readable either.
That would be my recommendation but I leave it up to you.
959153c
to
6ccd651
Compare
Currently, the probe response logic is distributed between Backbeat probe handlers and Arsenal's onRequest method. This scattered approach causes confusion for developers and results in bugs. The solution is to centralize the probe response logic exclusively within the Backbeat probe handlers.
6ccd651
to
962a128
Compare
/create_integration_branches |
ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict: $ git fetch
$ git checkout -B w/7.70/bugfix/BB-473/probe origin/development/7.70
$ git merge origin/bugfix/BB-473/probe
$ # <intense conflict resolution>
$ git commit
$ git push -u origin w/7.70/bugfix/BB-473/probe The following options are set: create_integration_branches |
ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict: $ git fetch
$ git checkout -B w/8.5/bugfix/BB-473/probe origin/development/8.5
$ git merge origin/w/7.70/bugfix/BB-473/probe
$ # <intense conflict resolution>
$ git commit
$ git push -u origin w/8.5/bugfix/BB-473/probe The following options are set: create_integration_branches |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option
The following options are set: create_integration_branches |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: create_integration_branches |
@bert-e approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve, create_integration_branches |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue BB-473. Goodbye nicolas2bert. |
Currently, the probe response logic is distributed between Backbeat probe handlers and Arsenal's onRequest method.
This scattered approach causes confusion for developers and results in bugs.
The solution is to centralize the probe response logic exclusively within the Backbeat probe handlers.