Skip to content

[5.3] [Events] Use event classes for Sampledata plugins#43636

Merged
laoneo merged 7 commits intojoomla:5.3-devfrom
Fedik:plg-event-sampledata
Feb 5, 2025
Merged

[5.3] [Events] Use event classes for Sampledata plugins#43636
laoneo merged 7 commits intojoomla:5.3-devfrom
Fedik:plg-event-sampledata

Conversation

@Fedik
Copy link
Member

@Fedik Fedik commented Jun 8, 2024

Summary of Changes

Update sampledata plugins to use SubscriberInterface and event classes.

Testing Instructions

Try to install sample data, of each type. All should work as before.

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:
  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org: New Event classes Manual#177
  • No documentation changes for manual.joomla.org needed

@exlemor
Copy link

exlemor commented Jul 24, 2024

@Fedik

I am getting this error message when I try to Apply Patch:

The file marked for modification does not exist: plugins/sampledata/testing/src/Extension/Testing.php

Am I doing something wrong? (sampledata it NOT yet installed)

@Fedik
Copy link
Member Author

Fedik commented Jul 24, 2024

It maybe you use patch tester on regular Joomla installation?
The thing is, that sampledata/testing exist only in DEV installation from the git.

@exlemor
Copy link

exlemor commented Jul 24, 2024

It maybe you use patch tester on regular Joomla installation? The thing is, that sampledata/testing exist only in DEV installation from the git.

You are correct - a standard Joomla test site of 5.1.2 that I spun up for testing.
I didn't see anything in the instructions that said Dev installation or git requirement or equivalent so I did as usual, sorry ;(

@Fedik
Copy link
Member Author

Fedik commented Jul 24, 2024

@exlemor I would say, if other sampledata works then we can count it as success 😉
the testing sampledata DEVs will test after merging 😄

@exlemor
Copy link

exlemor commented Jul 24, 2024

@exlemor I would say, if other sampledata works then we can count it as success 😉 the testing sampledata DEVs will test after merging 😄

I apologize for not understanding the above message - but just to clarify, I have a standard Joomla 5.1.2 installation, I have Joomla Patch Tester installed and when I try to Apply Patch I get that error message - so I can't try to install the Blog Sample Data or the Multilingual Sample Data since I get that error in red and the patch doesn't apply.

(sorry for being confused)
(see attached screenshot if that helps)
Screenshot of Safari at Jul 24, 2024 at 11_01_08 PM

@brianteeman
Copy link
Contributor

@Fedik you cant use patchtester for this PR with a released version of Joomla. As the testing sampledata is only in the dev git clone patchtester fails to apply this pr so @exlemor cannot test even the regular testing plugins.

@exlemor
Copy link

exlemor commented Jul 24, 2024

@Fedik you cant use patchtester for this PR with a released version of Joomla. As the testing sampledata is only in the dev git clone patchtester fails to apply this pr so @exlemor cannot test even the regular testing plugins.

Thanks for the explanation @brianteeman.

@exlemor
Copy link

exlemor commented Aug 24, 2024

I have tested this item ✅ successfully on f382f4b

Now that I am on a Joomla 5.2.0 beta2 dev environment I was able to test it and it seems successful indeed.

I did find a small bug: if you click on install Testing Sample Data, it installs, you go somewhere else in Joomla and come back to try to install it again, it fails with a logical error: Step 1 Failed: Another Tag has the same alias (remember it may be a trashed item). BUT this makes Blog Sample Data or Multilingual Sample Data's install button not work - you have to reload the entire page for those Install buttons to refection.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43636.

@ghost
Copy link

ghost commented Aug 25, 2024

Now that I am on a Joomla 5.2.0 beta2 dev environment I was able to test it

@exlemor how do you get sample data testing.zip? I'm also on Joomla 5.2.0 beta2 dev (nightly builds) but find only blog and multilang-plugins of sampla data in the backend.

@exlemor
Copy link

exlemor commented Aug 25, 2024

Hi fgsw, unless I misunderstood your question, that Testing Sample Data is already installed in one of the Joomla! 5 Server list - sponsored by Wicked Software which we used yesterday during PBF (I also used my own server 5.2 beta 1 for some PR tests but that installation did not have the file)

@brianteeman
Copy link
Contributor

The testing sample data plugin is removed from all releases - including beta. It is only present if you install from a github clone

@HLeithner HLeithner changed the base branch from 5.2-dev to 5.3-dev September 2, 2024 08:51
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.3-dev.

@HLeithner HLeithner changed the title [5.2][Events] Use event classes for Sampledata plugins [5.3] [Events] Use event classes for Sampledata plugins Sep 2, 2024
@Hackwar Hackwar removed the PR-5.2-dev label Sep 3, 2024
@ghost
Copy link

ghost commented Sep 7, 2024

No Prebuilt package is available for download.

Is it enough to test multilang- and blog sample data (no sample data plugin beside install from a github clone)?

 Conflicts:
	libraries/src/Event/CoreEventAware.php
@Fedik
Copy link
Member Author

Fedik commented Sep 7, 2024

No Prebuilt package is available for download.

I updated the branch, the prebuilt package should be available again in few sec/min.

Is it enough to test multilang- and blog sample data

Yes

@ghost
Copy link

ghost commented Sep 7, 2024

I have tested this item ✅ successfully on bd9cf02


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43636.

@laoneo laoneo added this to the Joomla! 5.3.0 milestone Feb 5, 2025
@laoneo laoneo merged commit 96c6887 into joomla:5.3-dev Feb 5, 2025
3 checks passed
@laoneo
Copy link
Member

laoneo commented Feb 5, 2025

Thanks!

@Fedik Fedik deleted the plg-event-sampledata branch February 5, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants