Skip to content

Updatesites manager: Changing Publish to Enable (Issue #6292)#6297

Closed
infograf768 wants to merge 6 commits intojoomla:stagingfrom
infograf768:updatesites_enable
Closed

Updatesites manager: Changing Publish to Enable (Issue #6292)#6297
infograf768 wants to merge 6 commits intojoomla:stagingfrom
infograf768:updatesites_enable

Conversation

@infograf768
Copy link
Copy Markdown
Member

This PR changes the wording Publish/Unpublish for the Update site Manager when hovering the status icon and in the sidebar filter.

I kept the status "Protected", although it does not exist in the table (was a copy/paste I guess from manage.php).
The reason is I think it may be a nice improvement to add that column in the _updatesites table in the future.

After patch:
screen shot 2015-03-04 at 09 52 08
screen shot 2015-03-04 at 09 52 19

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Mar 4, 2015

@infograf768 works ok here but why we need the Unprotected state? The Protected state is only not used ok. But why we need logical a Unprotected state?

@Erftralle
Copy link
Copy Markdown
Contributor

But why we need logical a Unprotected state?

Assuming having the states protected and unprotected, why should one not be able to see just unprotected update sites? For me it is just the same as in the manage view, you can filter protected and unprotected extensions.

But to my opinion, there is a little problem. If I just want to see unprotected update sites it shows me nothing. It should show all because there are no protected update sites yet.

Updatesites manager: Changing Publish to Enable
@infograf768
Copy link
Copy Markdown
Member Author

The point here, as I said above, is that we miss a "protected" column in the table. Therefore Protected AND Unprotected will not work until we create such a column.
If desired, we have 2 solutions:

  1. take off all related to protected/unprotected in this PR for now
  2. also create the new column, and therefore update all our sqls at the same time

@Erftralle
Copy link
Copy Markdown
Contributor

The point here, as I said above, is that we miss a "protected" column in the table. Therefore Protected AND Unprotected will not work until we create such a column.

I agree, but the user does not know, that this column does not exist yet and expects to see all update sites when filtering unprotected sites.

So, I would prefer solution 2.

@infograf768
Copy link
Copy Markdown
Member Author

I took off the Protected status for now to simplify this PR and solve only #6292
If judged interesting by PLT/CMS Maintainers, a specific PR can be done.

@Bakual @phproberto @nikosdion
What do you think?

@nikosdion
Copy link
Copy Markdown
Contributor

An update site can be published or unpublished. There is no such thing as a "protected" update site. The update site of any extension (be it protected or not) WILL be disabled automatically when Joomla! can't fetch the updates. The sole purpose of the Update Site feature is to let you re-enable these disabled update sites.

I can easily think of legitimate reasons of wanting to disable core update sites (network issues in countries/organisations applying strict connection rules, incompatibility of future versions of core components with an older version of Joomla! in the same release branch, ...) and for wanting to enable core update sites (got disabled unintentionally, reasons for disabling it no longer exist, ...). Therefore we need to be able to control the publish status of protected extensions through the Update Sites feature. Otherwise, you know, we'll end up with people like me forking the whole installer infrastructure to make it manageable by end users who can't be trusted with editing their database directly. This would be a waste of resources.

For this reason I conclude that:

  1. Having a published / unpublished feature is a good thing.
  2. Showing protected/unprotected filtering options served no purpose.
  3. Making the publish status of protected extensions' updates be unmodifiable works against the purpose of having an Update Sites manager, therefore should never be implemented.

Therefore the patch, as it is at the time of me writing this comments, is good. Modifications regarding the protected status must not be made.

@infograf768
Copy link
Copy Markdown
Member Author

Thanks, @nikosdion
One more tester.

@Erftralle
Copy link
Copy Markdown
Contributor

The statements and arguments of @nikosdion convinced me.

@test: Works fine, thank you!

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Mar 8, 2015

RTC based on testing. Thanks!


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

@infograf768 infograf768 added the RTC This Pull Request is Ready To Commit label Mar 9, 2015
@infograf768 infograf768 added this to the Joomla! 3.4.2 milestone Mar 9, 2015
@infograf768
Copy link
Copy Markdown
Member Author

To merge in 3.4.2 as we are in lang freeze.

@brianteeman
Copy link
Copy Markdown
Contributor

Sorry but this PR is completely wrong. The PR is proposing a tooltip that describes what will happen when you click on the button. However in the rest of joomla eg article manager the tooltip is descrbing the current status

@phproberto
Copy link
Copy Markdown
Contributor

JM I have sent you a PR with a small improvement that avoids us to add the JHtml path for each view.

infograf768#15

@Erftralle
Copy link
Copy Markdown
Contributor

@brianteeman: Please have a look at the status column of the category manager.

@wilsonge wilsonge removed the RTC This Pull Request is Ready To Commit label Mar 24, 2015
@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 24, 2015
@zero-24 zero-24 removed the RTC This Pull Request is Ready To Commit label Apr 1, 2015
@infograf768
Copy link
Copy Markdown
Member Author

@brianteeman
You are wrong.
This PR implements the same behaviour as what exists for plugins manager, menu items manager, category manager, redirect links manager, etc., i.e. the action to perform when clicking.
As I said in another discussion, we have indeed different kind of tooltips for the item status in some managers (Contacts manager, articles manager.)

Therefore I maintain this PR.

Note: concerning @phproberto PR to my branch, we both agreed that it should be done separately.

@infograf768
Copy link
Copy Markdown
Member Author

Please reset this to RTC

@wilsonge wilsonge modified the milestones: Joomla! 3.5.0, Joomla! 3.4.2 Jun 5, 2015
@zero-24 zero-24 added the RTC This Pull Request is Ready To Commit label Jun 11, 2015
@joomla-cms-bot joomla-cms-bot added the Language Change This is for Translators label Jun 11, 2015
Changing since to 3.5.0
@infograf768
Copy link
Copy Markdown
Member Author

Closing in favour of #7154 where merge conflicts are solved.

@zero-24 zero-24 removed this from the Joomla! 3.5.0 milestone Jun 12, 2015
@infograf768 infograf768 deleted the updatesites_enable branch July 7, 2015 06:24
@zero-24 zero-24 removed the RTC This Pull Request is Ready To Commit label Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants