-
Notifications
You must be signed in to change notification settings - Fork 383
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
Cleanup plans #3419
Cleanup plans #3419
Conversation
c913701
to
2220d66
Compare
throws (1: codechecker_api_shared.RequestFailed requestError), | ||
|
||
// Add a new cleanup plan or manage an existing one. | ||
// PERMISSION: PRODUCT_ADMIN |
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.
Is it a conceptual thing that only admins can add new cleanup plans? Is it intentional that we don't want to bind it to PRODUCT_STORE
?
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.
For now it will work the same way as source components, so only admins will be allowed to manage cleanup plans.
|
||
cleanup_plan_name = Column( | ||
Integer, | ||
ForeignKey('cleanup_plans.name', |
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.
Is it worth using a string as primary key? I mean using this column as foreign key for joining a table may unnecessarily increase database size. Probably this is not a huge date compared to other tables, still this could be some easy save.
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.
I changed the database schema to use an id primary column. I also refactored the API functions to use id instead of name parameter.
c74d907
to
ec66c39
Compare
- Manage cleanup plans (create, edit, remove, close, reopen). - Assign reports to cleanup plans. - Filter reports by cleanup plans. - Add functional and e2e test cases.
ec66c39
to
509f05e
Compare
Screenshots: