Enhancement: Add --ignore-casing option for snapshot filtering#5686
Enhancement: Add --ignore-casing option for snapshot filtering#5686Paulomen2712 wants to merge 12 commits into
Conversation
cadca19 to
52dc9c5
Compare
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 8 to 9. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v8...v9) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '9' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [github.com/ncw/swift/v2](https://github.com/ncw/swift) from 2.0.4 to 2.0.5. - [Release notes](https://github.com/ncw/swift/releases) - [Changelog](https://github.com/ncw/swift/blob/master/RELEASE.md) - [Commits](ncw/swift@v2.0.4...v2.0.5) --- updated-dependencies: - dependency-name: github.com/ncw/swift/v2 dependency-version: 2.0.5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Introduce a new --ignore-case option to make --group-by comparisons case-insensitive in the "snapshots" and "forget" commands. Also added it to other commands that use snapshot filters. This allows users in environments with inconsistent host, path, or tag casing to list or remove snapshots without worrying about exact casing.
52dc9c5 to
ce46ed6
Compare
ac973f4 to
b3e135f
Compare
--ignore-casing option for snapshot filtering
--ignore-casing option for snapshot filtering--ignore-casing option for snapshot filtering
--ignore-casing option for snapshot filtering|
Hi @Paulomen2712, now that PR #5688 has been merged into master, your code can be simplified: just remove your changes for Actually all Please create an example for case insensitive |
5850fc7 to
112d4fa
Compare
Hi @wplapper, Thank you so much for your review! I didn't realise that the Also thank you for working on PR #5688 which does indeed simplify stuff for the commands. Regarding the example, I tested with the following output and adapted it for the docs: |
80efa70 to
70cff4c
Compare
What does this PR change? What problem does it solve?
Snapshot filtering required exact casing for host, tag, and path values. This change adds case-insensitive filtering, allowing snapshots to be reliably selected regardless of how hosts, tags, or paths are capitalized.
Was the change previously discussed in an issue or on the forum?
Closes #2331
Checklist
changelog/unreleased/that describes the changes for our users (see template).