Commit Graph

13 Commits

Author SHA1 Message Date
Zeyi (Rice) Fan
474ef30435 Add MononokeThriftBackingStore
Summary: Implement a backing store that uses thrift protocol to communicate with Mononoke API Server.

Reviewed By: strager

Differential Revision: D13966575

fbshipit-source-id: 66f66dda6b17aecd6c6b4475ab6b004c608f457f
2019-05-21 12:24:52 -07:00
Zeyi Fan
4294a5ea61 add manifest field to get_changeset method
Summary: This diff added "manifest" field to Mononoke API Server's `get_changeset` method, which is required to implement Eden's `BackingStore::getTreeForCommit`

Reviewed By: StanislavGlebik

Differential Revision: D13966576

fbshipit-source-id: d2444b3aab477ab76efa7baddf114d90fa7a7a77
2019-02-25 12:40:28 -08:00
Zeyi Fan
276b18b5ea add thrift method get_tree
Summary: Add a thrift method `get_tree` to Mononoke API Server

Reviewed By: StanislavGlebik

Differential Revision: D13964085

fbshipit-source-id: c0d31e4e13079bec49d480c116ebb300c7e4260f
2019-02-25 12:40:28 -08:00
Zeyi Fan
d9d33a341f add thrift method get_blob
Summary: Add a thrift method `get_blob` to Mononoke API Server.

Reviewed By: StanislavGlebik

Differential Revision: D13960835

fbshipit-source-id: 98ac78dae38837339b5666d46feac23540fa4b02
2019-02-25 12:40:28 -08:00
David Budischek
d844c21777 Thrift endpoint for is_ancestor
Summary:
I decided against using the naming convention maybe_ancestor and maybe_descendant as I believe the name is_ancestor already implies this uncertainty.

Skiplist is used instead of bfs, this improves performance significantly when using very old commits. For now we do not update skiplist as more recent commits are in cache anyway.

Reviewed By: StanislavGlebik

Differential Revision: D13917333

fbshipit-source-id: 21b49d920ff473c953a952ee3c6d7b55565f98ac
2019-02-08 03:31:09 -08:00
David Budischek
e6e4c87a58 resolve bookmarks
Summary: Apiserver now resolves bookmarks to the correct hash.

Reviewed By: StanislavGlebik

Differential Revision: D13860603

fbshipit-source-id: 5f7eef407db01bdd3e89211f647704faec473991
2019-01-31 05:03:44 -08:00
David Budischek
6f68946a61 Implement UnionType for Revision in Thrift parameters
Summary: This is to take the guesswork out of revisions. MononokeRevision now states explicitely whether the value is a hash or bookmark. To roll this out I will prepare an updated scmquery-proxy version, test everything on shadow. Then use the sitevar to disable mononoke usage for a short time while both apisever and scmquery-proxy are rolled out simultaneously

Reviewed By: StanislavGlebik

Differential Revision: D13817040

fbshipit-source-id: d5eee7cf9ac972fb1313a10a17bf60c4545054af
2019-01-29 03:42:28 -08:00
David Budischek
ecc1d57b46 Add thrift implementation for list_directory
Summary: Corresponds to ls_v2 on scmquery

Reviewed By: StanislavGlebik

Differential Revision: D13817075

fbshipit-source-id: 56857076c85d7592d34a20a5fa303b33be2b4a20
2019-01-29 03:42:28 -08:00
David Budischek
2c40be3222 Add thrift endpoint for get_branches
Reviewed By: StanislavGlebik

Differential Revision: D13765974

fbshipit-source-id: 8c554ca85cde4838673fa6900a6b5643ee9a4973
2019-01-29 03:42:28 -08:00
David Budischek
bb4284e428 Add thrift support for get_commit_v2
Summary: Create the corresponding endpoint for thrift calls to get_commit_v2. For now this only supports the non optional fields.

Reviewed By: StanislavGlebik

Differential Revision: D13730602

fbshipit-source-id: fd9d845620c864bf7dade13d810e98270425ea00
2019-01-22 03:32:48 -08:00
David Budischek
9044d4d4d8 Fix apiserver thrift TARGETS file and add python exports
Summary:
We need to add python exports to our TARGETS file to enable scmquery
to create a ServiceRouter Client for mononoke-api

Reviewed By: StanislavGlebik

Differential Revision: D13651275

fbshipit-source-id: ba5a4eb3665dae1ea127f4ceb96c1ce62e1e4563
2019-01-14 08:31:35 -08:00
Zeyi Fan
dcf0665484 add cat_file in thrift
Summary: Add `get_raw` in thrift part.

Reviewed By: StanislavGlebik

Differential Revision: D9094301

fbshipit-source-id: 23bbfa6fb653e07ca687ff8e21da8ae5fca3333e
2018-08-19 16:07:12 -07:00
Zeyi Fan
0fcfbda8b1 add fb303 thrift server
Summary: This commit adds a basic thrift server that responds to fb303 status check queries to Mononoke API Server.

Reviewed By: farnz

Differential Revision: D9092291

fbshipit-source-id: d1e4ddb280c252f549d40a0bb03d05afccbf73b8
2018-08-19 16:07:12 -07:00