gitea
gitea copied to clipboard
Rename project board -> column to make the UI less confusing
This PR split the Board into two parts. One is the struct has been renamed to Column and the second we have a Template Type.
But to make it easier to review, this PR will not change the database schemas, they are just renames. The database schema changes could be in future PRs.
You stole my PR idea!!! 🤣 Will review later today. This has to be done carefully to avoid breaking templates for example.
Do we need any renames on the templates and UI parts?
IIRC, the router also used Boards, so it should also be present in the template. Same for corresponding JS code. I can't check currently, but I will later today
Definitly should do it all at once, not just backend only.
I would suggest do not merge it until 1.22.1 or 1.22.2, otherwise any bug fix would be difficult to backport
I would suggest do not merge it until 1.22.1 or 1.22.2, otherwise any bug fix would be difficult to backport
I disagree. Now is the best time for big refactors. And if those refactors are well-tested, they should be backported as well to enable future backports to be automatic.
And if those refactors are well-tested
The problem is, I didn't see how "those refactors are well-tested"
It's just a rename refactoring. We need to be careful of struct methods or form fields which may be used in the template.
Do we need renaming board in docs?
It seems that this is not used in DB. 🤔
In locale:
template:
css:
js:
I can check the frontend parts.
I can check the frontend parts.
Thank you. And I think we should rename board -> column but still keep board view. Because we will have table view in future like what GH did.
Looks like most frontend board usages are right.
data-id="{{.ID}}" resolves to incorrect board_3. I don't think it's in use in frontend, so maybe it could be changed to just a number.
JS and CSS look good to me. There is simplication possible like removing the board class but I will not do that in this PR.
https://github.com/go-gitea/gitea/pull/30170/files#diff-f4279417070a8e33829c338abeb42877500377f490abb1495ae6357d50b6a765R46
plz check all locale
It has been changed:
Quote my comments above:
I would suggest do not merge it until 1.22.1 or 1.22.2, otherwise any bug fix would be difficult to backport
At least, wait for 1.22.0 to be stable.
And if those refactors are well-tested
The problem is, I didn't see how "those refactors are well-tested"
How to prove it is well-tested?
Quote my comments above:
I would suggest do not merge it until 1.22.1 or 1.22.2, otherwise any bug fix would be difficult to backport
At least, wait for 1.22.0 to be stable.
And if those refactors are well-tested
The problem is, I didn't see how "those refactors are well-tested"
How to prove it is well-tested?
This is just a rename refactor, it will not change the previous logic. So I think the previous tests will still work if they exist. I don't know how should we add tests for the renaming behavior.
This is just a rename refactor, it will not change the previous logic. So I think the previous tests will still work if they exist. I don't know how should we add tests for the renaming behavior.
It doesn't seem to be as simple as a renaming refactor. There are many "names" passed by string, no strict code check, and I guess there were some conflicts resolved manually.
So at least, I think every changed route handler and page should be tested manually?