-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Merges main-overview
module with control-planes
module
#1743
Conversation
✅ Deploy Preview for kuma-gui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inlines:
c025910
to
e0ef00e
Compare
main-overview
module with control-planes
modulesmain-overview
module with control-planes
module
264b1af
to
a691d9b
Compare
Signed-off-by: John Cowen <[email protected]>
a691d9b
to
a434c86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mostly looks good to me.
There is one thing that I want to address here: I don’t want to keep naming files IndexView.vue
. I mentioned multiple times how this impacted my ability to find where stuff is in the code base significantly.
Please stick to the pretty well-established pattern to include the module name in one form or another (e.g. ControlPlaneDetailView.vue).
Just to link to a previous conversation in a feature PR where this came up, it also came up offline previous to that (which is also mentioned in that PR) Just to note this is a refactoring PR, specifically about renaming things to our newer style, although granted not specifically about the names of #1682 decided not to follow the naming convention of the Here is a screengrab of my editor now: Note from #1682 I've no idea what the extension is on the Here's a screengrab of the the I still find it really hard to look at that screengrab, so I'm really glad I changed it. Both of the above screengrabs show how redundant it is to prefix every file within a folder with the same name of the folder. Could I widen the sidebar in my editor? Of course I can, but its an extra thing to keep having to do, but I could. Pretty sure I can't on GH though. Would widening my editor sidebar it make that last screengrab any easier to parse quickly, I'd say no. On the other hand, in our past conversations you've pointed out that you have found it hard to find the files in your fuzzy finder with these shortened file names, although I did point out that as the fuzzy finder will also use the name of the folder in its search, there should be no real difference and I didn't get any response back from you on that, so I kinda assumed that was problem solved.
The technical fact there is that is that
I wouldn't call After all that being said I'd be fine to change this to use Let me know either way and we can either move on here, or I can change the name, move this to a MADR around the value of namespaces and then either change it back or leave as is depending on the outcome of that. |
Your arguments for why you prefer the index-style file names seem to be:
Point 1 is something that’s not impacted by different file names so it doesn’t matter if the file is called IndexView or ZoneListView Point 2 is something that you control. You can configure your editor to show file names longer than X characters adequately. In the GitHub UI for diffs, there are always multiple places to see the file name, so should it be cut-off in some cases, it won’t prevent you from identifying what the file is about. Point 3 is only really true in the most literal sense of being able to read and parse fewer characters more quickly. But really, a name IndexView that appears perhaps dozens of times in a code base is so much less clear than a name ZoneListView that appears once. Plus ZoneListView has the advantage that you don’t need to look at anything else to know what this file is. Also, I very much understand that it’s possible to identify an IndexView file in purpose by looking at its containing directory and path. My point is that I shouldn’t need to look at both. Identifying files by name is easy and I don’t want to change this habit unnecessarily. File names are commonly emphasized in UIs like project-wide full-text search and command palettes. File names should be the primary identifier of the file. That also makes it much easier to move it around because moving it around shouldn’t change the meaning of its contents. I’m going to write an MADR for this. For now, there is no action needed here. |
Sounds good! Do you want me to change the name so we can merge in the meantime, or shall we wait for the MADR? I'd prefer to change the name to here Let me know, Im good either way. Separately, ping me when that MADR is there 👍 |
We should generally not wait for an MADR in already on-going work so we can take our time with it. |
Ok lemme change the name here so we can merge. Just in case apart from that it sounded like the rest was good to go? Shout me if there was anything else here, otherwise I'll ping you when I've changed up the name. |
Signed-off-by: John Cowen <[email protected]>
We've been chatting for a while about moving
main-overview
to be calledcontrol-planes
, and now felt like the first good opportunity to do it.This PR merges
main-overview
module withcontrol-planes
module, so amain-overview
module no longer exists.Notes:
control-planes
module is already being added inmain.ts
MainOverview
component (nowControlPlaneStatus
) to no longer be injected via the@/components/index
file. Eventually this file will cease to exist.main-overview
as yet, I'll do that in a follow up.There were a couple of "while I was here" things, that I'll note inline.