-
Notifications
You must be signed in to change notification settings - Fork 115
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 info field to RepositoryVersion #2999
Conversation
Required PR: pulp/pulpcore#2999 closes pulp#564
Required PR: pulp/pulpcore#2999 closes pulp#564 Co-Authored-By: Quirin Pamp <pamp@atix.de> This will change the default behaviour of the sync to use optimize unless it is explicitly set to False.
We now have a working state of the pulp_deb optmize sync that needs this field. As such, it would be nice if we could settle on a name for the field, so we can update this PR and move towards final review.
Personally I vote for Does anyone want to wade in, or should we go ahead and change this PR to use |
What about just 'details' or 'info' ? |
+1 to "info" |
The current consensus is "info". |
4cebd76
to
42ce95d
Compare
Updated the PR renamed the field to |
42ce95d
to
7763977
Compare
Required PR: pulp/pulpcore#2999 closes pulp#564 Co-Authored-By: Quirin Pamp <pamp@atix.de> This will change the default behaviour of the sync to use optimize unless it is explicitly set to False.
@ipanova I guess one could consider the The other thought was that since the field is inherently generic (can contain arbitrary Json), the name should also be generic? My 2ct. |
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.
@dralley if you want to also take a look
If we're going for a generic name like "info" then we maybe ought to consider whether this could be more broadly applicable than just repository versions, something like the Pulp 2 "scratchpad". For example I can see a use case having publications store particular details about how they were created as well. But on the flip side, I'm not sure if we want to resurrect the "scratchpad", and we already have a label system which has a small overlap in intended purpose. |
If my recollection is correct, I believe we discussed this aspect in pulpcore meeting, that's why we're trying to pick as generic name as we can. Labels are user visible, this is not intended to be seen. |
Unfortunately once it's been added to a model it can't just be easily moved to another model in the inheritance hierarchy. You can make a new field with a different name but keeping the same name is really problematic. |
oh, i see, yes |
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 we were ever to remove this and move it to the base model we would likely call it pulp_info
, precluding the aforementioned concern.
closes #2998
The name of the field was chosen arbitrarily and is certainly open to be changed into whatever fits the best.