api: add role uuid in export_object_ref (#82762) #784

Merged
lguerin merged 1 commits from wip/82762-application-role-uuid into main 2023-10-27 09:28:40 +02:00
Owner
No description provided.
fpeters requested changes 2023-10-24 15:23:59 +02:00
@ -182,2 +182,4 @@
if hasattr(obj, 'category_id'):
data['category'] = obj.category.name if (obj.category_id and obj.category) else None
if objects == 'roles' and hasattr(obj, 'uuid'):
data['uuid'] = obj.uuid
Owner

On va nécessairement avoir hasattr(obj, 'uuid') pour les rôles, on peut faire sans, et on pourrait ajouter un commentaire type

# include uuid in object reference, this is not used for applification API but is useful
# for authentic creating its role summary page.
On va nécessairement avoir hasattr(obj, 'uuid') pour les rôles, on peut faire sans, et on pourrait ajouter un commentaire type ``` # include uuid in object reference, this is not used for applification API but is useful # for authentic creating its role summary page. ```
lguerin force-pushed wip/82762-application-role-uuid from a844c023c5 to d6593aba5e 2023-10-24 15:30:34 +02:00 Compare
lguerin requested review from fpeters 2023-10-24 15:30:44 +02:00
fpeters approved these changes 2023-10-24 16:00:46 +02:00
lguerin merged commit 14fd9bd276 into main 2023-10-27 09:28:40 +02:00
lguerin deleted branch wip/82762-application-role-uuid 2023-10-27 09:28:40 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: entrouvert/wcs#784
No description provided.