Skip to content

MultiPartBody: Add Support for multiple Body Parts with the same name#530

Merged
baywet merged 6 commits into
microsoft:mainfrom
romanett:feature/extendMulitPartBody
Apr 3, 2025
Merged

MultiPartBody: Add Support for multiple Body Parts with the same name#530
baywet merged 6 commits into
microsoft:mainfrom
romanett:feature/extendMulitPartBody

Conversation

@romanett

@romanett romanett commented Mar 20, 2025

Copy link
Copy Markdown
Contributor
  • change MultiPartbody internal dictionary key from string to Tuple<string, string?)
  • Add additional method overloads for GetPartValue RemovePart
  • Add EqualityComparer fro Tuple<string, string?>
  • Add failing Test showcasing the imminent breaking change
  • Add passing Test verifying the new intened behaviour

Fixes: #529

- change MultiPartbody internal dictionary key from string to Tuple<string, string?)
- Add additional method overloads for GetPartValue<T> RemovePart
- Add EqualityComparer fro Tuple<string, string?>
- Add failing Test showcasing the imminent breaking change
- Add passing Test verifying the new intened behaviour
@romanett romanett requested a review from a team as a code owner March 20, 2025 08:54
@romanett romanett marked this pull request as draft March 20, 2025 08:55
@romanett

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@baywet baywet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the contribution!

Comment thread src/abstractions/MultipartBody.cs Outdated
Comment thread src/abstractions/MultipartBody.cs Outdated
Comment thread src/abstractions/MultipartBody.cs
Comment thread src/abstractions/MultipartBody.cs Outdated
@github-project-automation github-project-automation Bot moved this to In Progress 🚧 in Kiota Mar 20, 2025
@romanett romanett requested a review from baywet March 21, 2025 06:30
@romanett romanett marked this pull request as ready for review March 23, 2025 19:58

@baywet baywet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for your patience.

Comment thread src/abstractions/MultipartBody.cs Outdated
Comment thread src/abstractions/MultipartBody.cs Outdated
Comment thread tests/abstractions/MultipartBodyTests.cs
baywet
baywet previously approved these changes Mar 25, 2025

@baywet baywet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for making the changes!

@musale for an additional review here

@romanett

romanett commented Apr 3, 2025

Copy link
Copy Markdown
Contributor Author

@baywet do you have a rough timeline when the next release will happen, that includes this fix?

@baywet

baywet commented Apr 3, 2025

Copy link
Copy Markdown
Member

Releases are automated, so once this PR merges, about a couple of hours usually.
I'll ping @musale again internally for a second review. Thanks for the nudge.

@musale musale left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

thank you for the good work @romanett!

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

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

MultiPartBody: Impossible to add multiple Body Parts with the same name

3 participants