feat: add Cosmo Router config generation and PubSub support #625

Merged
argoyle merged 1 commits from feat/add-cosmo-router-config-pubsub into main 2025-11-19 10:42:37 +00:00
argoyle commented 2025-11-19 10:19:26 +00:00 (Migrated from gitlab.com)

Creates a new GenerateCosmoRouterConfig function to build and
serialize a Cosmo Router configuration from subgraphs. Implements
PubSub mechanism for managing schema updates, allowing
subscription to updates. Adds Subscription resolver and updates
existing structures to accommodate new functionalities. This
enhances the system's capabilities for dynamic updates and
configuration management.

Creates a new `GenerateCosmoRouterConfig` function to build and serialize a Cosmo Router configuration from subgraphs. Implements PubSub mechanism for managing schema updates, allowing subscription to updates. Adds Subscription resolver and updates existing structures to accommodate new functionalities. This enhances the system's capabilities for dynamic updates and configuration management.
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-11-19 10:19:44 +00:00
argoyle commented 2025-11-19 10:29:39 +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-19 10:29:40 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 80daed08 - feat: add Cosmo Router config generation and PubSub support

Compare with previous version

added 1 commit <ul><li>80daed08 - feat: add Cosmo Router config generation and PubSub support</li></ul> [Compare with previous version](/unboundsoftware/schemas/-/merge_requests/621/diffs?diff_id=1570544355&start_sha=e75a63e8918b30f7dcfef2e77e5be81fba012ae5)
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-11-19 10:31:32 +00:00
argoyle commented 2025-11-19 10:40:18 +00:00 (Migrated from gitlab.com)

Codecov Report

Patch coverage is 47.55245% with 75 lines in your changes missing coverage. Please review.
Project coverage is 4.11%. Comparing base (f6e4458) to head (80daed0).

Files with missing lines Patch % Lines
graph/schema.resolvers.go 0.00% 71 Missing ⚠️
graph/cosmo.go 91.66% 2 Missing and 1 partial ⚠️
cmd/service/service.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main    #621      +/-   ##
========================================
+ Coverage   1.00%   4.11%   +3.11%     
========================================
  Files         42      44       +2     
  Lines       1996    2139     +143     
========================================
+ Hits          20      88      +68     
- Misses      1976    2050      +74     
- Partials       0       1       +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/621?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 `47.55245%` with `75 lines` in your changes missing coverage. Please review. :white_check_mark: Project coverage is 4.11%. Comparing base ([`f6e4458`](https://app.codecov.io/gl/unboundsoftware/schemas/commit/f6e4458efa75dae5f8842b7e30bcd1c448c258c5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)) to head ([`80daed0`](https://app.codecov.io/gl/unboundsoftware/schemas/commit/80daed081ded13fc53144b53392acdaf8b67a56d?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/621?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/621?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% | [71 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/621?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) | | [graph/cosmo.go](https://app.codecov.io/gl/unboundsoftware/schemas/pull/621?src=pr&el=tree&filepath=graph%2Fcosmo.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware#diff-Z3JhcGgvY29zbW8uZ28=) | 91.66% | [2 Missing and 1 partial :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/621?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/621?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% | [1 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware/schemas/pull/621?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 #621 +/- ## ======================================== + Coverage 1.00% 4.11% +3.11% ======================================== Files 42 44 +2 Lines 1996 2139 +143 ======================================== + Hits 20 88 +68 - Misses 1976 2050 +74 - Partials 0 1 +1 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gl/unboundsoftware/schemas/pull/621?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-19 10:42:37 +00:00 (Migrated from gitlab.com)

mentioned in commit 83e99e7d0a

mentioned in commit 83e99e7d0a7a5660bd7403c6ad38a59a049b4206
argoyle (Migrated from gitlab.com) merged commit 83e99e7d0a into main 2025-11-19 10:42:37 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unboundsoftware/schemas#625