Skip to content

feat(har): scoped npm push, JFrog skipUpdateStats, User-Agent headers [AH-4416 AH-4409 AH-4571] - #75

Merged
BlueLabelscotch merged 3 commits into
mainfrom
Feat/11-har
Aug 4, 2026
Merged

feat(har): scoped npm push, JFrog skipUpdateStats, User-Agent headers [AH-4416 AH-4409 AH-4571]#75
BlueLabelscotch merged 3 commits into
mainfrom
Feat/11-har

Conversation

@BlueLabelscotch

Copy link
Copy Markdown
Collaborator

Ports three legacy hc fixes to the unified CLI.

Changes

  • push_npm.go — scoped packages (@scope/name) route to the correct server path; validation errors match legacy; upload method corrected to PUT (hc 038b277 AH-4416)
  • jfrog/client.go?skipUpdateStats=true added to GetFile downloads, preventing migration runs from resetting JFrog last-download timestamps and breaking downloadedAfter date filtering (hc 04113d5 AH-4409)
  • migrate/util/useragent.go (new) — UserAgentString() helper: "harness-cli/<version> (<os>/<arch>)"
  • har, jfrog, nexus, harbor clientsUser-Agent set in each adapter's transport RoundTrip; also wired into arapi/arpkg RequestEditors in the HAR adapter
  • migratable/package.gocrane.WithUserAgent and remote.WithUserAgent use util.UserAgentString() (replaces hardcoded "harness-cli"); added to the ListTags options block which had no UA at all (hc b73ccdf AH-4571)

@BlueLabelscotch
BlueLabelscotch merged commit 64bd691 into main Aug 4, 2026
1 check passed
@BlueLabelscotch
BlueLabelscotch deleted the Feat/11-har branch August 4, 2026 19:59
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