-
Notifications
You must be signed in to change notification settings - Fork 182
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
Add created_by and modified_by fields in ScriptVersion #354
Conversation
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.
Thanks for the changes! Some minor stuff
readonly_fields = ('created_date', 'created_by', 'modified_date', 'modified_by') | ||
|
||
def save_model(self, request, obj, form, change): | ||
if not change: |
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.
If this already exists won't we always update created by with the last user? Seems like this should be checking if created by is empty
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.
@@ -14,6 +14,13 @@ | |||
<div class="page-header"> | |||
<h3 id="wooey-script-title">{{ script.script_name }}</h3> | |||
<p id="wooey-script-description">{{ script.script_description }}</p> | |||
|
|||
<p id="wooey-script-info" style="color:gray"><small> |
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.
This is ok, but I'll probably move it elsewhere. Seems like we're putting a lot of stuff above where users primarily interact with the script.
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.
Also should handle the none case better than just saying none since created by and modified by won't be filled out for existing scripts. I'd put it as unknown or omit it
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.
Sounds good. Do you think somewhere a bit more discrete, like a footer?
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.
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.
Great! |
-A
option usage changed by setting celery<5created_by
andmodified_by
fields forScriptVersion
created
andmodified
fields forScriptVersion
. Currently, I have all of them set to be read-only, but still a bit unsure if this is the best, or should we make these editable?