Move last_jobinfo from JSON-serialized string to dictionary #3651
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.
For historical reasons, this field was stored as a JSON-serialized
string in the
last_jobinfo
attribute of a CalcJob. However, thisis cumbersome and makes querying very hard.
We now replace this with a dictionary, thanks to new commands to
get directly a dictionary (with serialized fields, so that the
dictionary is JSON-serializable).
These (and existing) methods of the JobInfo class are now also tested.
Finally, the attribute key has been renamed from
last_jobinfo
tolast_job_info
, for consistency with the keydetailed_job_info
introduced in #3639. By changing the type of the content, the field is
anyway not directly usable as before in scripts, so changing the name
is not an additional issue.
This should not give a real backward-incompatibility problem, since
this field was there mostly for debugging reasons.
Fixes #3649