-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add location tag for notes #650
Conversation
@jywarren @ebarry @steviepubliclab This PR is ready for merge. All tests are passing. Users will be able to add location to their content and also take care of privacy concerns by truncating exact location. LocationTag will be a generic model which can also be extended to any other models in future. Review please 👍 🌏 🎉 |
64264f7
to
b600174
Compare
HI Lalith, +1 336-269-1539 On Wed, Aug 10, 2016 at 11:35 PM, Lalith Rallabhandi <
|
@ebarry I'm obscuring lat and long values, https://github.com/publiclab/plots2/pull/650/files#diff-b9551b46e6321bfb977e1f52104c5768R136 We store individual lat, long columns in the database. GeoHash is something which brings all attributes, (12°0.000' 45°0.000'). This needs to change column to string which breaks geo location in Profile pages. My opinion would be use same way in both interfaces (profile, content) so that users don't get confused. |
Hi Lalith, I see your point about not confusing users by having two different user My* pressing concern* is user privacy. Having privacy on by default -- and +1 336-269-1539 On Thu, Aug 11, 2016 at 9:56 AM, Lalith Rallabhandi <
|
I'll need to do a pretty close review of this, and I'm not sure I'll have time before my flight on Sunday, but I'll check out a version to review in flight. It's great to see this work, and this may be one of those PRs where we have to iterate a few times before merging. Thanks for your hard work and keep going on the UI stuff -- great idea Liz. |
OK, i'm not done reviewing but I have a few clarifications and requests:
|
Also, what does the |
And, I see that when I drag the map, the hexagon (which will be a rectangle) is not updated. The center of the map should be the "point" location which is downsampled, so when you drag the map, the "active" zone should be updated. Because of this, it's important to show more than just the active zone -- the active one should be highlighted in some way -- a red border, maybe -- and the inactive ones should be grey. This way it's clear that the active zone is just whichever one the map center falls inside. Make sense? |
@ebarry, if you have a moment to include this in a sketch that would be very helpful! I will be behind on things for a few days as I catch up after my trip. |
@@ -99,6 +99,38 @@ | |||
<input autocomplete="off" class="form-control" id="taginput" tabindex="3" name="tags" type="text" <% if params[:tags] || (@node && @node.tagnames) %>value="<%= params[:tags] || @node.tagnames.join(',') %>"<% else %>placeholder="balloon-mapping,gulf-coast"<% end %> data-provide="typeahead" /> | |||
</div> | |||
|
|||
<br /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be presented in a partial, please?
@jywarren I'll update code and address the comments. |
Hi @jywarren i can sketch, can you call me at your earliest convenience? +1 336-269-1539 On Mon, Aug 15, 2016 at 12:35 AM, Lalith Rallabhandi <
|
b600174
to
9e0e52c
Compare
91c5cb1
to
bd41302
Compare
@jywarren Can you give another shot for review ? I updated content and add draggable location picker. I'm using circle instead of square. I see circle or marker is being used widely for dragging location to a place, even with google maps. It works like charm. |
Can you post a screenshot so we can see? Thanks. |
@jywarren Can you have a look with this new code ? |
Hi, Lalith - it seems like if you get the grid-square selection working for profile locations, the same interface could be used here, don't you think? The selection interface here is all right, but would require storing two points (corners) rather than a truncated lat/lon pair, isn't that right? Why don't we focus on the profile location interface for now, and once that's running really well, we can re-apply the interface work from it to this as well. Also note that when using external libraries, it's best to add them as an entry in |
Hello! You must've noticed that the unit tests failed unexpectedly on your PR. This was due to some issue in the Travis CI testing configuration which was fixed by @jywarren later tonight. In order to make them work again, please rebase your work on top of the current master and then try pushing to your remote branch. Do this by:
Thanks for bearing with us, |
OK, this is now moving to https://github.com/publiclab/leaflet-blurred-location! Thanks! |
This PR adds integration for Notes allowing user to tag location with content and also taking care of privacy concerns.
Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!
rake test:all
schema.rb.example
has been updated if any database migrations were addedPlease be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software
We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays. Please alert developers on plots-dev@googlegroups.com when your request is ready or if you need assistance.
Thanks!