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

v23.0.0 Update & Clean PR #2: Dgraph Client Refactor #33

Merged
merged 9 commits into from
Jul 20, 2023

Conversation

sachyco
Copy link
Contributor

@sachyco sachyco commented Jul 10, 2023

Most of the changed files contain simple style, formatting, and naming cleanup.

Functional changes are mainly related to aligning this client to the dgo client and are concentrated in these classes/interfaces:

  • DgraphCloudChannel
    • The static Create method implements the dgo DialCloud logic.
  • DgraphClient
  • IDgraphClient
    • Users will interact with this interface instead of the DgraphClient class directly.
  • Transaction
    • Added a Do method similar to the dgo implementation.
  • ITransaction
    • Again, users will interact with this interface instead of the Transaction class directly.
  • IQuery
    • Represents a read-only transaction.
    • Transaction class is hidden behind this interface when creating it with client.NewReadOnlyTransaction
  • RequestBuilder
  • MutationBuilder

README.md is also heavily rewritten to match the dgo readme as closely as possible.

Note: The tests will fail until PR #34 is merged.

@CLAassistant
Copy link

CLAassistant commented Jul 10, 2023

CLA assistant check
All committers have signed the CLA.

Copy link

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

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

Looks pretty good. I am happy to see that you have cleaned up the repo too, added comments and got it closer to dgo. Good work!

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
source/Dgraph/Channels/CloudChannel.cs Outdated Show resolved Hide resolved
source/Dgraph/Client/DgraphClient.cs Outdated Show resolved Hide resolved
source/Dgraph/Transactions/ITransaction.cs Outdated Show resolved Hide resolved
source/Dgraph/Transactions/Transaction.cs Show resolved Hide resolved
source/Dgraph/github.com/dgraph-io/dgraph/protos/pb.proto Outdated Show resolved Hide resolved
source/Dgraph/Channels/CloudChannel.cs Outdated Show resolved Hide resolved
source/Dgraph/Channels/CloudChannel.cs Show resolved Hide resolved
source/Dgraph/Client/IDgraphClient.cs Show resolved Hide resolved
source/Dgraph/Dgraph.csproj Outdated Show resolved Hide resolved
@mangalaman93
Copy link

I was able to merge the first PR, please do a rebase and we will review this PR.

@sachyco
Copy link
Contributor Author

sachyco commented Jul 13, 2023

I was able to merge the first PR, please do a rebase and we will review this PR.

Rebase complete @mangalaman93

Copy link

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

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

a few more comments, this looks good to me. @all-seeing-code @MichelDiz please review & approve once my comments are addressed.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
source/Dgraph/Channels/CloudChannel.cs Outdated Show resolved Hide resolved
Copy link

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

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

one more comment, then we are good to merge.

source/Dgraph/Channels/CloudChannel.cs Outdated Show resolved Hide resolved
@all-seeing-code
Copy link

Tests fail right now. Is that expected?

@mangalaman93
Copy link

@all-seeing-code yeah, next PR will fix it

@mangalaman93 mangalaman93 merged commit 09440c6 into dgraph-io:master Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants