Commit Graph

9 Commits

Author SHA1 Message Date
Stanislau Hlebik
bac5f5dcca mononoke apiserver: fix integration test
Summary:
We've recently added a flag in a config repo to enable or disable the repo.
Let's use it in apiserver as well.

P. S.
As I think about it now, it maybe worth filtering enabled/disabled flag in
RepoConfig

Reviewed By: lukaspiatkowski

Differential Revision: D8732450

fbshipit-source-id: 1cd59f5a91dec28efd1e2c122f2f1ea58ded6ac1
2018-07-04 08:53:34 -07:00
Rain ⁣
33d7591900 blobrepo: turn manifold connection arguments into a struct
Summary:
There are so many individual arguments here that it's honestly hard to keep
track.

It is unfortunate that a bunch of string copies have to be done, but not really
a big deal.

Reviewed By: jsgf

Differential Revision: D8675237

fbshipit-source-id: 6a333d01579532a0a88c3e26b2db86b46cf45955
2018-06-28 11:46:06 -07:00
Zeyi Fan
e924f7f105 Change file content retrieval API to /<changeset>/<path>
Summary: This commit changes the API from directly asking for NodeHash to changeset id and path of the file.

Reviewed By: StanislavGlebik

Differential Revision: D8628826

fbshipit-source-id: 1fa37cf36db0ca00530f3a60de78da1d1d232398
2018-06-27 17:52:35 -07:00
Zeyi Fan
5c838efe54 Reorganize code structures
Summary: This commit implements a `Responder` for `MononokeRepoResponse` so it can be used as the return type of an actix-web handler. So the only need to be done to write a handler that accepts a `MononokeRepoQuery` is to assembly the struct.

Reviewed By: StanislavGlebik

Differential Revision: D8630086

fbshipit-source-id: 782252072f5fbb692f3ce0387370c8aaa48f4396
2018-06-27 17:52:34 -07:00
Zeyi Fan
6ef23f3646 Add /status for Tupperware health check
Summary: This commit adds /status to return ok for Tupperware health check.

Reviewed By: kulshrax

Differential Revision: D8629282

fbshipit-source-id: 8f36bf73d4d9399721c68649e6b475362770889b
2018-06-27 16:47:50 -07:00
Zeyi Fan
528b2bf36f Read filecontent from blobstore
Summary: This commit implements the retrieving logic for the api server.

Reviewed By: StanislavGlebik

Differential Revision: D8507784

fbshipit-source-id: 109b7fad35c5fefca593d04ac63d57534f9bd12b
2018-06-27 13:05:55 -07:00
Stanislau Hlebik
531986e5da mononoke: rename *test_manifold to *_manifold
Summary: It's no longer test, we use it in prod

Reviewed By: farnz

Differential Revision: D8611639

fbshipit-source-id: dc52e0bcdc26c704c0d9cf820d7aa5deae3e06e4
2018-06-25 07:51:20 -07:00
Zeyi Fan
eba437040d let apiserver read mononoke config
Summary: This commit lets apiserver reads Mononoke's config repository and creates MononokeRepo based on it.

Reviewed By: kulshrax

Differential Revision: D8465574

fbshipit-source-id: 0af1ad5f62499f83261e21bac605725156fc22d0
2018-06-22 15:36:44 -07:00
Zeyi Fan
1c4af3bda8 Create initial binary for Mononoke API Server
Summary: This revision adds an initial binary target for Mononoke API Server as well as a few basic options and logging.

Reviewed By: kulshrax

Differential Revision: D8413745

fbshipit-source-id: 65523433284e970348efcafd724ae28102d85671
2018-06-18 10:09:43 -07:00