aboutsummaryrefslogtreecommitdiffstats
path: root/cache
Commit message (Collapse)AuthorAgeFilesLines
* bridge: store credentials in the Keyring instead of the git configMichael Muré2020-09-291-3/+2
|
* Update cache/lru_id_cache.goVincent Tiu2020-08-271-1/+1
| | | Co-authored-by: Michael Muré <batolettre@gmail.com>
* Fix bugs and cleanup codevince2020-08-262-3/+3
|
* cache: simplify cache evictionMichael Muré2020-08-254-98/+89
|
* Implement cache eviction and testingvince2020-08-255-75/+73
|
* Implement the LRU Cachevince2020-08-204-29/+220
|
* Fix concurrency errorvince2020-08-181-11/+24
|
* Remove pointer and unnecessary codevince2020-08-132-19/+1
|
* Add mutex to bugCachevince2020-08-132-0/+51
| | | | This adds a mutex to the bugCache to deal with locking.
* cache: fix BugExcerpt's timestamp not properly storedMichael Muré2020-07-282-10/+9
| | | | fix #426
* bug: code cleanup for the rm featureMichael Muré2020-07-281-0/+5
|
* Fix bug testsvince2020-07-281-5/+48
|
* Update docsvince2020-07-281-1/+1
|
* Remove need to specify remotevince2020-07-281-11/+2
| | | | This commit makes the removeBug command use the listRefs repo command to search for the bug, eliminating the need to input the remote the bug came from.
* Move args parsing out of repo cachevince2020-07-282-9/+5
|
* Add test for removing bug from cachevince2020-07-281-0/+5
|
* Allow user to delete remote bugsvince2020-07-281-3/+14
|
* Add the 'rm' commandvince2020-07-281-0/+18
| | | | This commit adds a command that removes a bug from the repository, given a prefix.
* cache: split into multiple files for readabilityMichael Muré2020-07-034-846/+881
|
* repository: merge git.Hash in for one less /util packageMichael Muré2020-07-012-8/+7
|
* Reorganize the webUI and API codeMichael Muré2020-06-272-8/+18
| | | | | | | | | | Included in the changes: - create a new /api root package to hold all API code, migrate /graphql in there - git API handlers all use the cache instead of the repo directly - git API handlers are now tested - git API handlers now require a "repo" mux parameter - lots of untangling of API/handlers/middleware - less code in commands/webui.go
* repository: remove tie to Bug, improved and reusable testingMichael Muré2020-06-262-3/+9
| | | | | | | | | - 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.
* fix cache not rebuilding properlyMichael Muré2020-06-261-20/+3
|
* bug: harmonize how time are used, fix some issues in command special formatsMichael Muré2020-06-252-10/+23
| | | | This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
* query: no need for an ast packageMichael Muré2020-03-282-14/+14
|
* cache: replace the all-in-one query parser by a complete one with ↵Michael Muré2020-03-286-251/+52
| | | | AST/lexer/parser
* cache: fix missing login in LegacyAuthorExcerpt causing panicMichael Muré2020-03-051-1/+2
|
* identity: bring back the login to hold that info from bridges (purely ↵Michael Muré2020-02-254-10/+35
| | | | informational)
* Merge remote-tracking branch 'origin/master' into cheshirekow-jiraMichael Muré2020-02-141-0/+12
|\
| * graphql: expose the name of RepositoryMichael Muré2020-02-121-0/+12
| |
* | Merge remote-tracking branch 'origin/master' into cheshirekow-jiraMichael Muré2020-02-097-139/+270
|\|
| * cache: add proper locking to avoid concurrent accessMichael Muré2020-02-093-31/+123
| |
| * graphql: use the cache in priority for fast browsing at < 20ms instead of ↵Michael Muré2020-02-091-22/+86
| | | | | | | | seconds
| * more more wipMichael Muré2020-02-086-46/+29
| |
| * wipMichael Muré2020-02-081-1/+1
| |
| * cache: rework resolving of bugs, identityMichael Muré2020-02-081-42/+30
| |
| * identity: rework mutationMichael Muré2020-02-081-2/+2
| |
| * cache: don't store legacy identities IDs in bug excerpt as they are not ↵Michael Muré2020-02-031-6/+10
| | | | | | | | reachable. Fix a panic
* | codereview #2: some cleanup, correct use of nothing-eventsJosh Bialkowski2019-12-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * return error, don't panic * skipping status export is an error * use switch in config.go * move PromptPassword to input * move client construction into getIdentityClient * use non-pointer context throughout client since it is an interface * remove some TODOs * don't emit multiple nothing-events, just one per bug only if nothing happened. * rename EditBody to EditCreateComment * add configuration notes about additional values * store bug id map in a dictionary in the config * some fixes from testing
* | Implement jira bridgeJosh Bialkowski2019-12-181-0/+22
|/
* cmd: "user create" only assign the user identity if not setMichael Muré2019-12-101-0/+4
|
* bridge/github: importer corectly emit eventsamine2019-11-191-0/+4
|
* cache: update RepoCache and identity to use new repository Configamine2019-11-011-25/+10
|
* issue 178: fetch the repo dir with rev-parse --git-dirSebastien Devaux2019-08-241-3/+3
| | | | | Since is returns the .git dir directly, it is not more needed to concatenate .git.
* bridge/core: add context.Context to ImportAll and ExportAll signaturesAmine Hilaly2019-08-181-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bridge/core: add ImportResult objects to stream import events bridge/core: launchpad support asynchronous import bridge/github: cancellable export and import functions bridge/gitlab: cancellable export and import functions commands: bridge pull/push gracefull kill bridge/github: fix github import bridge/github: use simple context for imports bridge/core: name parameters in interfaces github/core: Add EventError to export and import events types bridge/gitlab: add context support in gitlab requests functions bridge/gitlab: remove imported events count from importer logic bridge/github: remove imported events count from importer logic bridge/github: add context support in query and muration requets bridge/github: fix bug duplicate editions after multiple calls bridge/core: import import and export events String methods bridge/gitlab: fix error handling in note import events commands/bridge: Add statistics about imports and exports bridge/gitlab: properly handle context cancellation bridge/github: improve error handling bridge: break iterators on context cancel or timeout bridge: add context timeout support bridge: improve event formating and error handling commands: handle interrupt and switch cases bridge/github: add export mutation timeouts bridge: fix race condition bug in the github and gitlab importers bridge/github: improve context error handling
* finish the refactoring for the dedicated identifier typeMichael Muré2019-08-125-87/+62
|
* bug,entity: use a dedicated type to store IDsMichael Muré2019-08-111-3/+4
|
* fix everything following the hash-->id changeMichael Muré2019-08-081-12/+8
|
* [misc] update man docs and completion scriptsAmine Hilaly2019-06-241-1/+1
| | | | | | [cache] BugCache: Fix set metadata raw [bridge/github] Fix graphql input objects
* [cache] BugCache: Add set metadata methodsAmine Hilaly2019-06-241-0/+18
| | | | | | [bridge/github] fix add/remove mutation requests [bridge/github] iterator: fix typo