User tests: Successful: Unsuccessful:
Pull Request for replace of #23366 .
Add menu items for fields and field groups below the "Contact" menu item in the admin menu.
On update, use script.php to add these new menu items so that lft and rgt are set correctly in the (nested) menu table.
If you have both MySQL and PostgreSQL, please test on both if possible.
Test 1: New installation
configuration.php
and delete all Joomla database tables in PhpMyAdmin or PhpPgAdmin (depending on your database type).Result: See section "Expected result" below.
Test 2: Update
Result: See section "Expected result" below.
you have:
You don't have these 2 menu items below Contact component
We need to review how we deal with changes of content in nested tables when updating because issues with that are is quite hard to fix with update sql scripts. (personal consideration)
Status | New | ⇒ | Pending |
Category | ⇒ | SQL Installation |
Labels |
Added:
?
|
Category | SQL Installation | ⇒ | SQL Installation Postgresql |
Category | SQL Installation Postgresql | ⇒ | Administration com_contact SQL Installation Postgresql |
Title |
|
we need to deeply review how we provide updates ---- if we are talking about sql
maybe i'm a dumb
...but it has been quite hard 4 me to to deliver this PR ....
update path without a stored procedure could be full of issues.... when you are talking about nested set tables, then cannot be a matter for easy/silly update .... but... maybe i'm too silly
That's why I asked someone else to do it :)
Hmm, thinking more about it: If it is really ok in 3.9 and not ok in 4.0, maybe there is already some 4.0.0-*.sql update script which removes those menu items? If this is the case, then this update script has to be changed. I can check that on weekend, but tonight and tomorrow night I won't have time.
Well, I just checked: Seems there is no 4.0 update sql deleting those menu items, so everything should be ok, no update sql needed.
let me clarify...
no better
let me try to explain myself as better as I can ..
when nested set tables are in play..
imho there are no static script that can save your ass
Correct.
you cannot guess what are the different lft,rgt values for all installation--- so
the update path should be at least careafully considered those different situation
my answer ----maybe we should consider a stored procedure......or
i'm open to feedaback
but shouldn't the "rebuild" button do that after an update?
are you talking about menus table only ?
i'm talking about the whole update process---- i.e assets table .... etc
better ... i'm talking about an update path where nested set table are deeply involved
Well I did not wanna speak against it, I only asked for my better understanding.
i hope i've at least instilled some grams of curiosity
its also why I would not have had any 4.0sql update files at all and just done them all at once when we get to beta. just creates a lot of useless files that will be deleted
Add a separator between Categories
and Fields
.
after a more proof review of 3.x we still need an update sql .... i was wrong
Category | SQL Installation Postgresql Administration com_contact | ⇒ | Administration com_admin com_contact SQL Installation Postgresql |
the needed update is made now with PHP
Postgres System Test is failing:
https://ci.joomla.org:444/artifacts/joomla/joomla-cms/4.0-dev/26540/system-tests/24688/InstallCest.installJoomla.postgres.fail.png
@SniperSister @alikon and me know about this. I've made a PR to his branch to fix it, he will merge as soon as lunch finished, I think.
@SniperSister Tests are passing here now.
I have tested this item
Test 1 new installation - MySQL 5.7: OK.
Test 1 new installation - PostgreSQL 10.10: OK.
Test 2 update - MySQL 5.7: OK.
Test 2 update - PostgreSQL 10.10: OK.
@brianteeman Could you test this, too? I've helped with updating testing instructions and making a zip package for an update test because Nicola is a bit busy with preparing for JoomlaDay Italy, so see the updated instructions for details.
Installed on a 3.9.12
and
Notice: Trying to get property 'version' of non-object in /Applications/MAMP/htdocs/trunkgitnew/administrator/components/com_joomlaupdate/Model/UpdateModel.php on line 1357
Contacts have no fields
All dashboards are empty. No way to access to database page.
No way to save the administrator menu to use Alternate preset
in order to access database page
Save failed with the following error: Column 'publish_down' cannot be null
used directly the link
administrator/index.php?option=com_installer&view=database
2 problems for database
Used Update structure
button.
1 problem remains and the button is no more displayed. Menus disappear.
@infograf768 The first message about template not available is normal after the update but should disappear and not come again after having liogged in to backend for the first time and then having navigated 1 time withint the backend.
The 2nd message should be fixed when my database null date works will be finished. It normally does not appear on a pre 8.0 MySQL with normal configuration regarding session parameters and server variables, e.g. for strict mode. Did you test this on MySQL 8?
The SQL error and empty dashboards ... maybe I've made a mistake when packing the update zip package which is linked in the testing instructions for test 2? I have to check that tonight after work (German time).
Did you test this on MySQL 8?
Nope.
I have tested this item
Deleted configuration.php and databasetables
new installation
applied patch
deleted browsercache and reload site
the two menue items for "fields" and "fields groups" do not appear
@nadjak77 Wrong order of processing. It has to be
You have done the new installation and then applied the patch but then have not done new installation again, so your database did not include the changes here.
I've just updated the update package for Test 2 to latest nightly build of today.
Testers please follow exactly the testing instructions given in the description of this PR.
@nadjak77 Please change back your testing result to "not tested" in the issue tracker. The test failed because you did not follow exactly the testing instructions. And if you have enough time, please test again in the right way, that would be very appreciated. Anyway thanks for testing, even if wrong now, because we need volunteers who help with testing.
I have tested this item
thank you @richard67
I tried it again:
apply patch
delete configuration.php and database
reinstall joomla
the new items appear under contact
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-10-19 21:45:06 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
Thank you for making the custom fields usable again.
Now I'm wondering: how should third party developers integrate custom fields in Joomla 4? Is it recommended that you also change the table #__menu
, or should you continue to use a sub menu?
Now I'm wondering: how should third party developers integrate custom fields in Joomla 4? Is it recommended that you also change the table #__menu, or should you continue to use a sub menu?
imo is matter of personal taste / consistency
I think it will need some update sql script for that, too. If there is some 4.0-*.sql already existing which deals with these menu items, this one can be modified before we are in beta, otherwise or if you are not sure, make a new one. I can help with that on weekend.Edit: Just after I typed that I did read statement in the description about update script not needed.