Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation data export not working via UI #39

Open
1 of 4 tasks
urakagi opened this issue Oct 29, 2018 · 17 comments
Open
1 of 4 tasks

Conversation data export not working via UI #39

urakagi opened this issue Oct 29, 2018 · 17 comments

Comments

@urakagi
Copy link
Collaborator

urakagi commented Oct 29, 2018

Hi, I give up to make polisReport working and want to export data from my local polis instance.
But it's a pity that the export function is not working either. It shows no any error but I just don't have the mail.
Is there any hint or SMTP setup I need to do? Thanks.

To Do

todos added by maintainers

  • temporarily remove data export from client-admin UI
  • add mention to export page of knowledgebase
  • document manual data export via command line (server administrator)
  • fix data export UI
@urakagi
Copy link
Collaborator Author

urakagi commented Oct 30, 2018

I'm now generating csv file from database directly. Can I please have a hint that how I get group-id for participants-votes.csv? Thank you very much.

@metasoarous
Copy link
Member

Hi @urakagi. We're aware that there's a issue with the export functionality right now, and I'm working on that. Sorry for the hassle.

I just pushed some changes to master that make it possible to export from the command line like so lein run export -f thefilename.zip -Z 2convurlid. You'll have to have all the same environment variables; Also note that this only exports from the prod math results buckets, so make sure you've been running the math worker and server with MATH_ENV=prod. If you need to export from the preprod or dev (or whatever other math env buckets), let me know and I'll add a flag for this.

@urakagi
Copy link
Collaborator Author

urakagi commented Oct 31, 2018

Thank you @metasoarous, I tried to run this and get this error:

18-10-31 01:35:49 chttl-b6a0edd74707c886.local.com INFO [polismath.runner:158] - Runner main function executed
18-10-31 01:35:49 chttl-b6a0edd74707c886.local.com INFO [polismath.runner:174] - Running subcommand: export
Exception in thread "main" java.lang.NullPointerException, compiling:(/tmp/form-init7699330447764564917.clj:1:73)
        at clojure.lang.Compiler.load(Compiler.java:7526)
        at clojure.lang.Compiler.loadFile(Compiler.java:7452)
        at clojure.main$load_script.invokeStatic(main.clj:278)
        at clojure.main$init_opt.invokeStatic(main.clj:280)
        at clojure.main$init_opt.invoke(main.clj:280)
        at clojure.main$initialize.invokeStatic(main.clj:311)
        at clojure.main$null_opt.invokeStatic(main.clj:345)
        at clojure.main$null_opt.invoke(main.clj:342)
        at clojure.main$main.invokeStatic(main.clj:424)
        at clojure.main$main.doInvoke(main.clj:387)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:702)
        at clojure.main.main(main.java:37)
Caused by: java.lang.NullPointerException
        at polismath.system$create_and_run_system_BANG_.invokeStatic(system.clj:63)
        at polismath.system$create_and_run_system_BANG_.invoke(system.clj:61)
        at polismath.runner$_main.invokeStatic(runner.clj:175)
        at polismath.runner$_main.doInvoke(runner.clj:156)
        at clojure.lang.RestFn.invoke(RestFn.java:482)
        at clojure.lang.Var.invoke(Var.java:403)
        at user$eval61568.invokeStatic(form-init7699330447764564917.clj:1)
        at user$eval61568.invoke(form-init7699330447764564917.clj:1)
        at clojure.lang.Compiler.eval(Compiler.java:7062)
        at clojure.lang.Compiler.eval(Compiler.java:7052)
        at clojure.lang.Compiler.load(Compiler.java:7514)
        ... 12 more

Then lein stops. I copied run script with the enviroment variables. MATH_ENV=prod. The main polisMath instance is running. What can be wrong?

@urakagi
Copy link
Collaborator Author

urakagi commented Oct 31, 2018

Also, what is the repo you pushed? I don't see any new commit on polisServer or polisMath.
I have completed to rewrite an exporting function other than group_id, so I'll be happy to have an explanation about how to get it.

@metasoarous
Copy link
Member

My bad, I pushed to the wrong repo earlier. It's up there now if you pull down master again.

@urakagi
Copy link
Collaborator Author

urakagi commented Oct 31, 2018

@metasoarous It worked, thank you very much.
Also I have sent a PR pol-is/polisMath#3, to write down this command as script file and clearify what environment variables need to be set.

@urakagi urakagi closed this as completed Oct 31, 2018
@metasoarous
Copy link
Member

I'm going to reopen this issue, as the underlying issue with polisServer isn't resolved yet.

@metasoarous metasoarous reopened this Oct 31, 2018
patcon pushed a commit to pol-is-trial-balloon/polis that referenced this issue Apr 9, 2020
@patcon
Copy link
Contributor

patcon commented May 6, 2020

Is data export issue still unresolved @metasoarous?

@patcon
Copy link
Contributor

patcon commented May 6, 2020

Colin confirmed in https://github.com/pol-is/polis-issues/issues/137#issuecomment-624907223 that it's not working at the moment.

Any pointers on where the issue might be?

@patcon
Copy link
Contributor

patcon commented Aug 15, 2020

Came up in chat when a newcomer was confused by mention of export in knowledgebase.

Gitter chat:

@arjentum
Also, I'm not sure if I'm missing something really obvious, but how does one export the data from a Pol.is report? I think I've looked through all of the conversation admin pages already...

@patcon
No no you're not crazy! @colinmegill rewrote client-admin lately, and we removed the export interface until someone has time to fix a bug that was preventing users from exporting: #39 (comment)

@patcon
Also, we should probably add a prominent mention of this issue to the knowledge base.

We should add a mention of this in knowledgebase export page

@patcon patcon changed the title Export CSV not working in local server Conversation data export not working via UI Aug 15, 2020
@patcon
Copy link
Contributor

patcon commented Sep 18, 2020

More gitter chat

we're happy to provide you with exports for this project till we get that system fixed up, which we're aiming to do within the next few months.

@patcon
Copy link
Contributor

patcon commented Sep 18, 2020

https://gitter.im/pol-is/polisDeployment?at=5f651c0ef969413294f45771

Yes; To confirm what @joshsmith2 said, it is possible for us to get xids out in the exports, it's just not allowed in the UI currently.

To be clear, we don't automatically include xid in the exports, since they can be potentially sensitive (emails, etc).

I think we'll probably at least have an option for doing this though, and using personal information like emails directly for xid is probably a bad pattern anyway when it can be avoided.

@colinmegill
Copy link
Member

Maybe we should break the data export up. Only some of the files are too big to send over the wire. We could have the summary, and comments, be more visible / explorable in browser as raw data and copy-able as CSV. The raw matrix could be too, up to a certain size...

Bowling Green, 2000 people and 1000 comments, is 2 mb

image

image

@colinmegill
Copy link
Member

raw.pol.is/convoID_votes.csv?

@colinmegill
Copy link
Member

Or pol.is/raw/convoID/votes.csv?

@patcon
Copy link
Contributor

patcon commented Dec 12, 2020

+1 from @hamnox in Gitter chat 🎉 thx!

@patcon
Copy link
Contributor

patcon commented May 15, 2021

For future travellers looking for information on data export, I've created an explanation here in a community-maintained FAQ: https://hackmd.io/@patcon/conversa-calls/https%3A%2F%2Fhackmd.io%2F%40patcon%2FB1rwrXiu_#How-do-I-export-my-data ❤️

raulsperoni pushed a commit to proyectourgente/polis that referenced this issue Sep 1, 2021
@metasoarous metasoarous added this to Priority in Polis Development Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

4 participants