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

Protocol tests issue4 #3243

Merged
merged 7 commits into from
Apr 3, 2024
Merged

Protocol tests issue4 #3243

merged 7 commits into from
Apr 3, 2024

Conversation

boblodgett
Copy link
Contributor

Description

This PR fixes DOTNET-7357 issue 4. Issue 4 Rest-Json Protocol : Incorrectly marshalling dateTimes in the URL.

  • (Review manual changes) commit 6f8d626 - Fixes for issue 4.
  • (Reference generated changes) commit 3fcab45 - Generated changes for issue 4.

MERGE into protocol-tests feature branch only

Builds on prior PR: #3242
Merge order: 2
Ticket: DOTNET-7357

Motivation and Context

Testing

N/A - the test cases are the protocol tests. A final dry-run will be done on the protocol-tests feature branch once everything is merged into the feature branch.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

@boblodgett boblodgett requested a review from peterrsongg April 2, 2024 21:58
@boblodgett boblodgett changed the base branch from protocol-tests to protocol-tests-1.0.96.0 April 2, 2024 22:02
/// Converts a DateTime to ISO8601 formatted string with milliseconds
/// if they are not zero.
/// </summary>
public static string FromDateTimeToISO8601Minimal(DateTime value)
Copy link
Member

Choose a reason for hiding this comment

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

What does word "Minimal" have to do with including milliseconds? Shouldn't this be FromDateTimeToISO8601WithMs?

Copy link
Contributor Author

@boblodgett boblodgett Apr 2, 2024

Choose a reason for hiding this comment

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

It will use minimal ms length. Meaning if there are ms != 000 it will include it else it won't. I am open to other names but the above suggestion isn't completely correct as it may not have ms. We also already have a with and without ms method but not a smart one that includes ms if not 0.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah that is hard to name. Maybe FromDateTimeToISO8601WithOptionalMs? Either way it is going to come down to the docs which you do have. I'll approve the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to the new suggested method name FromDateTimeToISO8601WithOptionalMs as it does make it clearer and is accurate.

@peterrsongg
Copy link
Contributor

Not related, but I think we can check the "I have added test to cover my changes" for each issue, since we do have protocol tests related to each issue we are fixing.

Base automatically changed from protocol-tests-1.0.96.0 to protocol-tests April 3, 2024 18:12
@boblodgett boblodgett merged commit 73ae33f into protocol-tests Apr 3, 2024
2 checks passed
@boblodgett boblodgett deleted the protocol-tests-issue4 branch April 3, 2024 18:15
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