Closed moritzraho closed 2 years ago
Ready for another round of code review, but note that it still requires:
@adobe/aio-lib-metrics
releasecc @purplecabbage @sandeep-paliwal
I did the same thing, this needs to be changed to be consistent with the rest. I am doing my-apps, action-validators, tvm, login-function and their deployment scripts.
Please see #57
Can we discuss the changes ? I am seeing two differences:
metrics-url
vs metricsUrl
, problem is all other parameters in TVM use camel case so it wouldn't be very consistent..error_count
for both 4xx and 5xx errors, but I think we should differentiate as 5xxs are actual errors on our side and 4xxs just user failures. Maybe you already discussed this, please let me know.Any other difference I should consider?
added some changes to clean it a bit up, feel free to add new comments
Yes consistency is an issue, unfortunately I am trying to tackle the same change across 5 repos, and we essentially have 4 standards ...
Login action manifest uses
inputs:
LOG_LEVEL: $LOG_LEVEL
Validators uses
__VALIDATOR_LOG_LEVEL: info
Tvm uses
s3Bucket: $S3_BUCKET
MyApps uses
cli-env: $AIO_CLI_ENV
Also note that
params['metrics-url']
IS consistent with params.__ow_headers['x-request-id']
Regardless, we can seek a single standard and consensus when there is room in our backlog. I'll make changes for 4xx / 5xx
ok agreed thank you @purplecabbage
Merging #54 (2838456) into master (f3db279) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #54 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 327 340 +13
Branches 27 29 +2
=========================================
+ Hits 327 340 +13
Impacted Files | Coverage Δ | |
---|---|---|
lib/Tvm.js | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update f3db279...2838456. Read the comment docs.
Description
copy of #52
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: