-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Moves setting current_channel to init #11567
Moves setting current_channel to init #11567
Conversation
…y place it is used
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.
Couple changes needed to ensure defensiveness against more errors, but glad this fixed the issue!
Build Artifacts
|
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.
LGTM
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 confirm - the channel update is working correctly now!
802a7d1
to
f119e34
Compare
f119e34
to
e75855d
Compare
Summary
The error
AttributeError: 'NoLearningActivitiesChannelImport' object has no attribute 'current_channel'
was causing channel upgrade to break. The lookup was moved toinit()
so that it would be defined before it was called in each place it was usedReferences
Fixes #11557
channel-import-fixes.mp4
Reviewer guidance
Does updating/upgrading a channel to a new version work?
Are there any possible side effects of when this might still not be defined, at this point in the code? (i.e. should some error handling be added)
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)