Skip to content

HotChocolate 16 Milestone 11 Migration#3136

Open
michaelstaib wants to merge 3 commits intoAzure:mainfrom
michaelstaib:mst/16-milestone.11
Open

HotChocolate 16 Milestone 11 Migration#3136
michaelstaib wants to merge 3 commits intoAzure:mainfrom
michaelstaib:mst/16-milestone.11

Conversation

@michaelstaib
Copy link
Collaborator

Why make this change?

This upgraded Data API Builder to the near final preview of Hot Chocolate 16

DATETIME_TYPE => new(DATETIME_TYPE, new DateTimeType().ValueToLiteral(
DateTime.Parse(defaultValueFromConfig, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AssumeUniversal))),
BYTEARRAY_TYPE => new(BYTEARRAY_TYPE, new ByteArrayType().ParseValue(Convert.FromBase64String(defaultValueFromConfig))),
LOCALTIME_TYPE => new(LOCALTIME_TYPE, new HotChocolate.Types.NodaTime.LocalTimeType().ParseResult(LocalTimePattern.ExtendedIso.Parse(defaultValueFromConfig).Value)),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do both ParseResult and ParseValue map to ValueToLiteral now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh ... overlooked this one...

Its mainly naming ... the reference implementation created a better naming for scalar the conversion tasks as scalar has. We adopted this change to Hot Chocolate.

I will however look at this change more closely.

@Aniruddh25
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@Aniruddh25
Copy link
Collaborator

@copilot, fix formatting error:

/home/vsts/work/1/s/src/Core/Services/ExecutionHelper.cs(21,1): warning IDE0005: Using directive is unnecessary. [/home/vsts/work/1/s/src/Core/Azure.DataApiBuilder.Core.csproj]

@Aniruddh25
Copy link
Collaborator

@copilot, fix formatting error:

/home/vsts/work/1/s/src/Core/Services/ExecutionHelper.cs(21,1): warning IDE0005: Using directive is unnecessary. [/home/vsts/work/1/s/src/Core/Azure.DataApiBuilder.Core.csproj]

looks like copilot wont work cross repos, this needs to be fixed manually.

@Aniruddh25
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants