-
Notifications
You must be signed in to change notification settings - Fork 710
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
Migrate Documents to new Topics #6082
Conversation
"emails-thunderbird", | ||
"set-up-email-thunderbird", | ||
], | ||
"customize-settings-and-preferences": [ |
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 list is missing sync
.
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.
I know - it just felt weird to pull out sync from the Sync topics and I wanted to reconfirm this with the content team
78688d0
to
0b9ee72
Compare
@escattone this should be ready for a review. I tested it locally and it runs without errors |
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.
r+wc -- Thanks @akatsoulas!
document.topics.remove(source_topic) | ||
|
||
# Migrate questions to the new topic | ||
if source_topic.questions.exists(): |
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. I don't think this line is needed, since the source_topic.questions.all()
below will return an empty list if the topic has no associated questions.
No description provided.