Commit Graph

281 Commits

Author SHA1 Message Date
Frédéric Péters 897cb4216a hobo agent: cast postgresql dsn parts as strings (#40630) 2020-03-10 18:06:37 +01:00
Benjamin Dauvergne 7731e183fd schemas: do not clober value variable (#40484) 2020-03-06 10:44:15 +01:00
Benjamin Dauvergne df69adaf1a misc: fix Django import warning 2020-03-06 10:08:56 +01:00
Benjamin Dauvergne 46c4903731 misc: formatting 2020-03-06 10:08:23 +01:00
Benjamin Dauvergne 89f6de1474 engine: ignore empty filters (#40482) 2020-03-06 10:07:10 +01:00
Benjamin Dauvergne 77447ed8dd tests: add non regression test (#40482) 2020-03-06 10:07:04 +01:00
Benjamin Dauvergne 3e380e43cf schemas: cast filter values with dimension type (#40484) 2020-03-06 09:57:52 +01:00
Benjamin Dauvergne 68e29c7298 tests: add non regression test (#40484) 2020-03-06 09:51:48 +01:00
Benjamin Dauvergne 1dbee3c4b3 misc: use quoting in pg_dsn (#40275) 2020-03-03 10:59:19 +01:00
Frédéric Péters f19b24d100 translation update 2020-02-27 10:18:27 +01:00
Benjamin Dauvergne d0c5e2c529 visualization: add a duplicate button (#13662) 2020-02-14 10:19:36 +01:00
Benjamin Dauvergne 29dc792b15 misc: delete dead import (#13662) 2020-02-13 14:28:25 +01:00
Thomas NOËL 334f6eadc9 debian: log tenants names on migrate_schemas 2020-02-12 15:25:59 +01:00
Frédéric Péters 9840c196e6 debian: add possibility to run scripts after data is imported (#37698) 2020-02-03 17:05:22 +01:00
Benjamin Dauvergne edb19179d3 visualization: do not match null warehouse_slug (#39482) 2020-02-03 14:11:25 +01:00
Benjamin Dauvergne 76ef3b2fde visualization: handle no dimension in json_data() (#39362) 2020-01-29 10:14:47 +01:00
Valentin Deniaud 0214ccd9e3 translation update 2020-01-28 15:23:05 +01:00
Valentin Deniaud 44b2aec236 misc: add visualization import/export (#30854) 2020-01-28 11:25:25 +01:00
Valentin Deniaud b371cff33e tests: move visualization creation to fixture (#30854) 2020-01-28 11:22:48 +01:00
Valentin Deniaud 621cfa9250 views: remove redirect from homepage to warehouse (#30854) 2020-01-28 11:22:48 +01:00
Benjamin Dauvergne 5d1524702a show cube warnings (#36578) 2020-01-27 17:59:22 +01:00
Benjamin Dauvergne 3b5dd98ad6 visualization: handle empty geolocation measure (#39180) 2020-01-27 17:56:22 +01:00
Benjamin Dauvergne 65f023086a utils: use schema mtime as cache key (#39153) 2020-01-21 22:57:59 +01:00
Frédéric Péters 0d8b5bd8ef misc: remove PNG export button (#38731)
It doesn't work anymore in Chrom* as top-frame navigation has been
removed.
2020-01-21 10:45:26 +01:00
Benjamin Dauvergne f0f976c470 visualization: adapt geojson view to change in data structures (#38965) 2020-01-21 10:44:04 +01:00
Benjamin Dauvergne 86a8568cd6 tests: really report SQL fixture errors (#38965)
Without the ON_ERROR_STOP flag `psql` does not report SQL errors thourgh
its exist status.
2020-01-21 10:43:13 +01:00
Benjamin Dauvergne d5aa874116 visualization: use formatting instead of unicode() (#38908) 2020-01-17 14:54:11 +01:00
Benjamin Dauvergne 7e858006b6 visualization: format axis members before JSON serialization (#38908) 2020-01-17 14:54:11 +01:00
Benjamin Dauvergne 0ddd5530ac tests: add test on javascript data rendering (#38908) 2020-01-17 14:54:02 +01:00
Benjamin Dauvergne 5473870dc2 visualisation: return 0.0 for None measures in json_data (#38913) 2020-01-15 23:42:20 +01:00
Benjamin Dauvergne 5b72a4be6d engine: force join to right when looking for members (#38913) 2020-01-15 23:42:20 +01:00
Benjamin Dauvergne f2b6ab958a tests: add test on json_data for None measures (#38913) 2020-01-15 23:42:20 +01:00
Valentin Deniaud f93d42834e scripts: populate warehouse_slug visualization parameter (#38596) 2020-01-15 15:30:23 +01:00
Valentin Deniaud ebb9cb3e39 visualization: add warehouse slug support (#38596) 2020-01-15 15:27:32 +01:00
Valentin Deniaud 9004d49fb7 schemas: remove duplicate key (#38596) 2020-01-15 15:27:32 +01:00
Valentin Deniaud d305de24fe hobo: give cubes a slug (#38596)
This also reverts commit 3e956befb4,
which was buggy since new is file scoped and cubes_slug config-section
scoped.
2020-01-15 15:27:32 +01:00
Benjamin Dauvergne 126ddfa812 engine: add missing parenthesis around ->> operator (#38932) 2020-01-14 10:52:57 +01:00
Benjamin Dauvergne 16b60621d4 engine: remove use of cross join (#38691)
It prevented reporting of NULL values.
2020-01-06 22:07:37 +01:00
Benjamin Dauvergne 8f204362a4 engine: simplifiy equivalent code (#38691)
The two branches built the same string.
2020-01-06 22:07:36 +01:00
Frédéric Péters dbe3ff07e3 translation update 2019-12-30 14:31:59 +01:00
Serghei Mihai 74a41d13ac utils: handle proxy objects in ods export (#38641) 2019-12-19 15:00:57 +01:00
Valentin Deniaud 6d790559a4 views: add pagination to visualizations list (#27410) 2019-12-17 10:18:03 +01:00
Benjamin Dauvergne 79a965f328 engine: add setting for postgresql init statements (#38462) 2019-12-12 15:41:53 +01:00
Valentin Deniaud 4f9c50badd visualization: use correct Visualization object (#38356) 2019-12-10 16:48:52 +01:00
Benjamin Dauvergne 980cb76aae settings: improve tests runtime by turning DEBUG off (#38067) 2019-12-04 19:30:58 +01:00
Benjamin Dauvergne 10b4405fd1 engine: propagate filters to dimension's members enumeration (#38067) 2019-12-04 19:30:42 +01:00
Benjamin Dauvergne 72e8d4c83e overhaul of query to table transformation (#38067)
* during query obtain dimension id and label if a different projection
is defined
* use object to materialize query results : Cells, DimensionCell,
MeasureCell
* handle stringification in the *Cell classes
* never ignore NULL dimension's values (it's detected in
Visualization.data() and added to the list of dimension members)
* sum of columns is only computed if there are more than one column
* sum of rows is only computed if there are more than one row
* full sum is only computed if there are more thant one column and more
than one row
* 1 dimension table are computed in the same maner as 2 dimensions
tables, no more discrepancies
* JSON web-service now use the same base methods table_2d() and table_1d()
as the native rendering in bijoe
* EngineDimension.members is specialized for bool dimensions (as it's
always True/False)
2019-12-03 21:04:01 +01:00
Benjamin Dauvergne 6402c7ea99 visualization/utils: remove dead import (#38067) 2019-12-03 16:53:25 +01:00
Benjamin Dauvergne e8e1d573c5 schemas: add an absent_label property to Dimension (#38067)
Also force lazy strings to unicode in to_json().
2019-12-03 16:53:25 +01:00
Benjamin Dauvergne 2422edd733 engine: use LEFT OUTER JOIN to join with inline json join table (#38067) 2019-12-03 16:53:25 +01:00