Skip to content

Conversation

@wvandeun
Copy link
Contributor

adds infrahubctl repository list command, which gives you an overview of the repositories in your Infrahub instance and their status.

Example output

                                    List of all Repositories                                    
┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃           Name ┃ Type                   ┃ Operational status ┃ Sync status ┃ Internal status ┃
┡━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩
│ Demo Edge Repo │ CoreReadOnlyRepository │ unknown            │ in-sync     │ active          │
│    My Own Repo │ CoreRepository         │ in-sync            │ in-sync     │ active          │
└────────────────┴────────────────────────┴────────────────────┴─────────────┴─────────────────┘

@github-actions github-actions bot added the group/ci Issue related to the CI pipeline label Dec 16, 2024
@codecov
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@@             Coverage Diff             @@
##           develop     #175      +/-   ##
===========================================
+ Coverage    70.29%   70.39%   +0.10%     
===========================================
  Files           82       82              
  Lines         7463     7482      +19     
  Branches      1385     1387       +2     
===========================================
+ Hits          5246     5267      +21     
+ Misses        1842     1841       -1     
+ Partials       375      374       -1     
Flag Coverage Δ
integration-tests 22.40% <0.00%> (-0.06%) ⬇️
python-3.10 45.65% <100.00%> (+0.16%) ⬆️
python-3.11 45.65% <100.00%> (+0.16%) ⬆️
python-3.12 45.65% <100.00%> (+0.16%) ⬆️
python-3.13 45.65% <100.00%> (+0.16%) ⬆️
python-3.9 45.65% <100.00%> (+0.16%) ⬆️
python-filler-3.12 24.01% <0.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
infrahub_sdk/ctl/repository.py 80.55% <100.00%> (+6.97%) ⬆️

... and 1 file with indirect coverage changes

@wvandeun wvandeun added the type/feature New feature or request label Dec 16, 2024
@wvandeun wvandeun changed the title add infrahubctl repository list command adds infrahubctl repository list command Dec 16, 2024
@ogenstad
Copy link
Contributor

This looks good to me, though it could be good to also have branch support so that we could report a different commit_id on the queried branch. Also the sync_status and operational_status are branch local. For ReadOnlyRepositories it could potentially make sense to list the ref value as well.

@minitriga minitriga changed the title adds infrahubctl repository list command WIP: adds infrahubctl repository list command Jan 3, 2025
@minitriga minitriga changed the title WIP: adds infrahubctl repository list command adds infrahubctl repository list command Jan 3, 2025
@wvandeun wvandeun force-pushed the wvd-20241215-infrahubctl-repository-list branch 3 times, most recently from 1b99514 to 81dd66b Compare January 20, 2025 10:20
@wvandeun wvandeun force-pushed the wvd-20241215-infrahubctl-repository-list branch from 81dd66b to a6f936d Compare January 20, 2025 10:30
@wvandeun wvandeun merged commit 8ea7eca into develop Jan 20, 2025
12 checks passed
@wvandeun wvandeun deleted the wvd-20241215-infrahubctl-repository-list branch January 20, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

group/ci Issue related to the CI pipeline type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants