Major Upgrade away from repeatable fields in Joomla component view. #152
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#152
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "staging"
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?
Please test, but be sure that this branch is not ready for production.
What does not yet work:
So all you can test at this stage is the JCB interface, that all looks and works as expected. That with the upgrade all repeatable fields are converted and in their right place.
I will over the weekend finish the compiler and export-import of JCB packages before I will next week release the upgrade.
IMPORTANT NOT PRODUCTION READY
I tried to copy a Joomla Component view
So it seems there is a error in your copy method.
My preliminary testing this build appears to be working correctly.
And the layout on Dynamic Gets looks better.
No the build/compiler does not work. CAUTION the compiler has not been updated.
Just the data have been moved and the views setup and all the nice UI stuff 👍
I realize that. I'll test the compiler when it's ready. I tested by adding a publishing tab, and placed a field in the publishing tab. I will see if it properly places that field in the publishing tab when compile is working, which would resolve one of the issue suggestions.
Ya all the last few issues where addressed in the compiler, but not the transition to subforms in the joomla_component view.
I think this release is going to be the biggest yet with over 35k new lines of code.
With such major changes, is just a minor incremental version change appropriate? With such major changes, would it, possibly, be more appropriate to have this version as 2.6.0? Then work up from there, then for the Joomla! 4 version, start at 3.0? Just thinking out loud on this. I went around and around with the Joomla Devs on something similar when they released J! 1.6 (which they admitted later should have been 2.0, which is what I was saying to them).
I think the release should be v2.6.0
Then the compiler and all will be ready and working. So yes we should give a clear heads-up on this release. I pushed it to v2.5.9 but I was intending to bump to 2.6 before we let this one out 👍
The title does say Major Upgrade
Okay I have managed to do the complete update, everything should now work as expected.
@ro-ot & @mwweb please test and let me know if you find any issues.
I ran a test and it compiled fine. The custom field that I added to tab "publishing" is showing on the Publishing tab in the admin view. One thing I think we may want to point out to people is that if they want to add to that tab, they need to keep the position to Left in Tab.
Export and Import of the component appears to be working as well.
Try adding it to the right and then compile the component, you will see a message :)
I did that initially and there was a message that the position didn't exist. That's where i moved it and recompiled.
Yes, is that not enough?
Can you do some test on exporting and importing of JCB packages?
I guess we can leave the note as is. If there is any confusion/questions we can add to the note later. I dobt know how many will use the ability to add to the publishing tab.
I tested exporting and importing one component, and it appears to have worked flawlessly. I'll create a whole new install today and test more.
OK. I did a complete export of my components, and imported into a brand new test site. It looks like FTPs didn't export, and out of 37 layouts only 1 is in the new site.
Okay the FTP don't export by default, as a security measure.
I will check the layouts issue that is weird.
Thanks!
It is weird because it is in an area I did not change in this update... I just tested it again my self with the Sermon Distributor component and it moved all the layouts as expected. I will keep looking...
Just that you know the export will only export layouts linked in templates or site_views or custom_admin_views or other layouts of course that are linked to components. IF not linked to components it will not export it. Not that I think this is the case with you... just want to make sure we are clear on that implementation principle.
Great work!
This is a big step forward for JCB.
@mwweb have you been able to resolve the issues you mentioned. We are about ready to let this upgrade merge with the core.
I just ran another test. The component that I am exporting is my component that is now "live". There are multiple admin views, several site views, several templates being called in the site views, and several layouts being called from the templates.
Once again, it looks like all the admin views, sites views, and templates are being exported, but not the layouts.
I event tested with doing an export of Sermon Distributor, then importing. The same thing happens: only Series Table Row imports.
This is strange, I am not seeing the same issue at all, in fact this JCB seems to work more effectively then any of the version before.
Would you mind giving me the Sermon Distributor JCB package that you have exported. So I can try import it on my blank install to see what happens.
Here you go.
JCB_sermondistributor.zip
Can you please email me the key?
I had to dig through all my old emails to find your email address. I just sent the package and key to your joomla email address.
I still did not receive your email... but I found the issue. Please test and let me know.
Just note the problem was with the exporter not the importer 👍
I was not seeing the error before, since I was using old exporter JCB packages. But I think it is resolved now.
We are about ready to publish this.... just need you to verify that the issue is resolved.
That looks like it resolved the issue.
I need to run 1 more test for you. When attempting to compile, I received an error: 0 Call to undefined function bcadd()
Yes, it looks like there is an error in the compiler in regards to bcadd.
Update on the above error: the error ONLY occurs in PHP 7, not in PHP 5. So, there appears to be something that is not compatible with PHP 7 in the compiler.
This is a function for calculations that should be turned on in PHP.
http://php.net/manual/en/function.bcadd.php