~bowenfan/turnip:SN2052-add_ref_creation_endpoint_to_turnip_api

Last commit made on 2023-10-19
Get this branch:
git clone -b SN2052-add_ref_creation_endpoint_to_turnip_api https://git.launchpad.net/~bowenfan/turnip
Only Bowen Fan can upload to this branch. If you are Bowen Fan please log in for upload directions.

Branch merges

Branch information

Name:
SN2052-add_ref_creation_endpoint_to_turnip_api
Repository:
lp:~bowenfan/turnip

Recent commits

ca78292... by Bowen Fan

Add ref creation POST endpoint to turnip-api

A bulk endpoint is added at `/repo/{name}/refs`. The request payload should contain
a JSON array of dicts, e.g. [{"ref":"refs/tags/1234", "commit_sha1":<hash>}, ...].
The logic layer will use pygit2's `repo.create_reference` method to write the
requested ref names against the corresponding commits specified.

The response body indicates the refs that were successfully created and refs that
encountered errors. In case of logic layer failures (e.g. the commit cannot be found
in the repo), partial success is possible. In case of API layer failures (e.g. the
request body does not conform to what the API expects), the entire request will not
be processed and an API error will be returned.

Also includes corresponding unit tests for the new functions.

4a84af8... by Colin Watson

pre-commit autoupdate

Merged from https://code.launchpad.net/~cjwatson/turnip/+git/turnip/+merge/452349

a6052e9... by Colin Watson

pre-commit autoupdate

82973ed... by Colin Watson

Apply pyupgrade

Merged from https://code.launchpad.net/~cjwatson/turnip/+git/turnip/+merge/449471

834784f... by Guruprasad

Update the development environment setup docs to remove bionic

Merged from https://code.launchpad.net/~lgp171188/turnip/+git/turnip/+merge/449449

2033ee1... by Guruprasad

Update the development environment setup docs to remove bionic

fcd0646... by Colin Watson

Add .git-blame-ignore-revs entry

ca80e01... by Colin Watson

Apply pyupgrade

This drops compatibility with Python 3.6.

4c43131... by Colin Watson

charm: Remove the old build system

Merged from https://code.launchpad.net/~cjwatson/turnip/+git/turnip/+merge/449458

0499145... by Colin Watson

charm: Remove the old build system

We use `charmcraft` and Launchpad charm recipes now, so we can get rid
of lots of cruft.