-
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
WIP: Formatting and improving map popups #7562
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7562 +/- ##
==========================================
- Coverage 82.03% 81.94% -0.09%
==========================================
Files 97 97
Lines 5615 5627 +12
==========================================
+ Hits 4606 4611 +5
- Misses 1009 1016 +7
|
Question: On the popups do we want to display the location lat and lon? I can also display other information about the post if we want to. I tried to display the number of comments but that caused an error because it depends on if the person viewing the page is a moderator/admin or not. The API doesn't like doing calculations based on current user, it causes an error. |
I don't know what's up with the tests... it's having failures and timeouts on things I didn't touch. |
Restarting travis |
@nstjean Whats the output when you locally run the system tests? I had to suppress the logs for it in Travis with |
I get some failures when I run the system tests locally, but it does run properly. It looks like travis isn't even starting the tests. |
🤔 Taking a look |
I think not, it seems extraneous! This is looking awesome though!!! |
It seems it doesnt run because of the suppressed logs, but the system tests run properly on Travis. The problem was that the Travis machine could not support to output the amount of logs we produce (mostly byte-represented screenshot images). Use your local environment to fix the system tests and the Travis pipeline should get fixed. |
Thanks for the suggestion, @alaxalves !!! |
Taking a closer look at this now... |
OK, 11 days ago this change was made, and that seems to have added the Looking deeper... |
So @alaxalves you're saying that we can't see the error because the output of |
Would one possible step be to remove the |
Sorry for late reply Jeff, |
So is there anything I can do here? @jywarren @alaxalves |
Hmm. Let me think -- wouldn't some of our system tests have failed if that were happening? I'm going to look at the commits/test runs leading up to the change to see if I can learn more... |
A number of test failures predated this but presumably they all passed at some point but not after the merge (when they get re-run). I remember we were having some inconsistent test results and rebooting them had seemed to work. I'm now going back to the most recent one that did work: |
We were getting this error: https://travis-ci.org/github/publiclab/plots2/jobs/653371760#L3915
which could be a disk space error... |
Other errors include lots of:
which could also be disk space related. I'm going to try removing the /dev/null portion to see if we can get it to intermittently pass. Then we should consider ways to not log the screenshots, rather than dumping the whole log. |
So, the screenshots don't seem to be getting logged:
however they are getting saved. If disk space is the issue, could we delete them each after they're uploaded? I would have thought |
@alaxalves - what exactly did you see about the log size being too big? Is it storage space, or something else? https://travis-ci.org/github/publiclab/plots2/jobs/651968744 doesn't seem too wildly long - system tests logs are about 3k lines. Is that breaking something? |
Aha - ok, https://travis-ci.org/github/publiclab/plots2/jobs/663629236#L1865 does show the data-urls inline. its giant, and got:
But, based on comparison to previous logs, i don't think we used to put these into logs. Looking at where that happens and if we can suppress it just for the screenshots... |
Hmm. I can't see where system test output is configured. When originally installed in https://github.com/publiclab/plots2/pull/4888/files and https://github.com/publiclab/plots2/pull/5868/files we don't seem to be customizing output. Let's see if capybara has a config to customize the log output... |
I'm also not convinced this is a data-url:
|
|
Hmm, yeah - even the last PR before the #7568 changes does not try to output the files into the log: https://travis-ci.org/github/publiclab/plots2/jobs/654281714#L3717 although it does fail for some reason that could be related or not...? |
So, in summary, before #7568 we were not outputting files into the logs, and the logs were reasonable length. Some other issue may have been causing intermittent test failures but it's not clear to me what the connection is unless it's disk space. If we can figure out why it's trying to output files into logs, we can probably solve this? |
Hmm, i'm pretty stuck here, i think. @alaxalves maybe after i documented some of this research and digging, you have any new insights? Thank you!!! |
@nstjean could you try rebasing see if travis passes |
Hey @jywarren @cesswairimu Could you guys sum up the discussion here? |
Hi @alaxalves -- thanks, I think my last comment is unfortunately still the latest we know: For some reason the new setup outputs screenshot files to the logs, but I confirmed that this wasn't the case before #7568, and so the goal is to figure out /why/ this is happening in the new tests setup and stop them from being logged, so that we can see the system tests log output properly and get this PR and others merged. Thanks! |
Ok, pushing it up to see! |
On /map we now have people displaying from the PLpeople layer in LEL, displayed via LeafletBlurredLocationDisplay.
We also have all the site content being displayed leaflet_helper.js. This PR updates the styling of those popups.