ReleaseEngineering/Applications/Mapper: Difference between revisions

Line 7: Line 7:


Mapper is a rest api, that allows:
Mapper is a rest api, that allows:
a) insertion of new mappings and projects (a "project" is essentially the name of the repo - e.g. build-tools) (HTTP POST)
# insertion of new mappings and projects (a "project" is essentially the name of the repo - e.g. build-tools) (HTTP POST)
b) insertion of git/hg mappings for a given project (HTTP POST)
# insertion of git/hg mappings for a given project (HTTP POST)
c) retrieval of mappings for a given project (HTTP GET)
# retrieval of mappings for a given project (HTTP GET)


Behind the scenes, it is reading/writing from the database (using sqlalchemy).
Behind the scenes, it is reading/writing from the database (using sqlalchemy).
Line 15: Line 15:
Note: the vcs sync tool is a client of the mapper: it is vcs sync that inserts into mapper (i.e. uses the HTTP POST methods).
Note: the vcs sync tool is a client of the mapper: it is vcs sync that inserts into mapper (i.e. uses the HTTP POST methods).
The other clients of mapper will be:
The other clients of mapper will be:
a) people / developers - wanting to query mappings
# people / developers - wanting to query mappings
b) b2g_build.py - the build script for b2g - since this needs to lookup shas in order to reference frozen commit versions in manifests
# b2g_build.py - the build script for b2g - since this needs to lookup shas in order to reference frozen commit versions in manifests


Mapper is written as a RelEng API blueprint - please note RelEng API has its own documentation too.
Mapper is written as a RelEng API blueprint - please note RelEng API has its own documentation too.
Confirmed users
142

edits