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

chore: Remove "updated" for deactivated document #669

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

sandrask
Copy link
Contributor

@sandrask sandrask commented Apr 8, 2022

Since Sidetree resolution is processing full operations first (create, recover, deactivate) having "updated" in the resolution result for deactivate document will lead to inconsistent behaviour. If there was a 'recover' operation in the chain it will return "updated" otherwise it will be empty. Also in this case "updated" means the anchoring time of last recover and not necessarily the last update.

Closes #668

Signed-off-by: Sandra Vrtikapa sandra.vrtikapa@securekey.com

@cla-bot cla-bot bot added the cla-signed label Apr 8, 2022
Since Sidetree resolution is processing full operations first (create, recover, deactivate) having "updated" in the resolution result for deactivate document will lead to inconsistent behaviour. If there was a 'recover' operation in the chain it will return "updated" otherwise it will be empty. Also in this case "updated" means the anchoring time of last recover and not necessarily the last update.

Closes trustbloc#668

Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
@codecov
Copy link

codecov bot commented Apr 8, 2022

Codecov Report

Merging #669 (9a5ec12) into main (ddd9885) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #669   +/-   ##
=======================================
  Coverage   93.70%   93.70%           
=======================================
  Files          76       76           
  Lines        4207     4207           
=======================================
  Hits         3942     3942           
  Misses        148      148           
  Partials      117      117           
Impacted Files Coverage Δ
...g/versions/1_0/doctransformer/metadata/metadata.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddd9885...9a5ec12. Read the comment docs.

@sandrask sandrask merged commit e4b13c0 into trustbloc:main Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove "updated" for deactivated document
3 participants