Page 1 of 2
Do people bother marking the original file when they add a replacement one to the override folder
Posted: Fri Aug 30, 2024 3:16 pm
by 14Steve14
Title says is all really. Do people bother marking the original file when they add a replacement one in the override folder. If not how do people remember whether they have over ridden a file.
I try to keep a list bit have thought that marking the original file in some way may make things easier as its a pain remembering what file shave been worked on.
Just wondering what others do.
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Fri Aug 30, 2024 3:24 pm
by burt
I just have a quick look in the overrides folder to see if there are any files in there...
-
It may be a good idea to put a marker at the top of each file in there?
Something like in (eg) /includes/system/overrides/xyz.php
// this file overrides /includes/system/versioned/{whatever eg 1.0.8.20}/xyz.php
Or keep a spreadsheet/list of the same info?
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Fri Aug 30, 2024 3:30 pm
by heatherbell
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Fri Aug 30, 2024 5:31 pm
by 14Steve14
Thanks for the replies so far.
I currently keep what I think are good records but today was trying to change some text and obviously had a problem. Looked through my list and could not find any reference to the file I was trying to change. Looked in the override file and found something there that had been changed by an addon that I missed.
I may mark both the original file which is possible where I would look first, and also mark the override file as Gary suggests saying why it is overridden. Its a bit more work, but would save time in the long run, and may make any future updates easier.
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Fri Aug 30, 2024 6:37 pm
by Omar_one
I used to record every code changing by one of
@burt addons
app.php/addons/supporters_code/s04e11_admin_comments
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Sat Aug 31, 2024 3:03 pm
by Dan Cole
When I land in a fairly complete place I was planning on using this addon by Zipurman to make a note of all the changes. I haven't tried it yet so I don't know how suitable it is but looks like an easy way to do what you want.
app.php/addons/free_addon/core_compare_tool/
Dan
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Tue Sep 03, 2024 8:51 am
by 14Steve14
I have decided to keep adding notes into my Onenote app as its possible to create new pages for each page alerted. , even if I have forgot to add a few.
Now the site is live live I am going to add a comment to every file that has been overwritten, and the new override file. That way I should cover all bases and know which files are over written and which bits of code have been changed in the over write file.
Hopefully that should make any updates easier should I need to compare files. It may be the long way of doing it, but I think it will work.
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Tue Sep 03, 2024 9:45 am
by heatherbell
We use a spreadsheet that lists all files that have either been overridden or changed by us or 3rd Party Addons. Searching the spreadsheet is easy.
It is also has a ChangeLog.
To make it easier for Admins, we then hardcoded a button link on the Admin Dash to go directly to that spreadsheet.
That said, it all still relies on humans!
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Thu Sep 05, 2024 5:41 am
by zipurman
The core compare tool also helps to identify changes to you core store.
app.php/addons/free_addon/core_compare_tool/
Re: Do people bother marking the original file when they add a replacement one to the override folder
Posted: Thu Sep 05, 2024 7:59 am
by 14Steve14
Hi Preston.
Does the core compare tool actually compare files in live time. So if I were to edit and then save a file in the original folder, would core compare notify me that there is an updated file in the override file when I save the original updated file, or is that not what it does.