zooniverse / vox

Voting app
Apache License 2.0
0 stars 1 forks source link

Create "issues" Firebase node dynamically #10

Open simoneduca opened 8 years ago

simoneduca commented 8 years ago

https://github.com/zooniverse/vox/blob/vote-actions/src/containers/Issue.jsx#L18

rogerhutchings commented 8 years ago

what does this mean?

simoneduca commented 8 years ago

Instead of creating the issues using the UI in the FB console, like I did when I set this up, create them if they don't exist on fetching the issues.

rogerhutchings commented 8 years ago

I thought we went through this, you don't need to do anything until someone casts a vote...

simoneduca commented 8 years ago

Sorry yes, I meant creating the issue node on casting the vote.

rogerhutchings commented 8 years ago

I still don't think you need to do anything special - if you set a property in firebase at that location, it'll create all the nodes required

simoneduca commented 8 years ago

Issues are on the db now because I've added them manually, I don't add the issue in the code. It seems a problem to if, for instance, another issue is added to the repo: the ui will display but the vote will fail because the node doesn't exist.