Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Oct 9, 2020

Previously the days for which the last 3 hours were fetched, was the latest day in the servers index for a country, but if a day is not complete, the day will not be visible in the index. This PR fixes this behavior by artificially adding the one additional date (LATEST_DAY_IN_INDEX+1DAY).

Testing

  • Try it without this PR, check in the logs what the KeyFileDownloader downloads.
  • Try with this PR, check that the actual last 3 hours are downloaded.

d4rken added 3 commits October 9, 2020 20:02
…stead of today,

due to being based of the latest server index day files. We need to get them for the latest day index file,
plus 1 day.
@d4rken d4rken added bug Something isn't working maintainers Tag pull requests created by maintainers labels Oct 9, 2020
@d4rken d4rken requested a review from a team October 9, 2020 23:19
@d4rken d4rken added this to the 1.5.0 milestone Oct 9, 2020
Copy link
Member

@mlenkeit mlenkeit left a comment

Choose a reason for hiding this comment

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

What if there are less than 3 hour packages available for the given date?

@mlenkeit
Copy link
Member

What if there are less than 3 hour packages available for the given date?

Just for the record: I think it's not required to fix this, as the 3 Hour mode is only used for testing, and it wouldn't work as the name suggests only between midnight and 2 am or so. I can live with that 😉

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

83.3% 83.3% Coverage
0.0% 0.0% Duplication

@ralfgehrer ralfgehrer changed the title Fix behavior of last 3 hours test mode switch (DEV) Fix behavior of last 3 hours test mode switch (EXPOSUREAPP-3179) Oct 12, 2020
@ralfgehrer ralfgehrer merged commit 971580a into release/1.5.x Oct 12, 2020
@ralfgehrer ralfgehrer deleted the fix/last-3hours-mode branch October 12, 2020 11:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working maintainers Tag pull requests created by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants