-
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
Fix map errors with new LEL 2.2.1 #7545
Conversation
…ent it interfering with maps
Codecov Report
@@ Coverage Diff @@
## master #7545 +/- ##
==========================================
+ Coverage 81.87% 82.03% +0.15%
==========================================
Files 97 97
Lines 5612 5615 +3
==========================================
+ Hits 4595 4606 +11
+ Misses 1017 1009 -8
|
b5a1658
to
a3ec756
Compare
Ok so commenting out the PLpeople layer made the tests pass. I suspect it's because that API takes so long to load. I'm going to try to stub it out for the test. |
a3ec756
to
429274d
Compare
afc799f
to
fc43734
Compare
fc43734
to
e6fabb4
Compare
Screenshots 📸 (click to expand)7545-test_questions.png7545-test_embeddable_grids.png7545-test_signup.png7545-test_viewing_the_settings_page.png7545-test_tag_by_author_page.png7545-test_wiki_page_with_inline_grids.png7545-test_stats.png7545-test_viewing_the_dashboard.png7545-test_searching_an_item_from_the_homepage.png7545-test_signup_modal_form_validation.png7545-test_tag_stats.png7545-test_login_modal_form_validation.png7545-test_questions_shadow.png7545-test_login_modal.png7545-test_profile_page.png7545-test_comments.png7545-test_tags.png7545-test_signup_modal.png7545-test_wiki.png7545-test_methods.png7545-test_tag_page.png7545-test_blog_page_with_location_modal.png7545-test_tag_wildcard.png7545-test_signup_modal_disabled_submit_button_on_empty_username.png7545-test_embeddable_thumbnail_grids.png7545-test_front_page_with_navbar_search_autocomplete.png7545-test_spam_moderation_page.png7545-test_login.png7545-test_viewing_the_dropdown_menu.png7545-test_viewing_question_post.png7545-test_mobile_displays.png7545-test_simple-data-grapher_powertag.png7545-test_front.png7545-test_question_page.png7545-test_tag_contributors_page.png7545-test_blog.png7545-test_people.png7545-test_wiki_revisions.pngLearn about automated screenshots Generated by 🚫 Danger |
body: "{items:[]}", | ||
status: 200, | ||
:headers => {"Content-Type"=> "application/json"} | ||
) |
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.
I think this worked!
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.
I think you can mock any testing framework now 😄 🎉 !!!
Ready for review! |
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.
Wow the maps look great 🎉 🎉 Superb 🚀
@sagarpreet-chadha checkout these.. Really cool |
|
||
var setHash = 1; | ||
<% if defined? url_hash != nil and url_hash == 0 %> | ||
setHash = 0; | ||
<% end %> | ||
|
||
var options<%= unique_id %> = { | ||
mainContent: "people", | ||
setHash: setHash | ||
layers: ["PLpeople"] |
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.
YESSS
body: "{items:[]}", | ||
status: 200, | ||
:headers => {"Content-Type"=> "application/json"} | ||
) |
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.
I think you can mock any testing framework now 😄 🎉 !!!
I am so happy to see PLpeople to go LIVE!!! This layer is one of the best layer i had the opportunity to work on. I think i can take a session on how i implemented this heatmap if you guys are interested 😄 . Thanks @nstjean , @cesswairimu for completing this 🎉 |
🎉 Broke out a couple follow-ups here! publiclab/leaflet-blurred-location-display#98 and a little simpler still: https://github.com/publiclab/leaflet-blurred-location-display/issues/97 |
* fix inline map errors with using new LEL 2.2.1, add plpeople to /map and /people * move subscription popover javascript fix to subscription page to prevent it interfering with maps * calculate lat, lon, zoom for people map using global or local variable * fix bug where map popup doesn't show on inline maps * fix codeclimate error * troubleshooting travis error * add webmock to stub api requests
Fixes #7381 (<=== Add issue number here)
display
param in LELPLpeople
layer in LEL/map showing popup for a content node
/map showing popup for a person
/wiki/inline-maps
/people
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/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!