Project

General

Profile

Bug #95402

dataviz, exception MissingVariable non rattrapée

Added by Sentry Io about 2 months ago. Updated 16 days ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
16 September 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/grenoble/issues/132398/

KeyError: 'corps_etat'
  File "combo/apps/dataviz/models.py", line 535, in evaluate_filter_value
    variable = self.page.extra_variables[value.replace('variable:', '')]

MissingVariable: 
(8 additional frame(s) were not displayed)
...
  File "combo/apps/dataviz/models.py", line 858, in update_subfilters
    response = self.get_statistic_data(filter_params=filter_params)
  File "combo/apps/dataviz/models.py", line 370, in get_statistic_data
    params=filter_params or self.get_filter_params(),
  File "combo/apps/dataviz/models.py", line 469, in get_filter_params
    params = {k: self.evaluate_filter_value(v) for k, v in self.filter_params.items() if v}
  File "combo/apps/dataviz/models.py", line 469, in <dictcomp>
    params = {k: self.evaluate_filter_value(v) for k, v in self.filter_params.items() if v}
  File "combo/apps/dataviz/models.py", line 537, in evaluate_filter_value
    raise MissingVariable

Associated revisions

Revision 2acdfc7a (diff)
Added by Valentin Deniaud 17 days ago

dataviz: handle missing page variable on form submit with subfilters (#95402)

History

#1

Updated by Valentin Deniaud about 2 months ago

  • Project changed from Suivi des traces to Combo
  • Assignee set to Valentin Deniaud
#2

Updated by Robot Gitea about 2 months ago

  • Status changed from Nouveau to Solution proposée

Valentin Deniaud (vdeniaud) a ouvert une pull request sur Gitea concernant cette demande :

#3

Updated by Robot Gitea 17 days ago

  • Status changed from Solution proposée to Solution validée

Benjamin Dauvergne (bdauvergne) a approuvé une pull request sur Gitea concernant cette demande :

#4

Updated by Robot Gitea 17 days ago

  • Status changed from Solution validée to Résolu (à déployer)

Valentin Deniaud (vdeniaud) a mergé une pull request sur Gitea concernant cette demande :

#5

Updated by Transition automatique 16 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF