Multiple times I changed “Action Steps” in the wrong “Server Action” so my modification or working page is gone. Now I try to find in which Pages these Server Actions were used. Takes me alot of time to “Reverse Engineer” why my working page isnt working anymore. How you handle that so you don’t change Server Actions for the wrong file? Hope you understand what I mean. Is there any possibility to see which “Action Steps” are glued to which pages?
How do you handle ServerActions and your Pages, I mean which logic do you use?
there is no such thing unfortunately
i wish the team come with a solution for this. since its really hard to manage the project when it increase in size.
that’s not that great with many server actions. where i have to go to every page and check if i used that server action there.
it will be better (for example) if you could see a list of pages where this server action is on.
I have to admit, even i can get quite confused from time to time, and its not like you can just rename them all that easily without going through the file structure, so my suggestion would be to add in one more area called INTERNAL NOTES, in this area you can type whatever you like, such as used on Page x, y, z. Or a long description or something. It will make it so much easier when you go back to a project a year later if there were some notes, just like commenting does for us.
If you store your action files in properly named and structured folders I don’t think there would be any confusion.
For example, you won’t expect to to find a server action for user registration which is located here:
/uploads/gallery/imageUploadInsert.php
I don’t really see any issues the way action files work. It all depends on your own files organization/structure.
Well, that’s what I said it all depends on how you name and store your server actions
If you organize your files properly and following a certain logic you won’t have issues.
Youre right with that and thats also the way im working: FileNaming and Folderstructure.
But as you can mess your whole project with changing the wrong Serveraction located in different Files it could get worse. It would be nice to see some depencies
I wouldn’t have thought it likely that an action file name would occur in other contexts. I’ve decided to rename action files quite a few times; finding all references to the file has never struck me as as being been a problem.
That’s true. I rarely use spaces in filenames. Perhaps you can surround the filename with “” when searching. (I’m not in front of a computer at the moment.)
For me, this problem is not identifying which server action goes with which page but sometimes when switching between pages finding the wrong server action is selected and then editing the wrong one! A “lock action file” option would be useful to ensure working server actions don’t accidentally get edited and hence broken.