-
Notifications
You must be signed in to change notification settings - Fork 112
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
Convert remaining CharField to TextField #377
Conversation
3fb92dc
to
7d435cb
Compare
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.
Looks like you got all the instances and the relevant docstring sections as well, good job. LGTM.
dev_requirements.txt
Outdated
@@ -5,3 +5,4 @@ ipython | |||
codecov | |||
coverage | |||
flake8 | |||
pytest |
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.
Did you mean to make this change as part of this same PR?
86ef34c
to
787c5c1
Compare
4358c0e
to
0ed5848
Compare
pulpcore/app/models/progress.py
Outdated
@@ -106,7 +106,7 @@ class ProgressReport(Model): | |||
it will be set to the current task_id. | |||
""" | |||
message = models.TextField() | |||
code = models.CharField(max_length=36) | |||
code = models.TextField() |
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.
Why remove the max_length here? I thought code was supposed to be a short name for the progress report.
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.
Sure, but how do we decide how short is too short? I feel like we should just make sure plugin writers know they need to keep it short by convention. I can revert it for now though, if it limits plugin writers too much we can increase it or change it.
0ed5848
to
8e8dcb8
Compare
closes: #5609
https://pulp.plan.io/issues/5609
Exception, the artifact hashes have a preset length. While we don't gain (or lose) anything from using CharField, it might provide a little tiny amount of extra validation, so I left it as-is.