-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Require user to select category before uploading #2290
Conversation
2. Require user to choose category before uploading (upload.js) 3. Pass chosen category via cookie (cookie.js, upload.js) 4. Parse category_id from cookie in POST section of views.layer_upload
2. Require user to choose category before uploading (upload.js) 3. Pass chosen category via cookie (cookie.js, upload.js) 4. Parse category_id from cookie in POST section of views.layer_upload
You need to be consistent and follow convention wrt to white space; for example:
should be:
i.e. spaces around assignment to variable (= on the left) and no space when assigning to method parameters (= inside the brackets). |
@gamesbook Thanks! Fixing 2 spaces eliminated 20+ errors. Good to see and know how that can go. |
Require user to select category before uploading
@ccosse, In the future could you squash your whitespace fix commits and then do a git force push to update to the PR branch. It's a little complicated but easy once you get the hang of it. Travis will automatically restart on a force push. |
Okay I'll figure it out. Thanks. On Thu, Oct 1, 2015 at 2:46 PM, Patrick Dufour notifications@github.com
|
Thanks! Happy to assist if you have any future questions. |
I know this passed unit tests, but has anyone tested this out. I used the latest git pull and attempted to upload a tiff, selected a category and received no response.... can someone verify this also? |
I gave it a brief test, but did not test with a raster. Ill do some more On Thu, Oct 1, 2015 at 6:45 PM, Daniel Berry notifications@github.com
|
Hi, what's the best way to put something out there for review before Specific future improvements are:
That said, it works fine for me so if it's not broken then I'd also like to On Fri, Oct 2, 2015 at 7:24 AM, Jeffrey Johnson notifications@github.com
|
Yes, I just did a complete/fresh re-install and indeed Cookie.js was not It's a simple fix but still not sure where cookie.js gets loaded On Fri, Oct 2, 2015 at 8:27 AM, Charles Cossé ccosse@gmail.com wrote:
|
Can you post to the dev list to ask for help. I dont have time to look at On Fri, Oct 2, 2015 at 12:14 PM, Charles B. Cossé notifications@github.com
|
@ccosse adding here the comment, the layer upload is broken due to key error 'category' we should fix it asap. |
Simone, I apologize then ... I will look at it first thing when I get to On Tue, Oct 6, 2015 at 6:19 AM, Simone Dalmasso notifications@github.com
|
Simone, can you tell me any more info? I just tested on Firefox and Chrome On Tue, Oct 6, 2015 at 6:19 AM, Simone Dalmasso notifications@github.com
|
Thanks for taking a look, Traceback (most recent call last): File "/opt/master-geonode/geonode/layers/views.py", line 155, in
KeyError: 'category' 2015-10-06 13:12 GMT+02:00 Charles B. Cossé notifications@github.com:
Simone |
Should be fixed. I forgot that there had been changes to layers/views.py On Tue, Oct 6, 2015 at 7:15 AM, Simone Dalmasso notifications@github.com
It is true that the category form is not being submitted ... I resorted to
|
ok, are you going to open a PR? 2015-10-06 13:56 GMT+02:00 Charles B. Cossé notifications@github.com:
Simone |
This clashes with the multiple layer upload as they may have different categories, any chance we find a solution? Otherwise we'll have to revert. |
Oh boy. Okay I can try to fix it later today. I'll let you know. On Thu, Oct 22, 2015 at 5:34 AM, Simone Dalmasso notifications@github.com
|
I'm not sure how/where upload.js gets included, but have here added cookie.js alongside upload.js.