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

Simplify last map update check parsing and set threshold for last check to 7 days #7243

Merged
merged 1 commit into from
Jul 25, 2020

Conversation

DanVanAtta
Copy link
Member

  1. Simplify: Rather than storing a formatted string for the last time we checked for
    map updates, just store the equivalent epoch milli timestamp.

  2. Adjust threshold for checking for maps to be every 7 days rather than once
    a month. The once a month made more sense when the map list was hosted on source
    forge and the download time was very slow, with a fast download of the map
    list we can check more often and thereby get better responsiveness to map
    version updates.

Fixes last map-date-check parsing error reported in:
#7014

Functional Changes

[] New map or map update
[] New Feature
[] Feature update or enhancement
[] Feature Removal
[] Code Cleanup or refactor
[x] Configuration Change
[x] Problem fix
[] Other:

Testing

  • Did a smoke test, launched the game, verified saw 'maps out of date' message & launched a second time and verified that no such message was present.

Screens Shots

Additional Notes to Reviewer

Release Note

FIX|Rare date parser error on game launch when checking for out-of-date maps

…ck to 7 days

1. Simplify: Rather than storing a formatted string for the last time we checked for
map updates, just store the equivalent epoch milli timestamp.

2. Adjust threshold for checking for maps to be every 7 days rather than once
a month. The once a month made more sense when the map list was hosted on source
forge and the download time was very slow, with a fast download of the map
list we can check more often and thereby get better responsiveness to map
version updates.

Fixes last map-date-check parsing error reported in:
#7014
@DanVanAtta DanVanAtta force-pushed the simplify-update-map-checks-last-date-parsing branch from aedfea2 to 1e172d5 Compare July 25, 2020 02:58
@codecov
Copy link

codecov bot commented Jul 25, 2020

Codecov Report

Merging #7243 into master will decrease coverage by 0.01%.
The diff coverage is 38.88%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #7243      +/-   ##
============================================
- Coverage     23.83%   23.82%   -0.02%     
+ Complexity     6971     6966       -5     
============================================
  Files          1160     1161       +1     
  Lines         78785    78788       +3     
  Branches      11368    11367       -1     
============================================
- Hits          18777    18769       -8     
- Misses        57827    57838      +11     
  Partials       2181     2181              
Impacted Files Coverage Δ Complexity Δ
...s/strategy/triplea/settings/LongClientSetting.java 20.00% <20.00%> (ø) 1.00 <1.00> (?)
.../strategy/engine/auto/update/UpdatedMapsCheck.java 50.00% <57.14%> (-36.67%) 1.00 <1.00> (-5.00)
...games/strategy/triplea/settings/ClientSetting.java 94.23% <100.00%> (ø) 31.00 <0.00> (ø)
.../src/main/java/games/strategy/net/nio/Decoder.java 65.51% <0.00%> (-1.73%) 11.00% <0.00%> (-1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83da4b0...1e172d5. Read the comment docs.

@codeclimate
Copy link

codeclimate bot commented Jul 25, 2020

Code Climate has analyzed commit 1e172d5 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 26.6% (0.0% change).

View more on Code Climate.

Copy link
Member

@RoiEXLab RoiEXLab left a comment

Choose a reason for hiding this comment

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

👍

@RoiEXLab RoiEXLab merged commit e1e6148 into master Jul 25, 2020
@RoiEXLab RoiEXLab deleted the simplify-update-map-checks-last-date-parsing branch July 25, 2020 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants