Skip to content

Repository rework - #411

Merged
MichaelMure merged 1 commit into
masterfrom
repo-rework
Jun 26, 2020
Merged

MichaelMure merged 1 commit into
masterfrom
repo-rework

Conversation

@MichaelMure

@MichaelMure MichaelMure commented Jun 23, 2020 •

Copy link
Copy Markdown
Contributor

This PR rework and improve the repository layer:

  • allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code.
  • generalize the memory-only and persisted Lamport clocks behind a common interface
  • rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily
  • test previously untested components with those new tests

Note: one problem found during this endeavor is that identity.Version also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.

@MichaelMure
MichaelMure force-pushed the repo-rework branch 2 times, most recently from f8e4d46 to 613bd59 Compare June 26, 2020 17:13
@MichaelMure
MichaelMure marked this pull request as ready for review June 26, 2020 17:13
- allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code.
- generalize the memory-only and persisted Lamport clocks behind a common interface
- rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily
- test previously untested components with those new tests

Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
@MichaelMure
MichaelMure merged commit 1e3dd82 into master Jun 26, 2020
@MichaelMure
MichaelMure deleted the repo-rework branch June 26, 2020 17:20
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.

1 participant