[BUG]: Get Snippets not working #1197
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What Happened?
Attempting to import new snippets, and JCB just sits doing nothing, saying Getting available libraries
loading.....
Steps to reproduce the Bug
Go to JCB Dashboard, click on Snippets, then click on the Get Snippets button in the upper right corner.
Which Joomla version are you compiling in?
5.2.2
Which PHP version are you compiling in?
8.2.21
Which Joomla versions are you targeting?
5.x
Which PHP version are you targeting?
8.1+
Which Web server is JCB running on?
Apache/2.4.59 (Debian)
Which Relational Database is JCB running on?
11.4.2-MariaDB-ubu2404
Which OS is JCB running on?
Ubuntu 22.04.1 LTS
Which JCB version are you using?
v5.0.3
Where in JCB did this issue occur?
Snippet(admin_view), Snippets(admin_views)
On which browsers did you encounter the issue?
Firefox
Additional Comments
I'm unsure if this supposed to work in the current version, or whether it is still a work in progress.
Looking at developer tools in FireFox, under console there is the following error:
Uncaught TypeError: jQuery.get(...).success is not a function getLibraries http://{site]/administrator/components/com_componentbuilder/assets/js/get_snippets.js?50e431:81 <anonymous> http://[site]/administrator/components/com_componentbuilder/assets/js/get_snippets.js?50e431:16 jQuery 13 mightThrow process setTimeout handler*Deferred/then/resolve/< fire fireWith fire fire fireWith ready completed EventListener.handleEvent* <anonymous> <anonymous>
Thank you for bringing this up. I want to share an update on the current progress and the new direction we're taking with JCB regarding content distribution, including Snippets.
The New SuperPower Implementation
We are moving away from the current Snippets implementation to align it with the recently introduced SuperPower architecture. This approach significantly improves stability, scalability, and maintainability. Here's a high-level overview of how the new system functions:
FieldTypes as a Model:
Repositories and Content Types:
Community-Driven Repositories:
Snippets Migration
We plan to migrate Snippets to the SuperPower system to benefit from this new architecture. This migration will include the following features:
Advantages of the New System
Stability and Scalability:
Flexibility:
Decentralization:
Next Steps
We are finalizing the API implementation and integrating it into the architecture. Once stable, we will:
This new repository-based content distribution system represents a significant step forward for JCB, providing Git-like functionality for managing and sharing component data.
Conclusion
The GetSnippets feature is part of a broader reimplementation effort to align with the new SuperPower architecture. While the existing system has limitations, the new approach will introduce enhanced stability, flexibility, and collaboration opportunities. We appreciate your patience as we continue to refine and deploy this new system.
If you have any further questions or suggestions, please feel free to reach out.