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

(refactor): use a map of chapters with list of refs #23

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agilgur5
Copy link
Owner

  • somewhat similar to how mangas work
  • significantly simplify merge logic for chapters as we just need to
    update the map entry and then update the list of refs to the new
    order directly
    • this also handles arbitrary additions of new chapters anywhere
      in the list (that the previous version did not)

This is the more optimal fix for #21 and a follow-up PR to the simple fix in #22 .

WIP status as this is currently blocked by at least agilgur5/mst-persist#16 as it requires the persisted data to be migrated to the new format. That PR adds transforms to mst-persist, on top of which we can add migrations. Still need to think about how to version the data appropriately.

- somewhat similar to how mangas work
- significantly simplify merge logic for chapters as we just need to
  update the map entry and then update the list of refs to the new
  order directly
  - this also handles arbitrary additions of new chapters anywhere
    in the list (that the previous version did not)
@agilgur5 agilgur5 added the external blocker This is blocked by an issue in an external dependency label Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external blocker This is blocked by an issue in an external dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant