🐛 use SUR date instead of the infostore one to have an update LastMod…#6121
🐛 use SUR date instead of the infostore one to have an update LastMod…#6121DarkIsDude wants to merge 9 commits intodevelopment/9.1from
Conversation
Hello darkisdude,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 1 file with indirect coverage changes @@ Coverage Diff @@
## development/9.1 #6121 +/- ##
===================================================
+ Coverage 83.79% 83.88% +0.08%
===================================================
Files 191 191
Lines 12350 12355 +5
===================================================
+ Hits 10349 10364 +15
+ Misses 2001 1991 -10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
bb7499d to
beee7a8
Compare
beee7a8 to
d9a5aed
Compare
Call UtilizationService.getUtilizationMetrics for capacity.xml on the HEAD and LIST routes, mirroring the existing pattern from GET. This ensures Last-Modified is derived from SUR metrics (not stale metadata) on all three routes. Fall back to new Date() when metrics are unavailable (404) or absent. Also use new Date() as the fallback in GET instead of the stored LastModified value. Issue: CLDSRV-878
bed3bca to
4a70cf7
Compare
Move the shared UtilizationService call pattern (bucket key derivation, 404 warn/fallback, error logging) into a single fetchCapacityMetrics helper in utils.js, used by GET, HEAD, and LIST routes. Issue: CLDSRV-878
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 |
48e4d3e to
63a33eb
Compare
| return responseContentHeaders(null, {}, getResponseHeader(request, data, | ||
| dataBuffer, modified, log), response, log); | ||
| }); | ||
|
|
There was a problem hiding this comment.
nit: not really related to this PR, but I wonder why we need to make a call to getBucket even though we receive bucketMD as function parameter? do you know why or what is the difference?
There was a problem hiding this comment.
To be honest I don't know. I have the feeling that nothing is different 😬. Maybe the idea was to keep the handler as independant as possible ?
| } else { | ||
| return callback(null, value.toString()); | ||
| } | ||
| return new Promise((resolve, reject) => { |
There was a problem hiding this comment.
- use promisify
- in the guidelines, I think there was mention of never returning a promise (to ensure stack trace is correct)
| return new Promise((resolve, reject) => { | |
| return await utils.promisify(() => { ... })(); |
There was a problem hiding this comment.
🤔 I'm not sure the usage of promisify here will add a value ? Finally it's the same ? Thanks for the await 🙏
24af2da to
9524559
Compare
fb85c7f to
7258a79
Compare
7258a79 to
78fd519
Compare
Issue: CLDSRV-878
Pull request template
Description
https://scality.atlassian.net/browse/CLDSRV-631 this PR introduce a regression. The associated cronjob was removed https://github.com/scality/zenko-operator/pull/540/changes#diff-c76a6b4555478f74e4c871dbf370d4e6e5ae54c4b8590b0581b1cc0894e83ae5R55 but the date used is still the one associated with it. The goal of this PR is to use the date from SUR.
With the fix
< last-modified: Fri, 27 Mar 2026 16:04:16 GMTWithout the fix
< last-modified: Wed, 25 Mar 2026 14:12:11 GMT