Project

General

Profile

Development #38965

crash sur vue geojson

Added by Frédéric Péters 7 days ago. Updated about 8 hours ago.

Status:
Résolu (à déployer)
Priority:
Normal
Target version:
-
Start date:
14 Jan 2020
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

File "/usr/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch
  463.             response = handler(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/bijoe/visualization/views.py" in get
  269.                 properties[cell.label] = unicode(cell)

Exception Type: AttributeError at /visualization/115/geojson/
Exception Value: 'list' object has no attribute 'label'

0001-tests-really-report-SQL-fixture-errors-29914.patch View (1022 Bytes) Benjamin Dauvergne, 20 Jan 2020 12:31 PM

0002-visualization-adapt-geojson-view-to-change-in-data-s.patch View (8.36 KB) Benjamin Dauvergne, 20 Jan 2020 12:31 PM

Associated revisions

Revision 86a8568c (diff)
Added by Benjamin Dauvergne about 8 hours ago

tests: really report SQL fixture errors (#38965)

Without the ON_ERROR_STOP flag `psql` does not report SQL errors thourgh
its exist status.

Revision f0f976c4 (diff)
Added by Benjamin Dauvergne about 8 hours ago

visualization: adapt geojson view to change in data structures (#38965)

History

#2 Updated by Serghei Mihai 6 days ago

Visiblement c'est dans 72e8d4c83e534a5c2d2c02aa9d4b0010c95e4097 que ça a été pété.

Je suis pour ajouter une méthode genre get_geojson à bijoe.utils.Visulization qui sera appelée par la vue.

#3 Updated by Benjamin Dauvergne 1 day ago

  • Assignee set to Benjamin Dauvergne

#4 Updated by Benjamin Dauvergne 1 day ago

#5 Updated by Serghei Mihai about 9 hours ago

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

Go.
Je suis d'avis d'envoyer en recette asap pour que ça passe à la mise à jour des prods de jeudi.

#6 Updated by Benjamin Dauvergne about 8 hours ago

  • Status changed from Solution validée to Résolu (à déployer)
commit f0f976c470420d26fc7e7e4724f61be84887d48e
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Mon Jan 20 12:30:37 2020 +0100

    visualization: adapt geojson view to change in data structures (#38965)

commit 86a8568cd626c01b7c78d6825eb302dc853f9c9b
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Fri Jan 17 15:40:19 2020 +0100

    tests: really report SQL fixture errors (#38965)

    Without the ON_ERROR_STOP flag `psql` does not report SQL errors thourgh
    its exist status.

Also available in: Atom PDF