? Success

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
15 May 2017

Pull Request for Issue #15961

Summary of Changes

This now limit the timestamp updates just to the core sample data.

Testing Instructions

Expected result

The core files are uptodate and the 3rd Party files are not.

Actual result

The core and 3rd party files are uptodate.

Documentation Changes Required

It should be noted somewhere that this is only happening now for the core.

avatar zero-24 zero-24 - open - 15 May 2017
avatar zero-24 zero-24 - change - 15 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 May 2017
Category Installation
avatar brianteeman
brianteeman - comment - 15 May 2017

It should be noted somewhere that this is only happening now for the core.

To be more accurate it should be noted that it only happens for sample data with those filenames.

avatar mbabker
mbabker - comment - 15 May 2017

? on principle

We should not be handling data sets differently based on whether it was something we created or something that someone added to the installer through a supported path. So either it should always be updated or never be updated. The argument in that issue is basically "I want what is in the SQL dump to be inserted to the database with minimal (if any) changes", which is fine, but it should also be consistent across the board.

avatar zero-24
zero-24 - comment - 15 May 2017

which is fine, but it should also be consistent across the board.

any suggestions on how to handle that than?

avatar mbabker
mbabker - comment - 15 May 2017

Either we close the other issue as expected behavior or we change the installer to not change the timestamps. Either way it should be consistent, this introduces inconsistency.

avatar zero-24
zero-24 - comment - 15 May 2017

Either we close the other issue as expected behavior or we change the installer to not change the timestamps.

What do you think about some kind of flag system? But i guess this is just to overcomplicated

avatar Bakual
Bakual - comment - 15 May 2017

If we change the sampledata to something I proposed in #7680, then that issue would be gone as the created date would be the date the user installs the sample data set.
Maybe that helps :)

avatar brianteeman
brianteeman - comment - 15 May 2017

@Bakual it wont address the problem as the tempalte club apparently wants to keep the dates that are in the sql unoutched

avatar Bakual
Bakual - comment - 15 May 2017

I guess it would be possible as well since the respective plugin would be responsible for inserting the data. If it's done by a direct query or using models wouldn't matter.

avatar hendrikbehncke
hendrikbehncke - comment - 16 May 2017

This PR is what was in my mind. I see the point with inconsistency, but from my point of view there is already (some kind of) inconsistency in excluding 'sample_testing.sql'.
Maybe not updating the timestamps during installation at all but updating the sql files is the correct way then? As brianteeman said, we need to keep the dates provided in the sql file.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 May 2017

@zero-24 installed just_change_core_sampledata.zip, dates are updated. Where to find "… sql update file (to be provided by @hendrikbehncke) …"?

avatar brianteeman
brianteeman - comment - 22 May 2017

Why not simply update the dates in our sql to 2017 and then remove the code that did the magic to change the sql on install to today

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 May 2017
Status Pending Information Required
avatar alikon
alikon - comment - 22 May 2017

i'd prefer to go with #7680 even if it have a 3.8 milestone

avatar brianteeman
brianteeman - comment - 13 Aug 2017

as #7680 has now been merged is this PR still valid?

avatar zero-24 zero-24 - change - 14 Aug 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-08-14 05:34:26
Closed_By zero-24
avatar zero-24 zero-24 - close - 14 Aug 2017

Add a Comment

Login with GitHub to post a comment