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

Refactored ListUnitsRequest and ListUnitFilesRequest #923

Merged

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Aug 9, 2024

Relates to: #889

The structs and functions used for ListUnits and ListUnitFiles are identical for the most part. In order to reduce code duplication, the implementation for both have been combined into a single struct with unified functions. This should also allow for additional, similar features in the future.

@engelmi
Copy link
Member Author

engelmi commented Aug 9, 2024

/cc @trev-allison03

@coveralls
Copy link

coveralls commented Aug 9, 2024

Coverage Status

coverage: 84.717% (-0.05%) from 84.765%
when pulling 6e23e2d on engelmi:refactor-list-units-and-list-unit-files
into 30ae91c on eclipse-bluechi:main.

@engelmi engelmi force-pushed the refactor-list-units-and-list-unit-files branch 2 times, most recently from e549c2a to 151a391 Compare August 9, 2024 14:31
Relates to: eclipse-bluechi#889

The structs and functions used for ListUnits and ListUnitFiles are
identical for the most part. In order to reduce code duplication, the
implementation for both have been combined into a single struct with
unified functions. This should also allow for additional, similar features
in the future.

Signed-off-by: Michael Engel <[email protected]>
Signed-off-by: Michael Engel <[email protected]>
In the new build-base image, a newer clang version with an updated
set of checks is detecting issues. The issues
- bugprone-multi-level-implicit-pointerconversion
- cppcoreguidelines-macro-to-enum
have been added to the ignore list while others have been fixed.

Signed-off-by: Michael Engel <[email protected]>
@engelmi engelmi force-pushed the refactor-list-units-and-list-unit-files branch from 151a391 to 6e23e2d Compare August 9, 2024 14:49
Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@engelmi engelmi merged commit 2e8d273 into eclipse-bluechi:main Aug 12, 2024
22 checks passed
@engelmi engelmi mentioned this pull request Aug 13, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants