[WIP] Clean up input format versions #52
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The code representing reports (and related entities like machines, runs, etc) was greatly complicated by the presence of multiple input format versions.
In particular, the "v2" input format was introduced but several parts of the codebase (e.g.
lnt importreport
) were never switched to it and were still producing reports in the "old" format.This patch simplifies the code by un-versionning the Python objects that represent Report-related entities and moving tests and other tools to produce the latest input format.
However, old input formats are still supported in the sense that
lnt import
and the various importation methods still support old JSON formats, which areupgraded to the latest format before actually being submitted.
TODO: