Michael Muré
295da9c70f
cache: ensure that the default repo has a non-empty name to make js/apollo happy
2022-05-31 21:47:57 +02:00
Michael Muré
2ab6381a94
Reorganize the webUI and API code
...
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
2020-06-27 23:03:05 +02:00
Michael Muré
9f4da4ce4f
cache: consistently use "ref" to fetch a repository
2019-06-23 21:28:01 +02:00
Michael Muré
b2f8572c44
graphql: change mutations to respect the Relay specification
...
https://facebook.github.io/relay/graphql/mutations.htm
This specification also allow to expose a mutationId for fire and forget,
as well as the created operation.
2019-06-16 21:29:49 +02:00
Michael Muré
844616baf8
identity: more progress and fixes
2019-03-01 22:40:21 +01:00
Michael Muré
82eaceffc1
repo: split the Repo interface to avoid abstraction leak in RepoCache
2018-09-21 18:53:37 +02:00
Michael Muré
b168d71fc1
cache: attempt to future-proof the cache file
2018-09-13 17:59:02 +02:00
Michael Muré
90a45b4c09
cache: rename RootCache into MultiRepoCache
...
Underline the fact that it's fine to use RepoCache alone
2018-09-02 15:45:14 +02:00