Skip to content
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

Hot-fix coming through! #87

Merged
merged 3 commits into from
Jul 20, 2020
Merged

Conversation

dambem
Copy link
Owner

@dambem dambem commented Jul 19, 2020

Relevant issue

So, let's talk a little bit about what I did.

Basically, here's the deal. The URL changed from luftdaten to Archive.sensor.community, which is also on a faster server and should now work a lot smoother! Brilliant, everything's great isn't it, all lovely and nothings broken.

Well no. So what was happening on my end was the front-end kept breaking. I couldn't understand why, and I thought oh it must be due to the new website having too much data. Nope. Javascript is actually really good at parsing this data it turns out. What I had done was begin implementing some fun changes in this branch. One of those changes consisted of a fractional reducer. Essentially what it would do is reduce the human_display to show the smallest possible fraction. (e.g, if 10 out of 100 people would die due to pollution, it would reduce it to 1/10)

However, it's been a very nice day over the past 24 hours, so what happened was that 0.96 people out of 500 would die due to pollution. This was not a number that the fractional reducer for some reason can deal with, and decided to blow up in my face, as it couldn't reduce that fraction to whole numbers.

Basically, it's fixed don't worry about it accept this, merge it and move on.

Description of this PR

Checklist

  • Tests all pass

@Megan-Wright
Copy link
Collaborator

@damben just tested this out and still getting absolutely no sensor data :/

@M-Davies M-Davies added the bug Something isn't working label Jul 20, 2020
@dambem
Copy link
Owner Author

dambem commented Jul 20, 2020

Arghh okay hang on getting it sorted.

@dambem
Copy link
Owner Author

dambem commented Jul 20, 2020

In the meantime, can somebody open up an issue for a local backup? I should be able to sort it out but just want to get this stuff ready!

@dambem
Copy link
Owner Author

dambem commented Jul 20, 2020

@Megan-Wright Can you try this one for now and let me know?

@Megan-Wright
Copy link
Collaborator

@dambem still nothing :(

@dambem
Copy link
Owner Author

dambem commented Jul 20, 2020

It had turned out they deleted them temporarily, this works for me, just needs a little time to allow them to pop through opendata-stuttgart/meta#148

Copy link
Collaborator

@Megan-Wright Megan-Wright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok that's taking at least a full minute to come through on initial start up so should probably look into that, but it does in fact work - approved!

@Megan-Wright Megan-Wright merged commit ea3e1cf into master Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants