-
You must be signed in to change notification settings -
fix: redundant word in banner for Legacy stream documents #7207
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 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 |
---|---|---|
|
@@ -14058,7 +14058,7 @@ | |
}, | ||
{ | ||
"fields": { | ||
"desc": "Legacy stream", | ||
"desc": "Legacy", | ||
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 won't actually change production. it will show up here as a side-effect of the change in the database instead. The PR will need a data migration to change the name. 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. Got it. It will take me a few days to re-understand the migration stuff. If you want to add a commit or hints to me, feel free. (Not asking, just not wanting to be a blocker if I don't have to be) 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. No worries, this can wait awhile |
||
"name": "Legacy", | ||
"order": 6, | ||
"used": true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright The IETF Trust 2024, All Rights Reserved | ||
|
||
from django.db import migrations | ||
|
||
def forward(apps, schema_editor): | ||
StreamName = apps.get_model("name", "StreamName") | ||
StreamName.objects.filter(pk="legacy").update(desc="Legacy") | ||
|
||
def reverse(apps, schema_editor): | ||
StreamName = apps.get_model("name", "StreamName") | ||
StreamName.objects.filter(pk="legacy").update(desc="Legacy stream") | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("name", "0013_narrativeminutes"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(forward, reverse) | ||
] |
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.
nit: "is not None" instead of "!= None"
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.
There are seven "!= None" and four "is not None" in the file. Let me know if you want to standardize on one.
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.
Should definitely be
is not None
(citation: https://peps.python.org/pep-0008/#programming-recommendations)We're not obsessively zealous about it, but I try to rephrase things as I encounter them and it'd be great if you don't mind cleaning these up!