Bug 49519 - UMC call to list all exams
UMC call to list all exams
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.4
Other Windows NT
: P5 normal (vote)
: UCS@school 4.4 v2-errata
Assigned To: Daniel Tröder
Ole Schwiegert
:
Depends on:
Blocks: 47647 49527
  Show dependency treegraph
 
Reported: 2019-05-21 14:20 CEST by Daniel Tröder
Modified: 2019-05-29 14:04 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 2019-05-21 14:20:23 CEST
Create a UMC call to list all exams.
Comment 1 Daniel Tröder univentionstaff 2019-05-21 17:12:47 CEST
A UMC call was created that returns a list of all exams:

# umc-client -U Administrator -P univention COMMAND schoolexam/query
21.05.19 17:06:56.522  DEBUG_INIT
Response: COMMAND
  data length   :  391
  message length:  317
  ---
  ARGUMENTS: schoolexam/query
MIMETYPE   : application/json
  STATUS   : 200
  MESSAGE  : None
  RESULT   : [{u'files': 1, u'sender': u'Administrator', u'name': u'foo', u'recipients': [u'exam-demo_student'], u'isDistributed': True, u'starttime': u'16:41', u'room': u'DEMOSCHOOL-raum2'}]


[4.4] 1a727a8f6 Bug #49519: add 'query' UMC call to get all exams
[4.4] ec03d9d6a Bug #49519: use super(), Python 3 compatibility
[4.4] 39592a745 Bug #49519: advisory
[4.4] 2468928b7 Bug #49519: fix typo
[4.4] 215248585 Bug #49519: advisory update

ucs-school-umc-distribution (17.0.1-4)
ucs-school-umc-exam (9.0.1-2)
Comment 2 Ole Schwiegert univentionstaff 2019-05-22 07:43:07 CEST
Please allow the use of the options pattern and filter as in distribution/query so this UMC command is also prepared for the exam overview grid.

pattern => matches name
filter => all or private
Comment 3 Daniel Tröder univentionstaff 2019-05-22 10:10:08 CEST
[4.4 45bfcd39a] Bug #49519: support filtering and return startdate with day

ucs-school-umc-exam (9.0.1-3)
Comment 4 Ole Schwiegert univentionstaff 2019-05-22 10:59:33 CEST
Changelog and Advisory: OK
Package installs: OK

Pattern and filter work, UMC call works in general. All discussed information are present.

Code changes for python3 seem to be fine and without side effects.
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2019-05-29 14:04:50 CEST
UCS@school 4.4 v2 has been released.

https://docs.software-univention.de/changelog-ucsschool-4.4v2-de.html

If this error occurs again, please clone this bug.