Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(Partner SDK): Add V2 examples for SourceConnector #80

Merged
merged 9 commits into from
Jan 9, 2025

Conversation

fivetran-satvikpatil
Copy link
Contributor

@fivetran-satvikpatil fivetran-satvikpatil commented Jan 2, 2025

Link T-849690

Description

Added V2 examples for SourceConnector

Testing (Updating...)

  • Java
Screenshot 2025-01-02 at 3 03 00 PM Screenshot 2025-01-02 at 3 03 16 PM
  • Python
Screenshot 2025-01-02 at 3 04 54 PM Screenshot 2025-01-02 at 3 05 03 PM
  • Nodejs
Screenshot 2025-01-02 at 3 07 07 PM Screenshot 2025-01-02 at 3 07 26 PM
  • Golang
Screenshot 2025-01-02 at 3 08 40 PM Screenshot 2025-01-02 at 3 08 53 PM

Copy link

height bot commented Jan 2, 2025

This pull request has been linked to 1 task:

💡Tip: Add "Close T-849690" to the pull request title or description, to a commit message, or in a comment to mark this task as "Done" when the pull request is merged.

@fivetran-satvikpatil fivetran-satvikpatil marked this pull request as ready for review January 2, 2025 09:45
@@ -36,7 +35,7 @@ func (s *server) Update(in *pb.UpdateRequest, stream pb.Connector_UpdateServer)
state := MyState{}
json.Unmarshal([]byte(state_json), &state)

message := fmt.Sprintf("config: %s, selection: %s, state_json: %s, mystate: %s", config, selection, state_json, state)
message := fmt.Sprintf("config: %s, selection: %s, state_json: %s, mystate: %+v", config, selection, state_json, state)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why %+v ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

%+v format specifier is used with the fmt to print the value of a struct with field names included.
We shouldn't use %s for it.

}

message ConfigurationTest {
string name = 1; // unique identifier for the test
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: Remove the comments

Copy link
Collaborator

@manjutapali manjutapali left a comment

Choose a reason for hiding this comment

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

Looks good.

@fivetran-satvikpatil fivetran-satvikpatil merged commit 3825371 into main Jan 9, 2025
1 check failed
@fivetran-satvikpatil fivetran-satvikpatil deleted the satvik/v2-source-examples branch January 9, 2025 04:47
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