-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
External versions: save state (open / closed) #9128
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
Changes from 1 commit
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 |
---|---|---|
|
@@ -51,6 +51,12 @@ | |
(EXTERNAL, EXTERNAL_TEXT), | ||
(UNKNOWN, UNKNOWN_TEXT), | ||
) | ||
EXTERNAL_VERSION_STATE_OPEN = "open" | ||
EXTERNAL_VERSION_STATE_CLOSED = "closed" | ||
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. Do we want more granularity here? 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. In the first commit, I used 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. Mostly displaying the information in the build page, or docs pages. Not a huge deal though, seems fine to start with this. |
||
EXTERNAL_VERSION_STATES = ( | ||
(EXTERNAL_VERSION_STATE_OPEN, "Open"), | ||
(EXTERNAL_VERSION_STATE_CLOSED, "Closed"), | ||
humitos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) | ||
|
||
LATEST = settings.RTD_LATEST | ||
LATEST_VERBOSE_NAME = settings.RTD_LATEST_VERBOSE_NAME | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 3.2.12 on 2022-04-21 13:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("builds", "0041_track_task_id"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="version", | ||
name="state", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[("open", "Open"), ("closed", "Closed"), ("merged", "Merged")], | ||
help_text="State of the PR/MR associated to this version.", | ||
max_length=20, | ||
null=True, | ||
verbose_name="State", | ||
), | ||
), | ||
] |
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 changing the API response. Do we have any concerns about this? In theory, nobody should be listen to this response, tho. We reply this to GitHub / GitLab.
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.
Yea, should be fine.