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

can't create a new document from the admin panel #58

Open
joonasp opened this issue Dec 1, 2014 · 26 comments
Open

can't create a new document from the admin panel #58

joonasp opened this issue Dec 1, 2014 · 26 comments
Labels

Comments

@joonasp
Copy link
Member

joonasp commented Dec 1, 2014

Creating a new document at http://finnish-democracyos.herokuapp.com/admin/laws/create does not work. It says "Laki luotu" (law created), but there the new document does not appear on the list (http://finnish-democracyos.herokuapp.com/admin/laws).

@joonasp joonasp added the bug label Dec 1, 2014
@jaakkokorhonen
Copy link

I could not create a new document either. @gvilarino we have a dress rehearsal of the pilot TODAY. If the rehearsal fails, the pilot will be on very thin ice. Please supply instructions, a workaround, or a solution IMMEDIATELY.

@gvilarino
Copy link
Contributor

@jaakkokorhonen , @joonasp did you publish the laws you created? I'm not seeing them in the admin list at all.

This is working for me; I just created a new law, published it and it was showing on the list, as can be seen here:

screen shot 2014-12-01 at 1 19 30 pm

(it's no longer there; I deleted it since it was just a test)

@jaakkokorhonen
Copy link

I have buttons for "add condition"-lisää tila, "add link"-lisää linkki and "save"-tallenna.

@jaakkokorhonen
Copy link

After i save, it says "laki tallennettu"-law saved, but the created article is not to be seen.

@gvilarino
Copy link
Contributor

@jaakkokorhonen yes, after that you gotta publish the law. The publish option is on the page top, you gotta scroll all the way up (yea, UX for the admin isn't the greatest, sorry)

You should see something like this:

screen shot 2014-12-01 at 3 12 44 pm

Once you click there, you should see this:

screen shot 2014-12-01 at 3 12 52 pm

If, for some reason, this option doesn't show just go back to the law list and re-enter the newly created law; you should see it there now.

@gvilarino
Copy link
Contributor

@jaakkokorhonen @joonasp I'm leaving that Test law created and unpublished so you guys can use for the pilot and publish it without further issues.

@jaakkokorhonen
Copy link

I cannot see my saved law in the list.

@gvilarino
Copy link
Contributor

@jaakkokorhonen did you get a confirmation message of the law being saved properly (on the top of the form)?

@jaakkokorhonen
Copy link

Yes. Same as @joonasp.

@gvilarino
Copy link
Contributor

That's very weird. I'm doing that same thing and it works.

I just found something that may be a possible cause: if you're trying to create with the same Official ID (first field on the form) that was used on a now deleted law, the creation fails silently. Just try something else there.

@jaakkokorhonen
Copy link

I added nonsense to the "Virallinen ID" and the article appeared in the list.

@jaakkokorhonen
Copy link

Please document or fix this.

@gvilarino
Copy link
Contributor

Ok, documented and bug reported; for the pilot's sake I'd say move forward keeping in mind not to re-use official IDs.

@joonasp
Copy link
Member Author

joonasp commented Dec 1, 2014

I did not know that the "official document id" was a required field. Now
that I added some nonsense in the field it works. For the pilot (that has
nothing to do with official documents or their id's) we will just insert a
date or something as an id as a work around. j

On 1 December 2014 at 21:44, Guido Vilariño [email protected]
wrote:

Ok, documented
https://github.com/DemocracyOS/app/wiki/Admin-module#known-issues and bug
reported DemocracyOS/democracyos#472; for the pilot's
sake I'd say move forward keeping in mind not to re-use official IDs.


Reply to this email directly or view it on GitHub
#58 (comment).


My PGP public key for secure email:
http://pgp.mit.edu/pks/lookup?op=get&search=0xE269A5FFE9EDE926

@jaakkokorhonen
Copy link

Might not hurt to handle it as a mandatory field if it is.

@gvilarino
Copy link
Contributor

True that.

Can we close this since a workaround has been found?

@jaakkokorhonen
Copy link

Well maybe change it to be a mandatory field until a final fix?

@gvilarino
Copy link
Contributor

I'm afraid that won't fix the silent failing: it needs to be a value different from any previously entered value, because of how mongoose handles DB indexing.

Actually, an empty value does work, but only once

@jayapapaya
Copy link
Contributor

@gvilarino I am having the same problem here http://democracyos-dcent.herokuapp.com/ - can't see the law. It turns up in the admin list, but not on the actual page/ sidebar.

I have been assigning unique numbers for each, but they are still not turning up.

@gvilarino
Copy link
Contributor

@jayapapaya have you published the law? Go again into it and click the publish button on top.

@jayapapaya
Copy link
Contributor

Ok, seems to be working now

@jayapapaya
Copy link
Contributor

@gvilarino now all of the laws seem to have disappeared again

@gvilarino
Copy link
Contributor

@jaakkokorhonen what about your filter settings?

@jayapapaya
Copy link
Contributor

@gvilarino tried changing them several times, doesn't seem to make a difference. (Tried changing both the tags and the activities stream filters )

@jayapapaya
Copy link
Contributor

@gvilarino now some of them appear when I refresh the page, but it doesn't seem to make sense (for example, when I put newest first, they all disappear)

@jayapapaya
Copy link
Contributor

@gvilarino how are we solving this? filters don't seem to be working properly and the laws keep disappearing: http://democracyos-dcent.herokuapp.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants