Bug #74972
api: list avec ordering by rank (KeyError: 'c140670343776816')
Début:
01 mars 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/107452/
KeyError: 'c140670343776816' (9 additional frame(s) were not displayed) ... File "wcs/backoffice/management.py", line 2479, in json items = FormDefUI(self.formdef).get_listing_items( File "wcs/forms/backoffice.py", line 231, in get_listing_items item_ids = self.get_listing_item_ids( File "wcs/forms/backoffice.py", line 208, in get_listing_item_ids return list(formdata_class.get_sorted_ids(order_by, criterias)) File "wcs/sql.py", line 722, in f return func(*args, **kwargs) File "wcs/sql.py", line 2491, in get_sorted_ids cur.execute(sql_statement, parameters)
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ un an
- Projet changé de Suivi des traces à w.c.s.
if order_by == 'rank': try: fts = [x for x in clause if not callable(x) and x.__class__.__name__ == 'FtsMatch'][0] except IndexError: pass else: sql_statement += ' ORDER BY ts_rank(fts, plainto_tsquery(%%(c%s)s)) DESC' % id(fts.value)
C'est ce id(fts.value) qui n'est pas trouvé dans les params de la requête.
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Nouveau à Solution proposée
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/202
- Titre : sql: get new fts search value when ordering (#74972)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/202/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution validée à En cours
Frédéric Péters (fpeters) a commencé à travailler sur une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/202
- Titre : WIP: sql: get new fts search value when ordering (#74972)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/202/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/202
- Titre : sql: get new fts search value when ordering (#74972)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/202/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
sql: get new fts search value when ordering (#74972)