-
Notifications
You must be signed in to change notification settings - Fork 733
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
Upgrade custom nav #8039
Upgrade custom nav #8039
Conversation
kolibri/plugins/device/assets/src/modules/wizard/actions/availableChannelsActions.js
Show resolved
Hide resolved
The tests are failing because the mock of I don't know if it's possible, but it would create a stronger test to mock the response from Studio itself, rather than mocking the internals of RemoteChannelViewset |
4ae3179
to
585e5cc
Compare
From what I can see that is what the test is doing:
This is mocking the requests get that happens inside the response, so mocking the Studio response. |
Ah, I thought mocking |
Yeah, we (unusually) use requests inside the RemoteChannelViewset to then do the subsequent fetch against Studio. |
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.
looks good!
@rtibbles , @jonboiser the changes in https://github.com/learningequality/kolibri/blob/develop/kolibri/core/content/api.py#L982 is breaking importing channels from studio , due to this commit: 585e5cc
|
Ah, looks like I forgot to wrap one in a response. |
Summary
Reviewer guidance
Can you upgrade to a newer version of a custom nav channel?
I tested this by upgrading, and then confirming that the new zip file was marked as available in my DB and also that it was my content storage folder.
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)