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

feat(sdk/dotnet): rework on query builder #7208

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

wingyplus
Copy link
Contributor

In this PR try to modernize DotNet SDK by do the following:

  • Upgrade .net from 7 to 8.
  • Setup .editorconfig to make dotnet format works.
  • Rework on query builder by introduce QueryBuilder class and port the logic from Go to it. Mostly feature is covered I guess.
  • Restructure folder from DaggerSDK to Dagger.SDK.
  • Temporary move DaggerSDKCodegen out of the solution. We will tackle next after this PR. :)

Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
But still out of the solution since it under construction.

Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
@wingyplus wingyplus requested a review from a team as a code owner April 26, 2024 16:12
{
private readonly HttpClient _httpClient;

public GraphQLClient() : this(Environment.GetEnvironmentVariable("DAGGER_SESSION_PORT")!, Environment.GetEnvironmentVariable("DAGGER_SESSION_TOKEN")!)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think our first priority is to get it support module. So I think it's ok for now to support only run under dagger run.


public class Dagger
{
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll leave it empty class for now until we make codegen work.

Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
Signed-off-by: Thanabodee Charoenpiriyakij <[email protected]>
@MikaelElkiaer
Copy link

@wingyplus This is funny coincidence. I just forked and started looking at code generation the other day: https://github.com/MikaelElkiaer/dagger/tree/feat/sdk-dotnet-codegen/sdk/dotnet
I was about to look at actually generating some queries.

@wingyplus
Copy link
Contributor Author

@MikaelElkiaer yeah, I just start exploring the codegen yesterday too. 😃

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.

None yet

2 participants