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

Fix saving work items when impersonation is enabled #236

Closed

Conversation

aok-foss
Copy link
Contributor

Fixes #229

Updates WorkItemWrapper field assignment logic so that repeated assignments of the same fields result in correct values of Changes and IsDirty. In particular, setting a field to null and then to a non-null value will no longer result in emitting a Remove operation with a non-null value.

giuliov added a commit that referenced this pull request May 1, 2021
@giuliov
Copy link
Member

giuliov commented May 1, 2021

I opted for a different solution when a field is reset to original value and dirty flag should be cleared.

You can see it in the release/1.1 branch.

@giuliov giuliov closed this May 1, 2021
giuliov added a commit that referenced this pull request Jun 12, 2021
* fix typos in messages

* Squashed commit of the following:

commit 80e7206
Author: George Roberts <groberts@moddigital.net>
Date:   Mon Feb 8 10:51:21 2021 -0600

    Remove test log line

commit bf4d89d
Author: George Roberts <groberts@moddigital.net>
Date:   Sat Feb 6 23:26:55 2021 -0600

    Remove some extraneous logging

commit db994e3
Author: George Roberts <groberts@moddigital.net>
Date:   Sat Feb 6 23:16:06 2021 -0600

    Fix tests

commit c5945cd
Author: George Roberts <groberts@moddigital.net>
Date:   Sat Feb 6 22:57:14 2021 -0600

    Fix bypassrules value

commit 59f338d
Author: George Roberts <groberts@moddigital.net>
Date:   Sat Feb 6 22:54:45 2021 -0600

    Support for .bypassrules directive

* fixed an issue which caused removing work item links to fail

* Fix ".check revision false" directive disappearing on rule upload

* change log

* Add tests to check more double assignment cases

* Fixes #229 - double assignment and reset to original value

Alternative implementation to PR #236

* Fixes spurious upgrade message noted in #225

* trigger build

* Fully async

Co-authored-by: Rob Osborne <rob.osborne@capita.co.uk>
Co-authored-by: Alexander Omelchuk <AOK@foss.dk>
@aok-foss aok-foss deleted the fix-impersonation-error branch August 19, 2021 08:40
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.

Updating a work item is failing when using impersonation since 1.0.1 update
2 participants