not yet on protocol
Make exports configurable
Not sure if that's feasible. Clients asked us to be able to config the fields included in the export directly form the admin.
Some were frustrated to ask to code an extended serializer everytime a field was missing from the export.
7 comments
-
Is this something being explored already @product ?
0 votes up 0 votes down-
huho seems like the @product doesn't work. Pinging @carol instead
0 votes up 0 votes down
-
-
Hi Virgila, sorry for the delay. It seems that the notifications stopped working last Wednesday :(
Regarding this proposal, the most viable solution is to export all the fields in the database. Once downloaded, you can filter those that are not needed.
0 votes up 0 votes down-
that's true @carol, it's happening to us in all decidim tenant. it might be related to the delayed job. we are looking at it too
0 votes up 0 votes down
-
-
In favour
This would be a welcomed idea. We recently implemented budgeting projects export (https://github.com/decidim/decidim/pull/7021) but the problem has been raised that some admins would like the pending votes to be included in the export. The original thinking was that they would not be relevant but for some municipalities they can be relevant considering how well the voting process has worked.
Adding ability to control what fields are included in the exported data would solve this problem. We could add the pending votes to the ProjectSerializer and then control from the export configuration what fields get included in the exported document. Currently, as stated in this proposal, this is rather cumbersome.
@virgile_deville I am thinking a bit simpler solution to this: how important do you think it would be to allow administrators to control this from the user interface? My thinking is that this would be probably quite much easier to implement if it was a programmatically available configuration option.
I would propose adding a new method for the serializers which could be used to control what gets included in the export documents. Should this be a whitelist or blacklist, I'm not sure and I'll leave that for further discussion.
1 votes up 0 votes down-
It is now possible to programmatically control which fields get exported (and add extra fields) after this PR was merged:
https://github.com/decidim/decidim/pull/7484There is still a little bit of programming needed to modify the export fields but it is at least possible.
0 votes up 0 votes down-
This is great news Antti ! Thanks for letting us know.
> how important do you think it would be to allow administrators to control this from the user interface?
We are in the process of a making this for the initiatives export. I'll share this PR with @Armand-OSP1 votes up 0 votes down
-
-
Sign in with your Atmosphere account to comment.