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

Rework mapping api (#295) #296

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Rework mapping api (#295) #296

merged 1 commit into from
Jan 18, 2022

Conversation

danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Jan 18, 2022

Related to #69

Brings back #295 to release-1.1

* New interfaces for better segregation

* Start reworking the API (WIP)

* Further refactoring and splitting responsibilities

* Fix the behavior tests

* Fix the partition key extractor tests

* Make things compile again

* Remove the old interface and approve the API

* More adjustments

* Add TODOs for Bob

* Added header overloads to TransactionInformationConfiguration

* Add extract CI from all headers and partial file for readability

* Add extract CI from headers and partial file for readability

* Skeleton extractor tests

* Partial of PartitionKeyExtractor

* ContainerInformation Header argument rename

* Some container information extractor tests

* Make sure we don't miss exposing extraction APIs

* Expose missing APIs

* Fix test

* Approve API

* Additional overloads and test coverage

* More test coverage and tweak to exception message

* Container API covered by acceptance test

* Coverage of logical container extraction

* More acceptance test coverage

* For the from headers cases allow the returned struct to be null
Add test coverage for the scenarios in docs
Remove some TODOs

* Unit test for null returns

* Cleanup and documentation

* Fix test

* Rename the container acceptance tests to di

Co-authored-by: Bob Langley <bob.langley@particular.net>
# Conflicts:
#	src/NServiceBus.Persistence.CosmosDB.LogicalOutbox.AcceptanceTests/ConfigureEndpointCosmosDBPersistence.cs
#	src/NServiceBus.Persistence.CosmosDB.LogicalOutbox.AcceptanceTests/When_custom_partition_key_extractor_from_message_registered_via_di.cs
#	src/NServiceBus.Persistence.CosmosDB.PhysicalOutbox.AcceptanceTests/ConfigureEndpointCosmosDBPersistence.cs
#	src/NServiceBus.Persistence.CosmosDB.PhysicalOutbox.AcceptanceTests/When_custom_partition_key_extractor_from_headers_registered_via_di.cs
#	src/NServiceBus.Persistence.CosmosDB/Transaction/TransactionInformationBeforeTheLogicalOutboxBehavior.cs
#	src/NServiceBus.Persistence.CosmosDB/Transaction/TransactionInformationBeforeThePhysicalOutboxBehavior.cs
@danielmarbach danielmarbach merged commit 5ccdcb8 into release-1.1 Jan 18, 2022
@danielmarbach danielmarbach deleted the backport-rework branch January 18, 2022 16:55
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