[CON-3220] feat(GoTo): add ListMetadata#2955
Open
immdipu wants to merge 13 commits into
Open
Conversation
…eporting for object configurations
Contributor
There was a problem hiding this comment.
Pull request overview
Adds initial GoTo deep-connector support for object metadata discovery (ListObjectMetadata) by sampling provider API responses, along with GoTo post-auth metadata (accountKey) and supporting test/manual harnesses.
Changes:
- Introduces a GoTo “core” adapter (internal/components SchemaProvider) that builds per-object sample requests and infers field metadata from the first returned record.
- Adds GoTo provider modules (GoTo / GoTo Connect) and declares post-auth metadata (
accountKey) as required for both. - Adds unit tests and sample JSON fixtures for GoTo metadata, plus manual test programs.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/granola/connector.go | Sets an explicit module when constructing the Granola test connector. |
| test/goto/metadata/main.go | Manual program to call ListObjectMetadata for GoTo objects. |
| test/goto/connector.go | Helper to construct a GoTo connector for manual runs. |
| test/goto/auth-metadata/main.go | Manual program to fetch and log GoTo post-auth metadata (accountKey). |
| providers/goto/test/webinars.json | Fixture data for webinars metadata sampling. |
| providers/goto/test/sessions.json | Fixture data for sessions metadata sampling. |
| providers/goto/metadata_test.go | Unit tests validating metadata sampling for GoTo objects. |
| providers/goto/internal/gotocore/utils.go | URL building + response-shape extraction helpers + basic type analysis for metadata inference. |
| providers/goto/internal/gotocore/support.go | Object registry mapping object names to endpoint paths and response shape “service” types. |
| providers/goto/internal/gotocore/handlers.go | Request building (including time filters) + response parsing into ObjectMetadata. |
| providers/goto/internal/gotocore/adapter.go | Adapter wiring to schema.NewObjectSchemaProvider using the handlers. |
| providers/goto/connector.go | Top-level GoTo connector wiring (modules, adapters) and ListObjectMetadata delegation. |
| providers/goto/authmetamodel.go | Model for accountKey auth metadata map parsing/serialization. |
| providers/goto/authmetadata.go | Implements GetPostAuthInfo by retrieving accountKey from /admin/rest/v1/me. |
| providers/goTo.go | Adds GoTo modules + post-auth metadata requirement in provider catalog entry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
internal/componentsReadResults.Fieldsis returning. Any unnecessary nesting around the input is removed.jobsand notjobs.list).Sample Metadata Response