dataviz: allow control of total display in tables (#85654) #233
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/85654-dataviz-permettre-de-n-afficher"
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?
Sur mon chemin vers ce patch j'ai trouvé notamment que le tableau exporté en ODS était inversé par rapport au rendu html, donc j'inclus un commit pour corriger ça.
Aussi on gagne d'avoir les totaux dans cet export ODS (avant ils n'y étaient pas car ajoutés au moment du rendu pygal).
5d27255c2c
to47c33694b3
47c33694b3
todc25a254c8
dc25a254c8
to12a5d5c091
12a5d5c091
to53f204886f
@ -217,6 +218,7 @@ class ChartNgForm(ChartFiltersMixin, forms.ModelForm):
'time_range_end',
'time_range_start_template',
'time_range_end_template',
'display_total',
Le nouveau champ n'apparaît pas pour bijoe
@ -14,2 +14,4 @@
content: "\f019"; /* download */
}
.dataviz-table.total-line tr:last-child,
pygal ajoutait le total dans une balise
<tfood>
et ça se retrouvait pris dans un style posé par gadjo, donc ce bout pour conserver le rendu@ -1683,0 +1686,4 @@
@with_httmock(new_api_mock)
@pytest.mark.freeze_time('2023-09-28')
def test_chartng_cell_view_new_api_export_ods_total(app, normal_user, new_api_statistics):
Détour par l'export ODS pour tester tout ça, nettement plus clair que les tests qui font
'<td>222</td>' in resp.text
actuelsWIP: dataviz: allow control of total display in tables (#85654)to dataviz: allow control of total display in tables (#85654)J'aurais mis "totals" plutôt que "total" mais go, au pire dans la trad on peut écrire totaux.
53f204886f
to6be1d6c5fc
J'ai un biais contre le mot « totaux » que j'ai toujours trouvé chelou, j'avais réfléchi à une formulation des options où on pouvait écrire total au singulier dans le libellé du champ, mais en vrai je n'y attacherai aucune importance :)
Ok je te laisserai la trad tu pourras mettre "total" dedans.