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

SystemTextJsonSerializer: Adds UseSystemTextJsonSerializerWithOptions in CosmosClientOptions to Set the Default STJ Serializer #4589

Merged
merged 25 commits into from
Jul 30, 2024

Conversation

kundadebdatta
Copy link
Member

@kundadebdatta kundadebdatta commented Jul 16, 2024

Pull Request Template

Description

This PR refactors Code to Introduce UseSystemTextJsonSerializerWithOptions parameter in the CosmosClientOptions to Set the Default STJ Serializer for both preview and GA release. To read more about the default serializer, please refer to this PR.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Closing issues

To automatically close an issue: closes #IssueNumber

@kundadebdatta kundadebdatta self-assigned this Jul 16, 2024
@kundadebdatta kundadebdatta marked this pull request as ready for review July 16, 2024 20:08
NaluTripician
NaluTripician previously approved these changes Jul 16, 2024
Pilchie
Pilchie previously approved these changes Jul 19, 2024
@Pilchie
Copy link
Member

Pilchie commented Jul 19, 2024

Maybe change the title of the PR?

Copy link
Member

@Pilchie Pilchie 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. A few suggestions, and agree with the name proposal in @kirankumarkolli's review.

@kundadebdatta kundadebdatta marked this pull request as draft July 25, 2024 23:55
Pilchie
Pilchie previously approved these changes Jul 29, 2024
@kundadebdatta kundadebdatta marked this pull request as ready for review July 29, 2024 18:27
@kirankumarkolli kirankumarkolli merged commit 908f037 into master Jul 30, 2024
21 checks passed
@kirankumarkolli kirankumarkolli deleted the users/kundadebdatta/make_stj_serializer_public branch July 30, 2024 15:51
@Pilchie
Copy link
Member

Pilchie commented Jul 30, 2024

Hooray! 🎆 Looking forward to deleting the copies of that code that I've been littering in my projects ;)

@CSharpFiasco
Copy link

Any hope this will make 3.43.0? I very much appreciate this PR by the way, I'm looking forward to it!

@kundadebdatta kundadebdatta changed the title SystemTextJsonSerializer: Refactors Code to Introduce SystemTextJsonSerializerOptions to Set the Default STJ Serializer SystemTextJsonSerializer: Refactors Code to Introduce UseSystemTextJsonSerializerWithOptions to Set the Default STJ Serializer Sep 9, 2024
@kirankumarkolli kirankumarkolli changed the title SystemTextJsonSerializer: Refactors Code to Introduce UseSystemTextJsonSerializerWithOptions to Set the Default STJ Serializer SystemTextJsonSerializer: UseSystemTextJsonSerializerWithOptions to Set the Default STJ Serializer Sep 10, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@kirankumarkolli kirankumarkolli changed the title SystemTextJsonSerializer: UseSystemTextJsonSerializerWithOptions to Set the Default STJ Serializer SystemTextJsonSerializer: Add UseSystemTextJsonSerializerWithOptions to Set the Default STJ Serializer Sep 10, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@kundadebdatta kundadebdatta changed the title SystemTextJsonSerializer: Add UseSystemTextJsonSerializerWithOptions to Set the Default STJ Serializer SystemTextJsonSerializer: Adds UseSystemTextJsonSerializerWithOptions in CosmosClientOptions to Set the Default STJ Serializer Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Enables automation to merge PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants