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: preserve id on DOCUMENT_MODIFIED reordering #308

Merged
merged 1 commit into from
Sep 27, 2020
Merged

fix: preserve id on DOCUMENT_MODIFIED reordering #308

merged 1 commit into from
Sep 27, 2020

Conversation

puppybits
Copy link
Contributor

Description

When a DOCUMENT_MODIFIED && newIndex !== oldIndex the id of the ordered document is removed. This fix ensures that the meta.doc is spread into the newly changed document.

Check List

If not relevant to pull request, check off as complete

  • All tests passing
  • Docs updated with any changes or examples if applicable
  • Added tests to ensure new feature(s) work properly

Relevant Issues

#292

@codecov
Copy link

codecov bot commented Sep 23, 2020

Codecov Report

Merging #308 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #308      +/-   ##
==========================================
+ Coverage   90.09%   90.11%   +0.01%     
==========================================
  Files          19       19              
  Lines         626      627       +1     
==========================================
+ Hits          564      565       +1     
  Misses         62       62              
Impacted Files Coverage Δ
src/reducers/orderedReducer.js 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 d7a5613...39e5e8d. Read the comment docs.

@delete-merged-branch delete-merged-branch bot deleted the reordering-doc-id-fix branch September 23, 2020 16:39
@puppybits
Copy link
Contributor Author

@prescottprue Is there anything else you'd like to see in order to get this minor bug fix merged?

@prescottprue prescottprue changed the base branch from master to v0.14.0 September 27, 2020 17:14
@prescottprue prescottprue merged commit 83e2ed7 into prescottprue:v0.14.0 Sep 27, 2020
@prescottprue prescottprue mentioned this pull request Sep 30, 2020
3 tasks
prescottprue added a commit that referenced this pull request Sep 30, 2020
* fix: preserve id on document modified reordering (#308) - @puppybits
* fix(types): de-dupe action types by reusing existing const (#290) - @msutkowski
* fix(docs): enhanced example in README (#286) - @gregfenton
* build(deps): update lodash to 4.17.20
* build(deps): bump elliptic from 6.5.2 to 6.5.3 (#302)
* build(deps): bump elliptic from 6.5.1 to 6.5.3 in /examples/basic (#301)
* build(deps): bump http-proxy from 1.18.0 to 1.18.1 in /examples/basic (#306)
* build(deps): bump handlebars from 4.5.1 to 4.7.6 in /examples/basic (#305)
* build(deps-dev): bump codecov from 3.6.5 to 3.7.1 (#300)

Co-authored-by: Bobby <bobby@getfiskal.com>
Co-authored-by: gregfenton <greg.fenton@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>
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.

2 participants