-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add an admin UI for control over which libraries (& versions of) are in use #462
Comments
Related: jQuery Update provided an admin UI for selecting which version of jQuery would be used for the website and at some point they've added the option to select a different version of the jQuery for the admin pages in the backend (because some pages/elements/features would break when using specific versions of jQuery). Here's how their 2.x config UI looks like: With their latest 3.x version, they still allow to set a site-wide version, but the fallback to a different version was converted to a theme-specific option to account for other installed themes as well: Given the fact that our version of jQuery is updated and we fixed any known issues or will fix any issues that come up (because they'll be core bugs), what are our intentions with regards to this specific library?...
|
...with regards to point 2 above, we do have "Updated jQuery and jQuery UI" listed as an improvement over D7 in our home page. |
Not in core I don't think. Shared CDN library loading is a bit of a double-edged sword.
We'll update jQuery within the current main branch (1.x) of jQuery to accommodate for bug fixes, yes. We have yet to see what the next versions of jQuery will bring. Now that they have adopted semantic versioning, the next version of jQuery will be 3.0. It's not clear how significant the changes in the next version will be.
If possible, I'd like to keep core up-to-date and use a contrib module to provide the old versions. So instead of jQuery Update, we'd have a jQuery Downgrade contrib project. For this entire proposal, I'm not sure a UI for this is a good fit for core. Modifying your library versions is something that's very likely to break modules or themes. It shouldn't be up to the end-user to figure out which library versions to use (or be allowed to change them). The core and contributed modules using the libraries should ensure they have compatible versions or refuse to function entirely. |
Fair enough. Now that I thought this over and after your remarks, a UI for jQuery + CDN support + older versions does seem more fitting in contrib land. I think jQuery Legacy sounds better than Downgrade though 😉 |
...does this though mean that this whole issue is a won't-fix? |
I think so. If we get a UI proven in contrib we can open a new issue to move that into core :) |
Once again, fair enough. |
I created #1593 to discuss the issue of whether there should be a UI in core to allow libraries to be served from CDNs if desired, which might also include the ability to select different versions. |
As a follow-up from #159
It would be handy if we could build an admin UI that listed all available libraries, and the versions that are both available and in use. We could have something like the modules page that provides admins the ability to toggle them each on and off.
We could either start from porting the libraries module from Drupal to Backdrop, build something that works like the jQuery Update Drupal module, or start fresh with our own admin UI for managing these things.
Whatever approach we take, I'd like to see the solution mature in contrib before it gets moved into core. I'm going to mark this issue as postponed for now, but please add a comment linking to the backdrop contrib project and remove the tag when we're ready to consider this module for inclusion in core.
The text was updated successfully, but these errors were encountered: