User tests: Successful: Unsuccessful:
check sampledata type before execute onAjaxSampledataApplyStep9
in testing plugin
install a sampledata plugin with more than 9 steps
Message Testing Sample Data has been installed!
appears
Message Testing Sample Data has been installed!
doesn't appears
none
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
obviously this is not correct
@brianteeman What do you mean? The PR or that the function is called during execution of other sampledata plugins?
Labels |
Added:
?
|
think about it
I know is that the "Testing Sample Data" is not included in any release (production sites)
I'm not sure if I described it correctly above. I don't want to run the testing plugin, I want to run another plugin (with more than 9 steps in test environment)
Because com_ajax
doesn't trigger any special plugin, just the function name onAjaxSampledataApplyStep9
joomla-cms/components/com_ajax/ajax.php
Line 158 in bcd54b6
Therefore, every plugin has to check the requested type (and session token) before execution
joomla-cms/plugins/sampledata/blog/blog.php
Lines 95 to 98 in bcd54b6
PS: The message of the last step is never shown because the finished message appears at the same moment
joomla-cms/build/media_source/mod_sampledata/js/sampledata-process.es6.js
Lines 87 to 104 in bcd54b6
I don't want to run the testing plugin, I want to run another plugin (with more than 9 steps in test environment)
I know. So why are you not writing your plugin correctly. editing this plugin makes no sense (plus as already pointed out the change is wrong anyway)
So why are you not writing your plugin correctly
I don't know exactly what you mean by that (all is core)? I can't change anything on "my" plugin so that the message from plg_sampledata_testing doesn't appear, right? (even if this only happens in the test environment)
pointed out the change is wrong anyway
Why (I can only understand point 3)? The other plugins also have this condition in the last step.
joomla-cms/plugins/sampledata/blog/blog.php
Lines 1845 to 1850 in bcd54b6
joomla-cms/plugins/sampledata/multilang/multilang.php
Lines 466 to 471 in bcd54b6
I can't change anything on "my" plugin so that the message from plg_sampledata_testing doesn't appear, right?
Wrong. Your plugin should be completely indpendent
Wrong. Your plugin should be completely indpendent
I think its independent ... (contains only sleep)
Uploded to: https://github.com/heelc29/plg_sampledata_joomla
I repeat again and for the last time. Your own sample data plugin has nothing to do with the sample data plugin in core that this pr is editing
Your own sample data plugin has nothing to do with the sample data plugin in core
Yes, of course, I never said that.
For the moment if no one use any 3rd party sampledata plugins with more then 9 steps (in test environment) the situation does not occur.
If (someone in future
If this is not necessary, we can close the PR.
This pull requests has automatically rebased to 4.2-dev.
Title |
|
Labels |
Added:
?
|
This is still completely wrong. This file is ONLY used by the testing plugin. it is not used by any other plugin in core and it will not be used by any plugin someone adds. If in the future more steps are added to the multilang sample data then it doesnt matter what change is made in this file - it will have zero effect. Please just think about it.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-07-22 19:06:54 |
Closed_By | ⇒ | heelc29 | |
Labels |
Removed:
?
|
obviously this is not correct