-
Notifications
You must be signed in to change notification settings - Fork 138
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
fix field mapping, add more error handling and remove checking jobId … #2933
Conversation
…filed in batch job response Signed-off-by: Xun Zhang <[email protected]>
@@ -75,6 +75,55 @@ protected double calculateSuccessRate(List<Double> successRates) { | |||
); | |||
} | |||
|
|||
/** | |||
* Filters fields in the map where the value contains the specified source index as a prefix. | |||
* When there is only one source file, users can skip the source[] prefix |
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.
If there is only one source file, is it ok for cx to input source[0].xxx
with this PR ?
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.
Yes it works for both cases. this function makes sure it finds the fields with source[0] or any fields that does not prefixed with "source".
Signed-off-by: Xun Zhang <[email protected]>
#2933) * fix field mapping, add more error handling and remove checking jobId filed in batch job response Signed-off-by: Xun Zhang <[email protected]> * add beckrock url in the allowed list and more UTs Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 30228ea)
#2933) * fix field mapping, add more error handling and remove checking jobId filed in batch job response Signed-off-by: Xun Zhang <[email protected]> * add beckrock url in the allowed list and more UTs Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 30228ea)
#2933) (#2936) * fix field mapping, add more error handling and remove checking jobId filed in batch job response Signed-off-by: Xun Zhang <[email protected]> * add beckrock url in the allowed list and more UTs Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 30228ea) Co-authored-by: Xun Zhang <[email protected]>
#2933) (#2935) * fix field mapping, add more error handling and remove checking jobId filed in batch job response Signed-off-by: Xun Zhang <[email protected]> * add beckrock url in the allowed list and more UTs Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 30228ea) Co-authored-by: Xun Zhang <[email protected]>
…filed in batch job response
Description
This PR fix all problems in #2930
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.