Page 1 of 1

Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 5:45 am
by Nick Savov
For comments on the blog "Feedback wanted for Joomla Compatibility Check Feature". The direct link is at:
http://developer.joomla.org/news/546-fe ... ature.html

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 7:36 am
by laoneo
This is not solving the source of the problem. It is something more a user has to worry about. The problem is that joomla has to be more mature in backwards compatibility in terms of code and UI.

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 9:30 am
by Bakual
I sure like this new feature and I think it's well designed. Easy enough to understand without even reading documentation but still powerfull enough to match every possible case.

Let's build that in so users don't accidentaly break their site anymore.

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 12:10 pm
by Webdongle
Does this mean that when Joomla is updated that if the extension manifest file does not have the correct tag that ... the extension will not be recognised by Joomla. or is it to prevent an extension being installed if it is not the correct version ?

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 12:33 pm
by Bakual
It's meant that when you click the Joomla update button, there will be a warning message which will indicate that specific extensions are not compatible.
If the tags are missing, then it probably means "unknown" or will not be checked at all. But the exact UI itself is not yet decided as far as I understand it.

It's not meant to prevent installation of an extension, however it could probably used for this as well.

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 2:08 pm
by Webdongle
Bakual wrote:It's meant that when you click the Joomla update button, there will be a warning message which will indicate that specific extensions are not compatible....
That sounds good ... preventing the update may be a good idea because how many users ignore warnings ?

Not compatible with what ? The version of Joomla that is showing as an available update ?
i.e.
If the Joomla update option is set STS would it alert that an extension was not compatible ... but ... if it was set LTS then the exact same extension show as compatible ?

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 3:08 pm
by Bakual
Webdongle wrote:That sounds good ... preventing the update may be a good idea because how many users ignore warnings ?

Not compatible with what ? The version of Joomla that is showing as an available update ?
i.e.
If the Joomla update option is set STS would it alert that an extension was not compatible ... but ... if it was set LTS then the exact same extension show as compatible ?
As far as I know, the exact UI isn't decided yet. So it may be that the update is blocked or that there is only a warning. Both ways were discussed in the mailing list with pro and cons :-)
But I guess it makes a difference to the user if there is a generic warning "make sure your extensions are compatible" or if there is a specific warning "your installed extension 'foo bar' is not compatible with the new Joomla release, it's strongly recommended to check this extension first". Maybe even with an URL to the page containing infos about compatibility.

The compatibility tags will be checked against the version of Joomla which will be updated to. The choice of STS or LTS doesn't matter. This only decides which updates will be available. The updater always tries to update to the latest available release, and it will now check this release against the new tags of the extensions (if available).

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 4:08 pm
by tfuller
Bravo - much needed. Sounds good as proposed.

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 7:13 pm
by Webdongle
Thanks Bakual ... that explains it well.

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Mon Dec 17, 2012 9:28 pm
by bennieblanco
Anyone interested can already test the first draft we made few weeks ago
https://github.com/nicksavov/joomla-cms


heads up:
To test The compatibility tag for 3rd party extensions in that version , use something like:

Code: Select all

	<compatibility>
		<version>2.5</version>
		<version>3</version>
	</compatibility>
You can use it to test the add-on for now.


We are waiting for everyone's input in order to continue and add the proposed tag variation from:
https://github.com/joomla/joomla-cms/issues/598

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Tue Dec 18, 2012 10:39 am
by shumisha
Hi All,

We'been using a similar approach with sh404SEF and Josetta for some times. I'd suggest the whole <compatibility> tag is further split with a "product" tag like so:

Code: Select all

<compatibility>
  <joomla>
 ... as described in RFC ...
  <joomla>
</compatiblity>
This opens the door to further compatibility specifications, without changing the version specification format itself. The most obvious use being for PHP or database version:

Code: Select all

<extension>
  <compatibility>
    <joomla>
      <include>
        <versions from="2.5.8" to="2.5.99" />
        <versions from="3.0.0" to="3.99.99" />
      </include>
    <joomla>
    <php>
      <include>
        <versions from="5.3.8" />
      </include>
    <php>
    <postgres>
      <include>
        <versions from="99.9.9" />
      </include>
      <exclude>
         <versions from="0.0.0" />
      </exclude>
    <postgres> 
  </compatibility>
</extension>
[EDIT]I realized reasons to include this change may not be obvious, so here is a bit more details. The current RFC is for a "version" check format, or protocol, design.
The current implementation is for checking installed extensions and warning users before upgrading Joomla to a newer version.

Now, this very same version check specification for extensions could also be used unchanged in other areas. Most notably, the Joomla installer could then check if PHP, or the database used is compatible with the current website setup prior to installing or upgrading an extension and thus maybe breaking the site.

We don't have to implement that now, but by adding an intermediary tag below <compatibility>, we ensure the same file format can be used in many other areas.

Note: The same could be achieved using an attribute (<compatiblity item="joomla">) and having multiple <compatiblity> tags, I just find it harder to read and more confusing.

[/EDIT]


Rgds

Re: Feedback wanted for Joomla Compatibility Check Feature

Posted: Wed Feb 27, 2013 8:41 pm
by Nick Savov
Thanks for everyone's feedback! The code for RFC-598 has been implemented now, along with other improvements based on the feedback. For more information, please see the announcement at:
https://groups.google.com/d/msg/joomla- ... z1XtgL_IcJ

Kind regards,
Nick