Skip to content
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

Merged
merged 1 commit into from
Sep 7, 2021
Merged

Cleanup plans #3419

merged 1 commit into from
Sep 7, 2021

Conversation

csordasmarton
Copy link
Contributor

@csordasmarton csordasmarton commented Sep 2, 2021

  • Manage cleanup plans (create, edit, remove, close, reopen).
  • Assign reports to cleanup plans.
  • Filter reports by cleanup plans.
  • Add functional and e2e test cases.

Screenshots:
image
image

@csordasmarton csordasmarton added this to the release 6.17.0 milestone Sep 2, 2021
@csordasmarton csordasmarton force-pushed the cleanup_plans branch 4 times, most recently from c913701 to 2220d66 Compare September 2, 2021 10:03
web/api/report_server.thrift Outdated Show resolved Hide resolved
throws (1: codechecker_api_shared.RequestFailed requestError),

// Add a new cleanup plan or manage an existing one.
// PERMISSION: PRODUCT_ADMIN
Copy link
Contributor

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?

Copy link
Contributor Author

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',
Copy link
Contributor

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.

Copy link
Contributor Author

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.

web/server/vue-cli/src/assets/userguide/userguide.md Outdated Show resolved Hide resolved
web/server/vue-cli/src/assets/userguide/userguide.md Outdated Show resolved Hide resolved
web/server/vue-cli/src/assets/userguide/userguide.md Outdated Show resolved Hide resolved
@csordasmarton csordasmarton force-pushed the cleanup_plans branch 3 times, most recently from c74d907 to ec66c39 Compare September 7, 2021 06:38
- Manage cleanup plans (create, edit, remove, close, reopen).
- Assign reports to cleanup plans.
- Filter reports by cleanup plans.
- Add functional and e2e test cases.
@bruntib bruntib merged commit 0eee1df into Ericsson:master Sep 7, 2021
@csordasmarton csordasmarton deleted the cleanup_plans branch January 28, 2022 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants