Skip to content

refactor(integrations sdk): UX improvements - #143

Merged
migmartri merged 12 commits into
chainloop-dev:mainfrom
migmartri:refactoring
Jun 7, 2023
Merged

refactor(integrations sdk): UX improvements#143
migmartri merged 12 commits into
chainloop-dev:mainfrom
migmartri:refactoring

Conversation

@migmartri

Copy link
Copy Markdown
Member

Multiple UX improvements with regards to the integrations SDK are included in this patch

  • FanOut interface methods are now consistent, req and response wise.
  • Methods down the pipe now receive the results of previous ones. For example Attach will now receive the result of Register. Execute will receive both the attachment and register configuration. The lifecycle of a fan out integration is Registration -> Attachment -> Execution
  • The use of proto.any has been removed from the SDK. Now it's only used by the API wrapper.
  • the protobuffers definition in each extension is now used only to define the expected inputs for both the registration and attachment phases.

Refs #38

migmartri added 7 commits June 6, 2023 12:45
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri
migmartri requested a review from danlishka June 6, 2023 16:22
Comment thread app/controlplane/integrations/dependencytrack/cyclonedx/v1/api.proto Outdated

@danlishka danlishka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Please consider taking a look at my pending comments.

migmartri added 5 commits June 7, 2023 10:04
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri

Copy link
Copy Markdown
Member Author

LGTM! Please consider taking a look at my pending comments.

Done! ptal!

@migmartri
migmartri merged commit 7afd4bd into chainloop-dev:main Jun 7, 2023
@migmartri
migmartri deleted the refactoring branch June 7, 2023 08:57
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.

2 participants