-
Notifications
You must be signed in to change notification settings - Fork 285
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
Should be able to delete plugins #928
Comments
Implementation of this will probably involve a 'soft' delete, to ensure that courses which use the deleted plugin still build and preview ok. This is how asset deletion works right now. |
I think that's fine as a partial fix |
We have a version of plugin delete working on our adapt which we would like to give back to the community. At the moment, it only lets you delete the plugin if it isn't in use by any courses, if it is used in courses it lists the courses and the course owners. I will assign this issue to myself for now and we can give this back soon (I won't add it to the loose ends milestone right now as I don't want to keep growing that milestone and adding features to test). |
I'd like to also put together a similar fix for asset deletion, so if we can decide on a strategy (the above sounds fine), then we should tackle that one too 😄 |
👍 I will get this into a PR after the loose ends release, we can possibly look at the deletion of assets to go into the same release |
@tomgreenfield @taylortom I'm currently working on getting this into a PR. Looking at the code I can see it deletes:
So there will be no traces of the plugin left. (The deletion can only go ahead if the plugin isn't used anywhere). I have a UI question, happy to take feedback now or wait until I've made the PR... On our installs we don't have the 'Check for updates' column on the plugin manager, users are free to upload their own plugins, but the managed ones are controlled through releases. Previously the design hasn't had to take into account the presence of this column. For now I have just added the remove plugin column to the plugin management tables, but I think the UI could be better. Each item in the updates column will have either a button that says 'Check for updates' or some text 'Uploaded by user'. Each item in the remove column will have either a button that says 'Remove plugin' or some text that says 'Plugins cannot be removed'. On every item, one of those two things will be a button, and the other will be text. It seems as though these things should be fairly straightforward to combine into one column, but I can't think of a good way to do it which would also be clear for the user to understand. I'm open to suggestions. |
I think two columns should be fine. My only suggestion would be that we could switch these label buttons out for icon buttons, and add some kind of rollover tooltip if they're disabled (but this doesn't really follow any of the UI conventions we currently use in the tool). Out of interest, is there any reason we're blocking the deletion of core plugins? From an end-user perspective, I can think of some use-cases for wanting to do this. |
Hm I will ask around internally and have a think about both points, might be good to discuss in the call today as well. |
I suppose we need to think about what would happen if somebody deleted the text component for example, and then later updated the framework. I think it would get re-installed? I can see that that would get annoying or appear broken. |
I have added in removing plugins that were added through adapt.json. In this case the plugin gets deleted from the following places:
|
Just logging this here to expand on @taylortom's icons suggestion. If we follow the list items button style that exists in the scaffold, the icon states could look something like this: Check for updatesClick to updateUp to dateReferences: |
@tomgreenfield Thanks for the suggestion, I will get these implemented |
@tomgreenfield Do you have any thoughts for if the plugin was uploaded by the user? |
My first thought is simply a user icon (without button outline) to signify it's user-uploaded. |
Ok, I will try it and see how it feels. I like the look of the buttons, but I suppose I have a slight concern it's less clear what is going on. Eg. that refresh button might make me think that it was going to refresh the plugin immediately rather than just check for updates. |
@tomgreenfield I think I should put the text that used to be in the buttons in title attributes so that they display as tooltips. Do you have any objection to this? |
Tooltips added |
Now that we can delete assets, the omission of this feature is much more noticeable.
Related forum posts:
https://community.adaptlearning.org/mod/forum/discuss.php?d=1013
https://community.adaptlearning.org/mod/forum/discuss.php?d=965
The text was updated successfully, but these errors were encountered: