Skip to content

Implement export commands, fix usergroup roles, and update dependencies#8

Merged
jbrazda merged 18 commits intomainfrom
dev
Mar 10, 2026
Merged

Implement export commands, fix usergroup roles, and update dependencies#8
jbrazda merged 18 commits intomainfrom
dev

Conversation

@jbrazda
Copy link
Copy Markdown
Owner

@jbrazda jbrazda commented Mar 10, 2026

Summary

  • export start and export run commands in [cmd/export.go]
  • --debug flag added to root and wired via WithDebug in [internal/client/client.go]
  • Export client methods and tests in [internal/client/export.go](
  • CR file renames (zero-padded convention) and new docs

jbrazda and others added 18 commits March 8, 2026 00:00
…constants

- Replace all hardcoded "public/core/v3/..." strings with BaseAPIPathV3 constant
  across agents, auth, export, imports, lookup, metering, objects, permissions,
  privileges, projects, roles, runtimes, schedules, securitylogs, sourcecontrol,
  state, tags, usergroups, and users client files
- Fix agents.go: StartAgentService/StopAgentService were incorrectly using
  BaseAPIPathV3; corrected to BaseAPIPathV2 (agent services are a v2 API)
- Fix connections.go: migrated from v2 api/v2/connection (singular) to
  v3 public/core/v3/connections (plural), consistent with existing tests
- Update docs/CLAUDE.md resources table: connections and lookup are v3, not v2
- Move CR-0003 to completed/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
UserGroup.Roles was typed as []string but the IICS API returns an array
of role objects. Changed to []UserRole (reusing the existing type from
users.go) so JSON unmarshalling succeeds.

Added usergroups_test.go to cover the fixed behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add `export start`: resolves artifact IDs and starts an export job, prints job ID
- Add `export run`: full pipeline – resolve → start → poll → download ZIP with optional log download
- Add `--debug` global flag that prints JSON request body to stderr on API errors
- Add `WithDebug` client option and wire it through `getClient()`
- Rename completed CR files to zero-padded convention (CR-001 → CR-0001, CR-002 → CR-0002)
- Add pending CR for export enhancements and bug report for invalid export requests
- Update docs/CLAUDE.md with export run pattern and debug flag documentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 9.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v6...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 [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@jbrazda jbrazda merged commit 75b61d6 into main Mar 10, 2026
3 of 12 checks passed
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