offspot / container-images

OCI images for use in Kiwix Offspot
GNU General Public License v3.0
0 stars 1 forks source link

Patch tinyfilemanager to add response headers for metrics #41

Closed benoit74 closed 9 months ago

benoit74 commented 9 months ago

Rationale

https://github.com/offspot/metrics/ needs to compute the number of files added and removed in the file manager.

Current tinyfilemanager code does not permit to process URLs to detect this information, so we are now patching tinyfilemanager to add response headers when files have been added and removed, with the number of files added / removed.

Changes

benoit74 commented 9 months ago

I was convinced we had test CI in place to confirm image build is OK in PRs too ; I expected to test the build locally (and fix it, because I knew it would be KO) but once I saw the branch is green after I finished to prepare the first comment with all details, I thought "oh, great, I did good job" 🤦🏻

Sorry ...