Skip to content

feat(har): bulk delete artifact command with wildcard support [AH-2948] - #74

Merged
BlueLabelscotch merged 2 commits into
mainfrom
Feat/10-har
Aug 4, 2026
Merged

feat(har): bulk delete artifact command with wildcard support [AH-2948]#74
BlueLabelscotch merged 2 commits into
mainfrom
Feat/10-har

Conversation

@BlueLabelscotch

@BlueLabelscotch BlueLabelscotch commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Ports hc artifact delete wildcard/bulk flow from legacy commit 1f948d5 AH-2948.

Changes

  • pattern_util.goIsWildCardExpression and MatchesWildCardPattern helpers; allows * and ?, rejects []{}
  • har.spec.yaml — new delete artifact:bulk command spec (workflow handler, --registry, --version, --dry-run, --force)
  • delete_artifact.go — two-phase bulk delete handler: dry-run preview → confirm → real delete; force confirmation with irreversibility warning; empty-result early exit; output format matching legacy table layout
  • har.go — register bulk_delete_artifact workflow

Behaviour

harness delete artifact:bulk --registry [--version ] [--force] [--dry-run=false]

  • --dry-run defaults to true — previews impacted packages/versions without deleting
  • --force prompts for confirmation before hard (permanent) delete
  • Wildcard * and ? supported in both <pattern> and --version; []{} rejected

  Ports patternUtil.go changes from hc commit 1f948d5 [AH-2948].
  Allows * and ? while rejecting [ ] { } — needed by bulk delete.
  Ports hc artifact delete wildcard/bulk flow from commit 1f948d5 [AH-2948].
  Two-phase dry-run, force confirmation, /gateway/har/api/v3/bulkdelete.
@BlueLabelscotch
BlueLabelscotch merged commit f835ffa into main Aug 4, 2026
1 check passed
@BlueLabelscotch
BlueLabelscotch deleted the Feat/10-har branch August 4, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant