User tests: Successful: Unsuccessful:
Pull Request for Issue #15961
This now limit the timestamp updates just to the core sample data.
The core files are uptodate and the 3rd Party files are not.
The core and 3rd party files are uptodate.
It should be noted somewhere that this is only happening now for the core.
Status | New | ⇒ | Pending |
Category | ⇒ | Installation |
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.
which is fine, but it should also be consistent across the board.
any suggestions on how to handle that than?
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.
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
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.
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.
@zero-24 installed just_change_core_sampledata.zip, dates are updated. Where to find "… sql update file (to be provided by @hendrikbehncke) …"?
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
Status | Pending | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-14 05:34:26 |
Closed_By | ⇒ | zero-24 |
To be more accurate it should be noted that it only happens for sample data with those filenames.