api: add support for include-anonymised=on/off in form/card lists (#86603) #1097
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/86603-include-anonymised"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
0bcf24389b
to6beb276135
@ -507,3 +507,3 @@
if not get_query_flag('include-anonymised', default=True):
if not get_query_flag('include-anonymised', default=False):
criterias.append(Null('anonymised'))
Dans un deuxième commit je modifie /api/forms pour avoir le même comportement de ne pas prendre les demandes anonymisées par défaut; il y a un appel à cette API dans combo, elle passe déjà explicitement ?include-anonymised=off.
@ -2707,2 +2707,4 @@
limit = misc.get_int_or_400(get_request().form['limit'])
if not get_query_flag('include-anonymised', default=False):
criterias.append(Null('anonymised'))
Ici la demande initiale, pour ne pas reprendre par défaut les demandes/fiches anonymisées.
Évidemment ça change le comportement actuel qui était de retourner ce qui était anonymisé, et ça a un impact côté wcs-olap (j'ai créé #86606).
WIP: api: add support for include-anonymised=on/off in form/card lists (#86603)to api: add support for include-anonymised=on/off in form/card lists (#86603)