Repository navigation
fix(cog): preserve GDAL metadata loss notices - #1844
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI found no bugs, security issues, performance problems, or AGENTS.md violations in this PR, so there are no inline comments. I checked the changed lines against their surroundings, but I did not compile or run the tests here. The PR reports a passing What I verified
Minor, not worth an inline comment
Change size Compared with
|
fbf1ee4 to
e587681
Compare
Code reviewI found no bugs, security issues, or performance problems. The change is a two-line reorder plus a regression test, and the reorder fixes the bug it targets. Prior review threads: none exist on this PR, so no earlier concerns were skipped. Bugs: None. Security: None. Performance: None. Quality:
AGENTS.md: Compliant. The fix keeps the existing I did not run the test suite or the wasm build, because this review only had read access to the repository. The PR description reports a passing Change sizeCompared: the whole PR against main (merge base cf61cc6 to PR head e587681).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. |
Summary
An in-place COG applied its GDAL metadata and then replaced the resulting loss messages with the header losses. Metadata that referenced absent bands or contained unsupported class items was therefore silently omitted from the session notices.
Initialize the header losses before applying metadata, preserving both sets for the existing landing-notice pipeline. No new dependencies or serialized fields.
Testing
layer.addUrl, covering clean metadata, simultaneous header/metadata losses, and a wavelength assigned to an absent band.RUST_TEST_THREADS=4 cargo xtask cipassed on the original base12829268(format, Clippy with warnings denied, workspace tests, layering).pre-commit run --all-filesandcargo build --locked --target wasm32-unknown-unknown -p rustgis-webpassed on the original base.cf61cc65to resolve concurrent additions at the end of the engine test file, retaining all upstream tests and placing this regression beside the existing COG tests. The production fix is unchanged. Full local checks are being repeated; GitHub CI is running on the updated head.UI evidence
No visible UI change. This restores loss reporting through the existing notification mechanism; no controls or map rendering change.
Related issue
Closes #1812. Related to the remaining work in #1331.
Summary by CodeRabbit