Add test for ExtendCommentTreePathLength migration and fix bugs#35791
Conversation
|
v322 only calls |
|
@wxiaoguang I did not write this with AI. I was just looking at the migrations and saw that we have test for v321 which is using |
|
Thank you for the PR, it just reads like some similar PRs I have read 🤣 Could you elaborate why you started the PR? Since I don't think it's necessary to test a framework function. For example: we don't test the file content after we call |
|
I agree with your point about not testing framework functions. But v321_test.go exists and also tests |
|
Maybe some people just copied&pasted code at that time .... and actually Anyway, I am neutral for such tests. So either is fine to me. |
|
v321 exists due to another reason:
So its test makes sure "LONGTEXT JSON" works. |
|
Thanks for the explanation @wxiaoguang. Should I close this pr as we don't need to test framework functions. Learned a lot in the process though. |
|
Or I think we can keep it, and by the way fix the bug in v321_test ? Actually I found a new bug: the v323 should be in v1_26 package because it (#32751) doesn't belong to 1.25 I can also help if there is anything unclear. |
|
Yes I will fix the issues. Can you please explain what needs to be fixed in v321_test. You mentioned it |
|
v321_test: the
No to the |
|
Got it. Will push the fix shortly |
|
@wxiaoguang pushed the fix for |
|
Thank you very much. I will make some more changes to address "Actually I found a new bug: the v323 should be in v1_26 package" |
|
Made some more changes:
|
* giteaofficial/main: Add cache to container build (go-gitea#35697) Revert gomail to v0.7.0 to fix sending mail failed (go-gitea#35816) Fix circular spin animation direction (go-gitea#35785) Fix clone mixed bug (go-gitea#35810) [skip ci] Updated translations via Crowdin Remove unnecessary function parameter (go-gitea#35765) Fix cli "Before" handling (go-gitea#35797) Add test for ExtendCommentTreePathLength migration and fix bugs (go-gitea#35791) Fix file extension on gogs.png (go-gitea#35793) Improve and fix markup code preview rendering (go-gitea#35777)
No description provided.