feat: add commands for managing organizations and users #641

Merged
argoyle merged 1 commits from feat/manage-organizations-users into main 2025-11-22 17:57:01 +00:00
argoyle commented 2025-11-22 15:50:54 +00:00 (Migrated from gitlab.com)

Introduce AddUserToOrganization, RemoveAPIKey, and
RemoveOrganization commands to enhance organization
management. Implement validation for user addition and
API key removal. Update GraphQL schema to support new
mutations and add caching for the new events, ensuring
that organizations and their relationships are accurately
represented in the cache.

Introduce `AddUserToOrganization`, `RemoveAPIKey`, and `RemoveOrganization` commands to enhance organization management. Implement validation for user addition and API key removal. Update GraphQL schema to support new mutations and add caching for the new events, ensuring that organizations and their relationships are accurately represented in the cache.
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-11-22 16:02:34 +00:00
argoyle commented 2025-11-22 16:09:13 +00:00 (Migrated from gitlab.com)

Codecov Report

Patch coverage is 46.87500% with 153 lines in your changes missing coverage. Please review.
Project coverage is 38.31%. Comparing base (335a9f3) to head (ffcf41b).

Files with missing lines Patch % Lines
graph/schema.resolvers.go 0.00% 97 Missing ⚠️
cache/cache.go 60.93% 25 Missing ⚠️
domain/commands.go 60.86% 18 Missing ⚠️
domain/aggregates.go 0.00% 6 Missing ⚠️
cmd/service/service.go 0.00% 3 Missing ⚠️
middleware/auth.go 93.61% 2 Missing and 1 partial ⚠️
sdlmerge/sdlmerge.go 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #637      +/-   ##
==========================================
+ Coverage   37.23%   38.31%   +1.07%     
==========================================
  Files          45       45              
  Lines        2417     2691     +274     
==========================================
+ Hits          900     1031     +131     
- Misses       1478     1620     +142     
- Partials       39       40       +1     

View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
## [Codecov](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) Report :x: Patch coverage is `46.87500%` with `153 lines` in your changes missing coverage. Please review. :white_check_mark: Project coverage is 38.31%. Comparing base ([`335a9f3`](https://app.codecov.io/gl/unboundsoftware/schemas/commit/335a9f3b546c98d4ec6597919272925c14919181?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)) to head ([`ffcf41b`](https://app.codecov.io/gl/unboundsoftware/schemas/commit/ffcf41b85a271f85a9fd2809dcd748237f4f55c5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)). | [Files with missing lines](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | Patch % | Lines | |---|---|---| | [graph/schema.resolvers.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&filepath=graph%2Fschema.resolvers.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-Z3JhcGgvc2NoZW1hLnJlc29sdmVycy5nbw==) | 0.00% | [97 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | | [cache/cache.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&filepath=cache%2Fcache.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-Y2FjaGUvY2FjaGUuZ28=) | 60.93% | [25 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | | [domain/commands.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&filepath=domain%2Fcommands.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-ZG9tYWluL2NvbW1hbmRzLmdv) | 60.86% | [18 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | | [domain/aggregates.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&filepath=domain%2Faggregates.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-ZG9tYWluL2FnZ3JlZ2F0ZXMuZ28=) | 0.00% | [6 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | | [cmd/service/service.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&filepath=cmd%2Fservice%2Fservice.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-Y21kL3NlcnZpY2Uvc2VydmljZS5nbw==) | 0.00% | [3 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | | [middleware/auth.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&filepath=middleware%2Fauth.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-bWlkZGxld2FyZS9hdXRoLmdv) | 93.61% | [2 Missing and 1 partial :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | | [sdlmerge/sdlmerge.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&filepath=sdlmerge%2Fsdlmerge.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-c2RsbWVyZ2Uvc2RsbWVyZ2UuZ28=) | 66.66% | [0 Missing and 1 partial :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | <details><summary>Additional details and impacted files</summary> ```diff @@ Coverage Diff @@ ## main #637 +/- ## ========================================== + Coverage 37.23% 38.31% +1.07% ========================================== Files 45 45 Lines 2417 2691 +274 ========================================== + Hits 900 1031 +131 - Misses 1478 1620 +142 - Partials 39 40 +1 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gl/unboundsoftware/schemas/pull/637?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware). :loudspeaker: Have feedback on the report? [Share it here](https://gitlab.com/codecov-open-source/codecov-user-feedback/-/issues/4). <details><summary> :rocket: New features to boost your workflow: </summary> - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems. </details>
argoyle commented 2025-11-22 16:33:03 +00:00 (Migrated from gitlab.com)

aborted the automatic merge because the source branch was updated. Learn more.

aborted the automatic merge because the source branch was updated. [Learn more](https://gitlab.com/help/ci/pipelines/merge_trains.md#merge-request-dropped-from-the-merge-train).
argoyle commented 2025-11-22 16:33:03 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 77f861dd - feat: add commands for managing organizations and users

Compare with previous version

added 1 commit <ul><li>77f861dd - feat: add commands for managing organizations and users</li></ul> [Compare with previous version](/unboundsoftware/schemas/-/merge_requests/637/diffs?diff_id=1575034213&start_sha=03aa761d89ab0f71e4aff8d9588757678fad8793)
argoyle commented 2025-11-22 17:37:16 +00:00 (Migrated from gitlab.com)

added 1 commit

  • ffcf41b8 - feat: add commands for managing organizations and users

Compare with previous version

added 1 commit <ul><li>ffcf41b8 - feat: add commands for managing organizations and users</li></ul> [Compare with previous version](/unboundsoftware/schemas/-/merge_requests/637/diffs?diff_id=1575043020&start_sha=77f861dd23b448dff66923228ec9f90b1e3fb5fa)
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-11-22 17:56:31 +00:00
argoyle (Migrated from gitlab.com) merged commit e347d74a39 into main 2025-11-22 17:57:01 +00:00
argoyle commented 2025-11-22 17:57:02 +00:00 (Migrated from gitlab.com)

mentioned in commit e347d74a39

mentioned in commit e347d74a39e12b7e6c54701d2a84df9b4e0e1656
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unboundsoftware/schemas#641