Bug 52944 - allow creation of schools (OUs) through Kelvin REST API
Summary: allow creation of schools (OUs) through Kelvin REST API
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
Version: UCS@school 4.4
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Daniel Tröder
QA Contact: Ole Schwiegert
URL:
Keywords:
Depends on:
Blocks: 53007 53006
  Show dependency treegraph
 
Reported: 2021-03-17 17:55 CET by Daniel Tröder
Modified: 2021-06-30 16:13 CEST (History)
1 user (show)

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):
Customer ID:
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-03-17 17:55:42 CET
Kelvins school resource currently allows only to list/retrieve school objects.
Add the methods to create, modify and delete school objects.
Comment 1 Daniel Tröder univentionstaff 2021-03-23 13:07:23 CET
It is now possible to run create_ou() to create a school.

[feature/kelvin] 04e91ce22 Bug #52945: use full path to model imports
[feature/kelvin] 135ccb63e Bug #52944: enable creation of school OUs with the ucsschool.lib

-------------------------------------------------------------------------------
from ucsschool.lib.create_ou import create_ou

async with UDM(**udm_kwargs()) as udm:
    await create_ou(ou, f"displ {ou}", f"edu{ou}", f"adm{ou}", f"edu{ou}", udm, ucr["ldap/base"], ucr["ldap/master"], f"edu{ou}", False)
Comment 2 Daniel Tröder univentionstaff 2021-03-24 08:47:05 CET
The school resource now has a "create" (POST) operation, which calls ucsschool.lib.create_ou.create_ou()

[feature/kelvin] c2e3ce154 Bug #52944: add create operation to school resource
Comment 3 Ole Schwiegert univentionstaff 2021-03-24 08:49:48 CET
Code Review: OK
QA: OK

I VERIFY this Bug since the pure Ressource was added correctly and works. There is still some differences between create_ou via Kelvin and create_ou via UCS@school on host, but this will be resolved in Bug #52853.
Comment 4 Daniel Tröder univentionstaff 2021-06-30 16:13:59 CEST
The Kelvin API app with the change has been released.