Bug 53197 - Kelvin client: support school creation
Kelvin client: support school creation
Status: RESOLVED FIXED
Product: UCS@school
Classification: Unclassified
Component: kelvin-rest-api-client
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-29 17:30 CEST by Daniel Tröder
Modified: 2022-07-04 10:11 CEST (History)
0 users

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2021-04-29 17:30:30 CEST
Add support for creating schools with the Python Kelvin client.
-> Implement the ucsschool.kelvin.client.school.School.save() method.
Comment 1 Daniel Tröder univentionstaff 2021-05-04 19:21:47 CEST
* Updates:

[master] 9654497 Bug #53197: update libraries, linters, Makefile, change line length
[master] ed98036 Bug #53197: update pyjwt
[master] e500221 Bug #53197: handle YAML API update
[master] 39aec492 Bug #53197: fix Github actions


* School creation:

[master] 6835011 Bug #53197: add support for creation of schools (OUs)

$ (master %>) make lint
pre-commit run -a isort
isort...........................................Passed
pre-commit run -a black
black...........................................Passed
pre-commit run -a flake8
flake8..........................................Passed
pre-commit run -a bandit
bandit..........................................Passed
coverage run --source tests,ucsschool -m pytest
============================ test session starts ====================
...
======================== 74 passed in 723.75s (0:12:03) =============
coverage report --show-missing --fail-under=90
Name                                      Stmts   Miss  Cover   Missing
-----------------------------------------------------------------------
...
-----------------------------------------------------------------------
TOTAL                                      1653     70    96%


* Docs: https://kelvin-rest-api-client.readthedocs.io/en/latest/usage-school.html#create-school
* Github: https://github.com/univention/kelvin-rest-api-client/releases/tag/0.3.0
* Github actions are failing on the setup...
* PyPI: https://pypi.org/project/kelvin-rest-api-client/0.3.0/
* Code coverage 98%: https://app.codecov.io/gh/univention/kelvin-rest-api-client
Comment 2 Daniel Tröder univentionstaff 2021-05-04 19:24:46 CEST
(In reply to Daniel Tröder from comment #1)
> * Github actions are failing on the setup...
Travis CI as well.
I created a separate task for this: bug 53223.