User tests: Successful: Unsuccessful:
Implementing Event classes for Content events.
It does not change all plugins, maybe only 1-2 for test, rest can be done in addittional PRs.
Lists of events:
Apply patch.
Everything should work as before.
Works
Works
Please select:
Category | ⇒ | Front End com_content Libraries Plugins |
Status | New | ⇒ | Pending |
Labels |
Added:
PR-5.0-dev
|
Category | Front End com_content Libraries Plugins | ⇒ | Administration Front End com_content com_users Libraries Plugins |
Labels |
Added:
Feature
|
Category | Front End com_content Libraries Plugins Administration com_users | ⇒ | Administration Front End com_content com_users Libraries |
I have no idea why test fails on installation, cypress gives no info.
Localy it works.
Category | Front End com_content Libraries Administration com_users | ⇒ | Unit Tests Administration Front End com_content com_users Libraries |
Category | Front End com_content Libraries Administration com_users Unit Tests | ⇒ | Administration Front End com_content com_users JavaScript Libraries |
Labels |
Added:
?
|
Category | Front End com_content Libraries Administration com_users JavaScript | ⇒ | Administration Front End com_content com_users JavaScript Installation Libraries |
Labels |
Removed:
?
|
Category | Front End com_content Libraries Administration com_users JavaScript Installation | ⇒ | Administration com_config Front End com_content com_users JavaScript Libraries |
Category | Front End com_content Libraries Administration com_users JavaScript com_config | ⇒ | Administration Front End com_content com_users JavaScript Libraries |
Category | Front End com_content Libraries Administration com_users JavaScript | ⇒ | Administration com_config Front End com_content com_users JavaScript Libraries |
Category | Front End com_content Libraries Administration com_users JavaScript com_config | ⇒ | Administration Front End com_content com_users Libraries |
Category | Front End com_content Libraries Administration com_users | ⇒ | Unit Tests Administration Front End com_content com_users JavaScript Libraries |
Labels |
Added:
?
|
Category | Front End com_content Libraries Administration com_users Unit Tests JavaScript | ⇒ | Administration Front End com_content com_users JavaScript Libraries |
Labels |
Removed:
?
|
Okay, the error comes from schemaorg plugins, this has to be fixed separately .
Category | Front End com_content Libraries Administration com_users JavaScript | ⇒ | Administration Front End com_content com_users Libraries |
I think it is ready for review and testing
Category | Front End com_content Libraries Administration com_users | ⇒ | Administration com_categories Front End com_content com_users Libraries |
Title |
|
I have tested this item
I tested this after a failed J4 to J5 test that Benjamin thought this PR might help with.
I tested in two server environments.
Server environment 1
I used Patchtester 4.2.2 in J5, applied the patch. Patchtester broke. Manage Extensions broke. Reverting the patch in the db did not resolve the issue.
Error: 0 Cannot set the argument result of the immutable event onContentPrepareForm.
Disabling com_patchtester in the db did not resolve Manage Extensions being broken with the same error as above.
Server environment 2
It wouldn't apply the patch to begin with. Error said:
You have not entered your GitHub API token in the Options. This will limit you to only 60 requests to the GitHub API per hour. Configuring authentication via an API token will allow 5,000 requests per hour.
Could not connect to GitHub: API rate limit exceeded for 72.249.30.219. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
I added my GitHub API token and then applied the patch. In this environment, the entire backend is broken, not just Patchtester. Error says 0 Call to undefined method Joomla\Plugin\System\Schemaorg\Extension\Schemaorg::setUserFactory()
Eek!
That sounds like $form is missing in patchtester layout, hmhm
Any idea why this is hidden?
joomla-cms/libraries/src/MVC/Model/ListModel.php
Lines 430 to 433 in 7ec953a
The error is because the ListModel
implements DispatcherAwareInterface
, but no one actually set a dispatcher for this legacy component.
In PR it:
joomla-cms/libraries/src/MVC/Model/FormBehaviorTrait.php
Lines 188 to 192 in 2d86862
I will update to:
try {
$dispatcher = $this->getDispatcher();
} catch (\UnexpectedValueException $e) {
$dispatcher = Factory::getApplication()->getDispatcher();
}
Need to check all places.
Should be good now
Do not merge it for now,
I will look to set a default Dispatcher in BaseDatabaseModel::__constructor
this PR should work now since the fix has been upmerged from 4.4 to 5.0 and merged into this pr
Okay, now it ready for test again.
Also, I have added a missed event onContentCleanCache
Category | Front End com_content Libraries Administration com_users com_categories | ⇒ | Front End com_content Libraries |
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-08-21 07:46:26 |
Closed_By | ⇒ | HLeithner |
thanks
thanks for your work, you are doing a great job