-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Optimize the ui for edit project-column and fix project-column-issue disappear #27718
Conversation
The reason is I misspell |
…column when edit color && fix bugs caused by eb14787
5f8d624
to
0346a4b
Compare
ok, I've undo the changes to this part of the code |
See #27718 (comment) . Add a test to ensure its behavior. Why this test uses `ProjectBoardID=0`? Because in `SearchOptions`, `ProjectBoardID=0` means what it is. But in `IssueOptions`, `ProjectBoardID=0` means there is no condition, and `ProjectBoardID=db.NoConditionID` means the board ID = 0. It's really confusing. Probably it's better to separate the db search engine and the other issue search code. It's really two different systems. As far as I can see, `IssueOptions` is not necessary for most of the code, which has very simple issue search conditions.
I think the background color should still be optional. |
See go-gitea#27718 (comment) . Add a test to ensure its behavior. Why this test uses `ProjectBoardID=0`? Because in `SearchOptions`, `ProjectBoardID=0` means what it is. But in `IssueOptions`, `ProjectBoardID=0` means there is no condition, and `ProjectBoardID=db.NoConditionID` means the board ID = 0. It's really confusing. Probably it's better to separate the db search engine and the other issue search code. It's really two different systems. As far as I can see, `IssueOptions` is not necessary for most of the code, which has very simple issue search conditions.
See go-gitea#27718 (comment) . Add a test to ensure its behavior. Why this test uses `ProjectBoardID=0`? Because in `SearchOptions`, `ProjectBoardID=0` means what it is. But in `IssueOptions`, `ProjectBoardID=0` means there is no condition, and `ProjectBoardID=db.NoConditionID` means the board ID = 0. It's really confusing. Probably it's better to separate the db search engine and the other issue search code. It's really two different systems. As far as I can see, `IssueOptions` is not necessary for most of the code, which has very simple issue search conditions.
The related problems should have been fixed/improved by some recent changes. |
fix: #27672
![image](https://private-user-images.githubusercontent.com/45022150/277090330-c39b600a-ff80-4821-a34c-0f7ad6669e2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MjEwNTEsIm5iZiI6MTczOTkyMDc1MSwicGF0aCI6Ii80NTAyMjE1MC8yNzcwOTAzMzAtYzM5YjYwMGEtZmY4MC00ODIxLWEzNGMtMGY3YWQ2NjY5ZTJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDIzMTkxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkYzk2ODRiOWI4NzA5NjEyODFjNTUwNDg2ODRiZjkwOTI1NzA3MGYyYTM4YTE3N2NiYWE2YWU5NzdjYmYwMTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.DML2b2LaPQnx4hpr3zCZuPg7kP8J6gCBUDIqGOxovZg)
branch:main
modification:
desc:
checkout version: cab7b7f before #27705
![image](https://private-user-images.githubusercontent.com/45022150/277090758-fb791912-226f-47c7-ae97-57abdcb8ce38.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MjEwNTEsIm5iZiI6MTczOTkyMDc1MSwicGF0aCI6Ii80NTAyMjE1MC8yNzcwOTA3NTgtZmI3OTE5MTItMjI2Zi00N2M3LWFlOTctNTdhYmRjYjhjZTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDIzMTkxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0NThiNjFlZTFmNGE2NjQzZmYxZTA2MjhiMzAzODMyNTYxMTBmOWFjNGZiYmRiYjFjYWRjOGI4MDMwYjRiYjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4EBhVeu9OLGlB2pTTYAQD7YKKV6GcLlAc1f3Vwh88Ck)
checkout version: eb14787
![image](https://private-user-images.githubusercontent.com/45022150/277090786-d88f9635-5503-4233-87c6-b760a09aa476.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MjEwNTEsIm5iZiI6MTczOTkyMDc1MSwicGF0aCI6Ii80NTAyMjE1MC8yNzcwOTA3ODYtZDg4Zjk2MzUtNTUwMy00MjMzLTg3YzYtYjc2MGEwOWFhNDc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDIzMTkxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2ZDJjNzgwOWE1YTdkOGM4OTdhMDFjNThkMzg5NWRjZjNkY2VjZjIyMDU3ZDg3NWRhMzUxOTQxZGJkOGZjMTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.A63Y8p1a1jE18a58cYq7b01QW_5vJpFzU3ne5_83L3g)
This change caused the issue list to disappear