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

Remove old migration code #2289

Merged

Conversation

sixlettervariables
Copy link
Contributor

@sixlettervariables sixlettervariables commented Dec 15, 2020

This removes all migration code older than the 0.4X series. Right now the remaining migrations are pretty generous and captures all of the relevant migrations in that series. Migrations from 0.2.X or 0.3.X would require using 0.46.1, then moving to 0.48+.

This is also pretty conservative, in that I did not remove any of the code in the XML parser that "upgraded" certain types of old parts to their newer variants. I wasn't quite sure what versions they came from so I erred on the side of safety. Once 0.48 lands I'll work to remove those as well.

Going forward, I believe the strategy offered by @neoancient should be adopted: we support upgrading from the N-1 stable version. That would capture all of the relevant upgrades without much of a burden for folks lagging behind (for whatever reason).

@codecov
Copy link

codecov bot commented Dec 15, 2020

Codecov Report

Merging #2289 (3c84208) into master (d584d1a) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master   #2289   +/-   ##
========================================
  Coverage      8.34%   8.35%           
  Complexity     2601    2601           
========================================
  Files           672     672           
  Lines         95094   95008   -86     
  Branches      16003   15965   -38     
========================================
- Hits           7935    7934    -1     
+ Misses        86092   86008   -84     
+ Partials       1067    1066    -1     
Impacted Files Coverage Δ Complexity Δ
MekHQ/src/mekhq/campaign/Kill.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
MekHQ/src/mekhq/campaign/force/Force.java 5.51% <0.00%> (+0.03%) 1.00 <0.00> (ø)
MekHQ/src/mekhq/campaign/io/CampaignXmlParser.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
MekHQ/src/mekhq/campaign/personnel/Person.java 9.76% <0.00%> (+0.19%) 61.00 <0.00> (ø)
MekHQ/src/mekhq/campaign/personnel/SkillType.java 61.72% <0.00%> (+0.72%) 41.00 <0.00> (ø)
...Q/src/mekhq/campaign/personnel/SpecialAbility.java 23.35% <0.00%> (+0.10%) 27.00 <0.00> (ø)
...ekHQ/src/mekhq/campaign/personnel/ranks/Ranks.java 26.36% <ø> (ø) 17.00 <0.00> (ø)
MekHQ/src/mekhq/campaign/unit/Unit.java 17.34% <0.00%> (+0.01%) 179.00 <0.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 b7bcc99...3c84208. Read the comment docs.

@lgtm-com
Copy link

lgtm-com bot commented Dec 15, 2020

This pull request introduces 1 alert when merging 4f6987d into b7bcc99 - view on LGTM.com

new alerts:

  • 1 for Useless comparison test

@sixlettervariables sixlettervariables merged commit a9f8048 into MegaMek:master Dec 16, 2020
@sixlettervariables sixlettervariables deleted the remove-old-migration-code branch December 16, 2020 02:25
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