[BUG]: Custom Code (Hash Automation) & Own Powers is not pushed to package (github) of component it belongs to #1249
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?
When i push my component to my github package repo, the 2 hash automation custom codes (needed to fix the empty date issue #1245) are not added to the repo. Also my custom Powers is not added to the package either.
Steps to reproduce the Bug
create hash automation custom code. Push package to your repo.
Which Joomla version are you compiling in?
5.3.3
Which PHP version are you compiling in?
8.4
Which Joomla versions are you targeting?
5.x
Which PHP version are you targeting?
8.4
Which Web server is JCB running on?
litespeed
Which Relational Database is JCB running on?
mariadb 10.11
Which OS is JCB running on?
almalinux 9
Which JCB version are you using?
v5.0.0-alpha 1 release
Where in JCB did this issue occur?
Joomla Components(admin_views)
On which browsers did you encounter the issue?
Safari
Additional Comments
No response
[BUG]: Custom Code (Hash Automation) is not pushed to package (github) of component it belongs toto [BUG]: Custom Code (Hash Automation) & Own Powers is not pushed to package (github) of component it belongs to@TLWebdesign Thank you for raising this issue. Let me clarify how the system is currently designed and why you are seeing this behavior.
Hash Automation Custom Codes
It is by design that hash automation custom codes are not shipped with the component via the JCB packaging engine. This functionality has not yet been implemented, so those codes will not be included when packaging a component.
Custom Powers
For pushing out custom powers, the workflow is different since they are not part of the JCB package:
This ensures that your custom powers are properly managed and deployed.
✅ Summary:
HI,
Ahh ok i was trying to work together with other developers on a JCB project. Thats why i ran into this issue. Normally i stay far away from hash automation custom codes but the DATE field issue made me do it haha.
I figured out to push those Powers to a diff branch in my repo. Maybe we should keep the naming conventions in sync tho. Sometimes it's called Powers, and then it's called Super Powers. Makes it confusing.
Super Powers are an advanced way of using Powers across multiple projects in Joomla Component Builder (JCB). Normally, a Power is just a simple PHP class stored in your local database, available to your component. The Super Power concept extends this by allowing you to reference a Power through a special key, the SPK (Super Power Key).
When you use an SPK, JCB will automatically check your local database for the Power. If it’s missing, JCB can fetch it directly from an external repository and link it into your project. This makes Powers reusable and shareable between projects without duplicating code manually.
Think of it as a smarter, more flexible linker system for PHP within Joomla. Powers remain normal PHP classes, but the Super Power mechanism integrates them seamlessly across projects and repositories. That’s why the tab in JCB where you link a Power to a repository is important—it’s the step where a regular Power effectively becomes a Super Power.
In short, Super Powers turn ordinary Powers into shared, portable, and auto-synced code assets, making JCB’s extension-building ecosystem far more powerful and collaborative.
Ahh ok so it's a power when it's only local. But becomes a SUPER POWER!!! :D when it is linked to a repo. Good to know the difference there thanks 👍