Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.3] Unpublish testing sampledata plugin after installing data #39216

Closed
wants to merge 1 commit into from

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Nov 14, 2022

Pull Request for Issue #23633 .

Summary of Changes

If the data from a sampledata plugin can't be installed twice, it should be unpublished after installing the data. I also added the check for the name.

Testing Instructions

Install testing sampledata.

Actual result BEFORE applying this Pull Request

Testing sampledata is still offered after installing.

Expected result AFTER applying this Pull Request

Testing sampledata vanishes from list of offered sampledata in backend.

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:

  • No documentation changes for manual.joomla.org needed

@brianteeman
Copy link
Contributor

(as this doesnt get included in a distriubuted release it can be merged with any version)

@chmst
Copy link
Contributor

chmst commented Nov 15, 2022

Just applied it but it is confusing. It would be more helpful if for example the button is disabled (Personal opinion).

@zero-24
Copy link
Contributor

zero-24 commented Nov 15, 2022

Sure we can directly use the table not sure whether it would make more sense to run it via the plugin save method that would also trigger other plugins etc.

But I do also get the point of @chmst maybe its worth to store "has been clicked once" within the plugin and disable the button. That makes sure we are not doing some magic in the background but let hiding that module to the user when he wishes to do that.

Dont we need similiar code to the other sampledata plugins too?

@Hackwar
Copy link
Member Author

Hackwar commented Nov 15, 2022

Since the other sampledata can be installed more than once (at least according to the comments from others here) it is only relevant to the testing sample data. To be honest, I could also just close this and we keep the issue closed, saying that we don't want this.

@chmst
Copy link
Contributor

chmst commented Nov 16, 2022

Since the other sampledata can be installed more than once (at least according to the comments from others here) it is only relevant to the testing sample data. To be honest, I could also just close this and we keep the issue closed, saying that we don't want this.

My experience was: I used testing sample data (btw. this is always my indicator for "this is my developer site ..") then activated blog sample data - error (of course). So personally would prefer to abandon the PR.

@Hackwar
Copy link
Member Author

Hackwar commented Jan 9, 2023

Following Christianes judgement and closing this PR.

@Hackwar Hackwar closed this Jan 9, 2023
@Hackwar Hackwar deleted the 4.3-sampledata-remove branch January 9, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants