Remote auto_publish field from Publisher #3424
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,8 +145,6 @@ class Publisher(MasterModel): | |
|
||
Fields: | ||
|
||
auto_publish (models.BooleanField): Indicates that the adaptor may publish automatically | ||
when the associated repository's content has changed. | ||
last_published (models.DatetimeField): When the last successful publish occurred. | ||
|
||
Relations: | ||
|
@@ -155,8 +153,6 @@ class Publisher(MasterModel): | |
TYPE = 'publisher' | ||
|
||
name = models.TextField(db_index=True, unique=True) | ||
|
||
auto_publish = models.BooleanField(default=True) | ||
last_published = models.DateTimeField(blank=True, null=True) | ||
|
||
class Meta: | ||
|
@@ -169,16 +165,15 @@ class Exporter(MasterModel): | |
|
||
Fields: | ||
|
||
name (models.CharField): The exporter unique name. | ||
last_updated (models.DatetimeField): Timestamp of the last update. | ||
name (models.TextField): The exporter unique name. | ||
last_export (models.DatetimeField): When the last successful export occurred. | ||
|
||
Relations: | ||
|
||
""" | ||
TYPE = 'exporter' | ||
|
||
name = models.CharField(max_length=255, db_index=True, unique=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably be a TextField like all the others. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...or maybe all the names should be CharField, instead. TextField is really meant for long blobs of text, CharField for short ones that need to be size-bounded. We just need to be consistent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we know the max length of all strings, so that change would be pretty big. https://docs.pulpproject.org/en/3.0/nightly/contributing/3.0-development/data-modeling.html?highlight=textfield#introduction There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1. |
||
name = models.TextField(db_index=True, unique=True) | ||
last_export = models.DateTimeField(blank=True, null=True) | ||
|
||
class Meta: | ||
|
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.
Defined on the Master model, not here.