Skip to content

Add command to check the validation and sync status of orgs#457

Merged
mbarbero merged 5 commits into
mainfrom
check-status-command
Jun 30, 2025
Merged

Add command to check the validation and sync status of orgs#457
mbarbero merged 5 commits into
mainfrom
check-status-command

Conversation

@mbarbero

Copy link
Copy Markdown
Contributor

The output is in json format:

otterdog check-status A B C
[
  {
    "org_id": "A",
    "validation_status": {
      "is_valid": true,
      "infos": 0,
      "warnings": 0,
      "errors": 0
    },
    "sync_status": {
      "in_sync": true,
      "additions": 0,
      "changes": 0,
      "deletions": 0
    }
  },
  {
    "org_id": "B",
    "validation_status": {
      "is_valid": false,
      "infos": 0,
      "warnings": 0,
      "errors": 2
    },
    "sync_status": {
      "in_sync": false,
      "additions": 0,
      "changes": 0,
      "deletions": 0
    }
  },
  {
    "org_id": "C",
    "validation_status": {
      "is_valid": true,
      "infos": 47,
      "warnings": 0,
      "errors": 0
    },
    "sync_status": {
      "in_sync": false,
      "additions": 0,
      "changes": 1,
      "deletions": 0
    }
  }
]

@mbarbero

Copy link
Copy Markdown
Contributor Author

(sorry for the noise, I'll fix the pre-commit issues)

@mbarbero
mbarbero force-pushed the check-status-command branch 4 times, most recently from bbe277a to 192c8c6 Compare June 13, 2025 17:36
@mbarbero
mbarbero force-pushed the check-status-command branch from 192c8c6 to 2206992 Compare June 13, 2025 17:37

@kairoaraujo kairoaraujo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR.
I just added nit comments.
I was able to test it locally.

Comment thread otterdog/cli.py Outdated
Comment thread otterdog/cli.py Outdated
Comment thread otterdog/operations/check_status.py Outdated
kairoaraujo
kairoaraujo previously approved these changes Jun 16, 2025
@mbarbero
mbarbero force-pushed the check-status-command branch 2 times, most recently from 61d79f0 to 6410970 Compare June 24, 2025 17:47
Comment thread otterdog/operations/check_status.py Outdated
@mbarbero
mbarbero force-pushed the check-status-command branch from 6410970 to f62bf3b Compare June 25, 2025 07:12
mbarbero added 2 commits June 25, 2025 09:19
…hived or not

Signed-off-by: Mikaël Barbero <mikael.barbero@eclipse-foundation.org>
@mbarbero
mbarbero force-pushed the check-status-command branch from f62bf3b to 59b97f0 Compare June 25, 2025 07:27
mbarbero added 2 commits June 25, 2025 09:32
… sync status of organizations

Signed-off-by: Mikaël Barbero <mikael.barbero@eclipse-foundation.org>
Signed-off-by: Mikaël Barbero <mikael.barbero@eclipse-foundation.org>
@mbarbero
mbarbero force-pushed the check-status-command branch from 59b97f0 to a9ff779 Compare June 25, 2025 07:32
@mbarbero

Copy link
Copy Markdown
Contributor Author

(sorry for the noise, I really need to get the pre-commit hook to work on my machine)

@mbarbero
mbarbero merged commit 10d5301 into main Jun 30, 2025
8 checks passed
@mbarbero
mbarbero deleted the check-status-command branch June 30, 2025 09:44
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.

3 participants