-
Notifications
You must be signed in to change notification settings - Fork 699
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
Update condition to display new label for content imports #11695
Update condition to display new label for content imports #11695
Conversation
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.
Code changes makes perfect sense, needs a manual verification, and also holding off approval as this is targeted for the patch.
After consultation with @marcellamaki I am retargeting this to 0.16.0, so this can be merged once manual QA is complete. |
@radinamatic @pcenov this is ready for manual QA review. Thank you! |
Hi @LianaHarris360 for some reason following the steps from the Reviewer guidance section I am actually seeing the "New" label when importing from an older version of the channel. See the following video: 2024-01-08_11-51-47.mp4 |
Hi @pcenov, I noticed that when choosing the option to import from another server, the channel version it is selecting from has the same version as the channel on the device ("Version 19"), although the second server on the right side of the screen lists the channel as "Version 8". Since the version is the same when selecting resources, the |
Hi @LianaHarris360 but that just makes the problem bigger than I initially thought. I've just double checked this with a newly created channel the first version of which I imported to the server and the second version of which I imported to the other device. |
kolibri/plugins/device/assets/src/views/ManageContentPage/index.vue
Outdated
Show resolved
Hide resolved
@pcenov It seems that the local channel version is supposed to be displayed, unless it is not available, because the version of the channel on the local device is being used to display the channel contents locally, not the remote version. From my understanding, the |
Thanks @LianaHarris360 I can only say that the label "New" is being always displayed when importing content either from Studio or from an older version of the channel from a local device. When importing from an older channel version on a local device the version of the channel is shown as being the same as the one on my device (which is confusing and incorrect). However if I am directly importing the channel for the first time from the local device then it shows the correct version. Here's a video illustrating what I am doing and seeing: NewLabel.mp4Based on that I still can't understand how to test the issue described in #9415 so some guidance on that will be much appreciated. |
Ah, yes, I understand your point. When selecting resources to import, if the displayed channel version always matches the one on the device, then the label "New" will always be displayed after importing resources. I'll have to defer to Richard to provide a more thorough explanation as to why the device's channel version is shown instead of the remote version. Since the device's channel version being displayed is intentional, perhaps the primary issue is not with the code logic, but rather with the labeling of "New", which may cause confusion among users when added resources are not necessarily more current. cc @rtibbles @marcellamaki @radinamatic |
a143ece
to
ba12a50
Compare
Merging - any further iteration on the strings can happen in string review process for 0.17. |
Summary
This pull request includes a modification where the string "Resources recently updated" is used instead of the label "New" when importing channel resources on the device to resolve any confusion surrounding to recently imported resources that are considered "new" on the device, but could be imported from older versioned channels.
Before:
After:
References
Fixes #9415
Reviewer guidance
Import from someone over the network, making sure that the person you are importing from has an older version of the channel compared to the one currently installed on your device. The label 'Resources recently updated' should be displayed.
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)