-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Agree definition of done for view_component migrations and set up code base for work to begin #2641
Comments
@lenikadali - i thought would be a good idea to hash this out totally before we start moving stuff, what do you think? |
@kimadactyl I think this is a great idea. Will follow up on Discord 😇 |
Another thought: given this is a really short template maybe we should consider having it inline in the model file, and set a guideline for when to do inline and when to break out into a folder? Unless we want to be completely consistent there too? |
It looks like the official reccomendation is now to not have a component suffix but not to sweat it too much - so given we are taking it from the top i suggest we remove it? https://viewcomponent.org/adrs/0002-naming-conventions-for-view-components.html |
Sample codebase I looked at in my research was the RailsDevs codebase. I would stick to what |
Updated following discord conversation and now locked in i think! |
Updated following final decision in Discord to have components in root folder. |
Do you wanna take on this one next @lenikadali? Hopefully after that these can go a lot faster :D |
Not sure what the outcome of this ticket should be. My understanding is that between the comments in the first PR for this issue, we've more or less agreed that definition of done is:
Let me know if I've left something out 😇 |
Oh just thought there could be a PR template specifically for these checkboxes that was all! Maybe overkill? So a "New or updated component" PR template |
Ah... I see what you mean 🙂 We can look into how to handle having multiple PR templates and how each gets triggered depending on the issue? It may be overkill but the migration issue has a lot of detail that is easy to overlook. Alternatively the issue can be converted into an epic and then when migrating a particular component, the developer makes both the issue and the PR. From what I can see, hovering over the checkboxes for the different components shows the option to convert to an issue (have done it as a test here). So the next step would be to update it with all the detail concerning this particular component's migration and then it should be ready to work on. What do you think? |
Oh I assumed it'd be like issues, that we can have multiple templates (like feature/bug/tech debt we have now) but I guess it's not quite that simple for PRs, hmm! Yes I think this is a really nice to have and it'll speed up the process a lot. I think the PR makes more sense to have this checklist than the issues now we've agreed the steps! A quick google indicates this should be possible but maybe with some faff :D tl;dr: issue templates and PR templates are different but i think we should have a PR template if its possible 🙏 |
Cool. Will take a look and see if I can open an PR for this. |
I slept on this and realized that for this type of thing, we don't need a PR template. PR templates are used when different parts of the code require different considerations of both reviewer and implementer. As the example from GitLab shows, each PR template can be mapped to a particular type of recurring chore/fix/feature that happens in a given codebase. For the migration from Will use the issue for the |
ok great. so maybe better we put component guidelines up as part of #2551 then? |
Yes that would make sense. I'll open a draft later today that covers what we've agreed on so far and put it (if it fits 😄) in the |
Cool! Another option could be to chuck an .md file in the Like this one: https://github.com/geeksforsocialchange/PlaceCal/blob/main/app/jobs/creating_an_importer.md |
That should work 🙌 |
PR for component guidelines is here |
User story
As a developer I want a clear definition of done for migrating to view_component so that everything is then completely standardised.
Acceptance criteria (WIP)
_component
suffix/app/components/...
Implementation notes & questions
_component
suffix on all of these? Without is neater, with is more explicitImplementation plan
To be written by the developer
Huly®: PC-2646
The text was updated successfully, but these errors were encountered: