-
Notifications
You must be signed in to change notification settings - Fork 206
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
Search maps by a location #924
Conversation
app/helpers/front_ui_helper.rb
Outdated
@@ -10,4 +10,8 @@ def anonymous(maps) | |||
def featured(maps) | |||
maps.featured | |||
end | |||
|
|||
def location(maps,loc) | |||
maps.location(loc) |
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.
Use 2 (not 1) spaces for indentation.
app/helpers/front_ui_helper.rb
Outdated
@@ -10,4 +10,8 @@ def anonymous(maps) | |||
def featured(maps) | |||
maps.featured | |||
end | |||
|
|||
def location(maps,loc) |
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.
Space missing after comma.
app/helpers/front_ui_helper.rb
Outdated
@@ -10,4 +10,8 @@ def anonymous(maps) | |||
def featured(maps) | |||
maps.featured | |||
end | |||
|
|||
def location(maps,loc) | |||
maps.location(loc) |
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.
Tab detected.
Code Climate has analyzed commit e31d0f07 and detected 3 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #924 +/- ##
==========================================
+ Coverage 72.78% 73.25% +0.46%
==========================================
Files 37 37
Lines 1356 1361 +5
==========================================
+ Hits 987 997 +10
+ Misses 369 364 -5
|
Hi, @gauravano I guess I have some routing problem here. |
Implementing the map is still left. This is a WIP PR. |
checking |
Why are you loading using AJAX in view. Use link_to as button. From there, make request, and from controller render js -- https://coderwall.com/p/kqb3xq/rails-4-how-to-partials-ajax-dead-easy |
Otherwise, you can pass the location using But, prefer to implement using #924 (comment) |
Ya exactly. After doing this I realized that this is already present in the search bar of the header. |
1c5c160
to
868b8dd
Compare
it's done @gauravano |
Great, will review in the morning. Also, there's a merge conflict, please resolve that. |
e50e2ed
to
3a8fed5
Compare
3ab178a
to
ae62d71
Compare
I have resolved the merge conflict @gauravano |
Done @gauravano |
4d031bd
to
9937b50
Compare
Hi @divyabaid16, then let's wait for that error to be resolved. I will also see if I can help with the Recaptcha error. Also, please write a test for the method. Thank you! |
@gauravano done! |
* Search maps by location * mend * Search by location -2 * Error fixed * routes updated * Naming changed * Changes fixed * Like operation fixed * Error 500 solved * Test added
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/mapknitter-reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!