tsbonev / nharker

NHaker - an offline writing organization tool
0 stars 0 forks source link

nharker-core: add article restoration #137

Closed tsbonev closed 6 years ago

tsbonev commented 6 years ago

Added logic to restore an article's entries, properties and links when restoring from the trash. Added verification logic to an entry's explicit links when restoring from the trash. Covers first point of #129.

Added documentation for OrderedMap, ArticleLinks and ArticleProperties, closes #136.

codecov[bot] commented 6 years ago

Codecov Report

Merging #137 into master will decrease coverage by 0.41%. The diff coverage is 88.73%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #137      +/-   ##
============================================
- Coverage     96.82%   96.41%   -0.42%     
- Complexity      275      280       +5     
============================================
  Files            32       32              
  Lines           914      975      +61     
  Branches         82       93      +11     
============================================
+ Hits            885      940      +55     
+ Misses            5        4       -1     
- Partials         24       31       +7
Impacted Files Coverage Δ Complexity Δ
...tlin/com/tsbonev/nharker/core/ArticleProperties.kt 100% <ø> (ø) 5 <0> (ø) :arrow_down:
...m/tsbonev/nharker/core/helpers/EntityConverters.kt 100% <ø> (ø) 0 <0> (ø) :arrow_down:
...lin/com/tsbonev/nharker/core/helpers/OrderedMap.kt 94.73% <100%> (+0.98%) 0 <0> (ø) :arrow_down:
...m/tsbonev/nharker/server/workflow/EntryWorkflow.kt 97.95% <100%> (+0.59%) 11 <1> (+1) :arrow_up:
...in/kotlin/com/tsbonev/nharker/core/ArticleLinks.kt 75% <75%> (ø) 8 <8> (ø) :arrow_down:
...tsbonev/nharker/server/workflow/ArticleWorkflow.kt 94.81% <87.5%> (-4.05%) 22 <4> (+4)
...main/kotlin/com/tsbonev/nharker/cqrs/StatusCode.kt 96.36% <0%> (ø) 2% <0%> (ø) :arrow_down:

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 acdf795...e6787ae. Read the comment docs.