Do people bother marking the original file when they add a replacement one to the override folder

Open to all! Ask other shopowners for help.
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Do people bother marking the original file when they add a replacement one to the override folder

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Do people bother marking the original file when they add a replacement one to the override folder

Post 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?
I am not here to build for you.
I am here to build with you. Let's help each other.
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Do people bother marking the original file when they add a replacement one to the override folder

Post 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.
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: Do people bother marking the original file when they add a replacement one to the override folder

Post by Omar_one »

I used to record every code changing by one of @burt addons app.php/addons/supporters_code/s04e11_admin_comments
Dan Cole
Senior Contributor
Posts: 498
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 times

Re: Do people bother marking the original file when they add a replacement one to the override folder

Post 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
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Do people bother marking the original file when they add a replacement one to the override folder

Post 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.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Do people bother marking the original file when they add a replacement one to the override folder

Post 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!
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Has thanked: 93 times
Been thanked: 162 times

Re: Do people bother marking the original file when they add a replacement one to the override folder

Post by zipurman »

The core compare tool also helps to identify changes to you core store.

app.php/addons/free_addon/core_compare_tool/
zipurman
-----------
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Do people bother marking the original file when they add a replacement one to the override folder

Post by 14Steve14 »

zipurman wrote: Thu Sep 05, 2024 5:41 am The core compare tool also helps to identify changes to you core store.

app.php/addons/free_addon/core_compare_tool/
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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply