git-bug/cache
Michael Muré 88ad7e606f
repository: remove tie to Bug, improved and reusable testing
- 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.
2020-06-26 19:14:22 +02:00
..
bug_cache.go codereview #2: some cleanup, correct use of nothing-events 2019-12-18 07:42:16 -08:00
bug_excerpt.go bug: harmonize how time are used, fix some issues in command special formats 2020-06-25 23:18:17 +02:00
doc.go doc: add an architecture overview 2019-04-18 02:48:27 +02:00
filter_test.go cache: add proper locking to avoid concurrent access 2020-02-09 02:44:00 +01:00
filter.go query: no need for an ast package 2020-03-28 17:13:28 +01:00
identity_cache.go more more wip 2020-02-08 17:19:57 +01:00
identity_excerpt.go identity: bring back the login to hold that info from bridges (purely informational) 2020-02-25 21:35:57 +01:00
multi_repo_cache.go cache: consistently use "ref" to fetch a repository 2019-06-23 21:28:01 +02:00
repo_cache_test.go repository: remove tie to Bug, improved and reusable testing 2020-06-26 19:14:22 +02:00
repo_cache.go repository: remove tie to Bug, improved and reusable testing 2020-06-26 19:14:22 +02:00