-
Notifications
You must be signed in to change notification settings - Fork 6
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
Applied general fixes from PR 667 #720
Conversation
@@ -60,7 +60,7 @@ class TransformationStatus(BaseModel): | |||
assert inst.startTime == int(now - 3000) | |||
utc = timezone(timedelta(hours=0)) | |||
dt = datetime.fromtimestamp(now - 600).astimezone(utc) | |||
assert inst.finishTime == str(dt) | |||
assert inst.finishTime.split("+")[0] == str(dt).split("+")[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please comment why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
cmake/valgrind-python.supp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Describe the purpose of this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/dlite-storage-plugins.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid memory leak by calling fu_endmatch() when we are done with the iterator.
To not polute the code with unnecessary comments, I prefer not to add this comment to the code since it is already documented in fu_startmatch() that the returned iterator must be cleaned up with fu_endmatch().
storages/json/dlite-json-storage.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment on in commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed name of variable from "state" to "globals" to be consistent with variable naming when get_dlite_storage_plugin_api()
is called in the rest of the code.
I also think this comment belongs better here than in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. We disagree a bit on where comments should be. I guess that is because I am not enough expert in C to understand the code by itself.
Description
Applied general improvements from PR 667.
The purpose of this PR is to ensure that the fixes in PR 667 are not lost. This includes
Type of change
Checklist for the reviewer
This checklist should be used as a help for the reviewer.