Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Remote auto_publish field from Publisher #3424

Merged
merged 1 commit into from Apr 9, 2018
Merged

Remote auto_publish field from Publisher #3424

merged 1 commit into from Apr 9, 2018

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Apr 8, 2018

@dralley dralley added the 3.0 label Apr 8, 2018
last_export (models.DatetimeField): When the last successful export occurred.

Relations:

"""
TYPE = 'exporter'

name = models.CharField(max_length=255, db_index=True, unique=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be a TextField like all the others.

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

Copy link
Contributor

Choose a reason for hiding this comment

The 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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1.

@@ -169,16 +165,15 @@ class Exporter(MasterModel):

Fields:

name (models.CharField): The exporter unique name.
last_updated (models.DatetimeField): Timestamp of the last update.
Copy link
Contributor Author

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.

last_export (models.DatetimeField): When the last successful export occurred.

Relations:

"""
TYPE = 'exporter'

name = models.CharField(max_length=255, db_index=True, unique=True)
Copy link
Contributor

Choose a reason for hiding this comment

The 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

Copy link
Contributor

@asmacdo asmacdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dralley dralley merged commit b19633c into pulp:3.0-dev Apr 9, 2018
@dralley dralley deleted the 3545-remove-autopublish branch April 9, 2018 18:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants