? Failure

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
3 Sep 2014

This PR removes the testing sample data

Why?

It is very difficult to maintain AND as we remove what are currently core extensions (eg weblinks) it becomes less useful. I doubt many people other than JBS members ever use it anyway ;)

B/C

There are no backwards compatibility issues as this only effects new installs

Language

two language strings are removed and none are changed - I have only done this so far in the en-GB files

Testing

To test this you can not use com_patchtester as this is for installations. You can download a full installation with this PR applied here
When you install you should no longer see the option to install testing data and it will look like this

screen shot 2014-09-03 at 12 43 30

avatar brianteeman brianteeman - open - 3 Sep 2014
avatar jissues-bot jissues-bot - change - 3 Sep 2014
Labels Added: ?
avatar javigomez
javigomez - comment - 3 Sep 2014

adding in cc: @kshitijSharma2014 and @puneet0191 so we can evaluate, because the sample data is used in system tests.

avatar brianteeman
brianteeman - comment - 3 Sep 2014

If accepted I will remove the extra language strings from all the
installation language files if needed

On 3 September 2014 14:36, javier gomez notifications@github.com wrote:

adding in cc: @kshitijSharma2014 https://github.com/kshitijSharma2014
and @puneet0191 https://github.com/puneet0191 so we can evaluate,
because the sample data is used in system tests.


Reply to this email directly or view it on GitHub
#4213 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar Bakual
Bakual - comment - 3 Sep 2014

It's actually the only sample data I use, but I agree it is hard to maintain and will have to changed/removed anyway with the removal of weblinks and other extensions.

avatar brianteeman
brianteeman - comment - 3 Sep 2014

Yes its useful for the people who will read what I write here but thats
about it So let it be gone

On 3 September 2014 19:53, Thomas Hunziker notifications@github.com wrote:

It's actually the only sample data I use, but I agree it is hard to
maintain and will have to changed/removed anyway with the removal of
weblinks and other extensions.


Reply to this email directly or view it on GitHub
#4213 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar zero-24 zero-24 - change - 3 Sep 2014
Status New Pending
avatar zero-24 zero-24 - change - 3 Sep 2014
Category MS SQL Postgresql SQL
avatar phproberto
phproberto - comment - 3 Sep 2014

Tested successfully. Please do not merge until @javigomez confirms it's ok.

avatar brianteeman
brianteeman - comment - 3 Sep 2014

Maybe we can look at creating a standalone sample data install just for
testers

On 3 September 2014 23:56, Roberto Segura notifications@github.com wrote:

Tested successfully. Please do not merge until @javigomez
https://github.com/javigomez confirms it's ok.


Reply to this email directly or view it on GitHub
#4213 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar phproberto
phproberto - comment - 3 Sep 2014

But we would still need to maintain it.

If we cannot avoid to maintain it maybe we can keep the sample_testing option on the installation but download the sample data on demand. We save > 1MB on the package doing it on demand.

In fact we could do that with all the sample data ( > 2,5 MB ) or just keep a single package to allow a basic install offline. That would allow us to create more sample data online (like update servers) without modifying the installer + adding KB.

avatar brianteeman
brianteeman - comment - 3 Sep 2014

Yes we would need to maintain it but as its distributed to such small set
its not that important

On demand sample files is something I would love to work towards in the
future

On 4 September 2014 00:11, Roberto Segura notifications@github.com wrote:

But we would still need to maintain it.

If we cannot avoid to maintain it maybe we can keep the sample_testing
option on the installation but download the sample data on demand. We save

1MB on the package doing it on demand.

In fact we could do that with all the sample data ( > 2,5 MB ) or just
keep a single package to allow a basic install offline. That would allow us
to create more sample data online (like update servers) without modifying
the installer + adding KB.


Reply to this email directly or view it on GitHub
#4213 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar Bakual
Bakual - comment - 4 Sep 2014

It may become a good usecase for a "testing" distro.

avatar brianteeman
brianteeman - comment - 4 Sep 2014

for now lets make all our lives easier and remove it from the default
installation

On 4 September 2014 10:17, Thomas Hunziker notifications@github.com wrote:

It may become a good usecase for a "testing" distro.


Reply to this email directly or view it on GitHub
#4213 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar wilsonge
wilsonge - comment - 5 Sep 2014

This will ruin all the selenium tests. Because it checks the sorting ordering of data by checking for items in a given row. I agree that this is the right option. But we will need to work out what to do with those tests

avatar puneet0191
puneet0191 - comment - 5 Sep 2014

Yes, It would affect a lot of tests..but this year we tried to remove the row dependent assertions with Assert greater than..I think It can be handled :)

avatar infograf768
infograf768 - comment - 5 Sep 2014

@brianteeman
Let's keep the language strings in. They do no harm and will be useful if we re-instate the testing Sample data. Also, some installation ini do contain extra customised strings for localised sample datas including test.
I do consider though that this test sample data has been a real asset for JBS + anyone not formally in JBS but testing patches.

avatar brianteeman
brianteeman - comment - 5 Sep 2014

On 5 September 2014 11:38, infograf768 notifications@github.com wrote:

@brianteeman https://github.com/brianteeman
Let's keep the language strings in. They do no harm and will be useful if
we re-instate the testing Sample data. Also, some installation ini do
contain extra customised strings for localised sample datas including test.

Unfortunately that wont work as from what I can tell if the string is there then the option is there

I do consider though that this test sample data has been a real asset for
JBS + anyone not formally in JBS but testing patches.

It has been but for the reasons outlined before I still believe it is
better to remove it from the core


Reply to this email directly or view it on GitHub
#4213 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar infograf768
infograf768 - comment - 5 Sep 2014

Unfortunately that wont work as from what I can tell if the string is there then the option is there

Weird as it depends on the presence of the file as far as I know. See:

// Build the options list from the list of files.
        if (is_array($files))
        {
            foreach ($files as $file)
            {
                $options[] = JHtml::_('select.option', $file, $lang->hasKey($key = 'INSTL_' . ($file = JFile::stripExt($file)) . '_SET') ?
                    JHtml::_('tooltip', JText::_('INSTL_' . strtoupper($file = JFile::stripExt($file)) . '_SET_DESC'), '', '',
                        JText::_('INSTL_' . ($file = JFile::stripExt($file)) . '_SET')
                    ) : $file
                );
            }
        }
avatar brianteeman
brianteeman - comment - 5 Sep 2014

My mistake - putting the unused language strings back then

On 5 September 2014 12:00, infograf768 notifications@github.com wrote:

Unfortunately that wont work as from what I can tell if the string is
there then the option is there

Weird as it depends on the presence of the file as far as I know. See:

// Build the options list from the list of files.
if (is_array($files))
{
foreach ($files as $file)
{
$options[] = JHtml::('select.option', $file, $lang->hasKey($key = 'INSTL' . ($file = JFile::stripExt($file)) . 'SET') ?
JHtml::
('tooltip', JText::('INSTL' . strtoupper($file = JFile::stripExt($file)) . 'SET_DESC'), '', '',
JText::
('INSTL_' . ($file = JFile::stripExt($file)) . '_SET')
) : $file
);
}
}


Reply to this email directly or view it on GitHub
#4213 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar nicksavov nicksavov - change - 16 Oct 2014
Labels Added: ?
avatar anibalsanchez
anibalsanchez - comment - 17 Oct 2014
avatar waader
waader - comment - 17 Oct 2014

@test I did the same as anibalsanchez and it worked.

One note aside: when I updated this version from J3.3.4-dev to J3.3.7-dev I got this error:
0 Database query failed (error # %s): %s SQL=INSERT INTO "d7rx1_update_sites" ("name", "type", "location", "enabled") VALUES ('Joomla! Update Component Update Site', 'extension', 'http://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1);

avatar waader waader - test_item - 17 Oct 2014 - Tested successfully
avatar brianteeman brianteeman - close - 17 Oct 2014
avatar brianteeman brianteeman - change - 17 Oct 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-10-17 22:30:18

Add a Comment

Login with GitHub to post a comment