Closed hydraserg closed 4 months ago
Do not remove the workaround. I still have an email with a description that lets met think that there are still usecases in which the workaround might be necessary.
And please do not add more MsAzure related code into the PatchTargetHandler. I am already unhappy enough with the latest change that did require this.
created PR #681 with unit-test and possible fix.
@Captain-P-Goldfish yes sure, i haven't removed workaround just disabled it in PR for visibility of possible fix changes in PatchTargetHandler are pretty small
@Captain-P-Goldfish Thank you very much for fix and quick release !
Hi
I want to report an issue related to #668 that was present even before #667 changes. I was hoping it would be fixed in it, but issue still exists. MsAzurePatchFilterWorkaround breaks "add" patching operation for multiple subattributes in multivalued complex attribute which is used by MS Azure.
Having user resource:
With MS Azure patch request containing operations for updating multiple subattributes:
resulting user resource will look like this:
but result should be with single address record:
I like the changes that were done in #668 to change behavior in PatchTargetHandler using PatchConfig flag, as i don't see a good way to implement Azure workaround (for adding subattribute from 'eq' filter) using PatchWorkaround class. With those changes there is really no need for MsAzurePatchFilterWorkaround workaround, because default code is already working as Azure expects for both add & replace operations. So I would suggest to remove MsAzurePatchFilterWorkaround, but keep PatchConfig flag and process "add" and "replace" operations same way in PatchTargetHandler.
I'll create PR with unit-tests that cover this use case and possible solution.