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

transaction_callbacks: Deprecate confusing alias #1689

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Sep 11, 2024

Given that there is another TransactionItem class in
libdnf5::transaction namespace, the alias libnf5::rpm::TransactionItem ->
libdnf5::base::TransactionPackage is confusing and does not add any
value to the user.
This patch deprecates it and uses directly TransactionPackage in all
places.

@ppisar ppisar self-assigned this Sep 12, 2024
Copy link
Contributor

@ppisar ppisar left a comment

Choose a reason for hiding this comment

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

Looks good. It preserves API and ABI.
The test failures are probably caused by toml11 (#1693).

I have only one request: Could you make the commit title more concrete? E.g. "transaction_callbacks: Deprecate libdnf5::rpm::TransactionItem alias". Those titles go into release notes.

Given that there is another TransactionItem class in
libdnf5::transaction namespace, the alias libnf5::rpm::TransactionItem ->
libdnf5::base::TransactionPackage is confusing and does not add any
value to the user.
This patch deprecates it and uses directly TransactionPackage in all
places.
@m-blaha
Copy link
Member Author

m-blaha commented Sep 12, 2024

Looks good. It preserves API and ABI. The test failures are probably caused by toml11 (#1693).

I have only one request: Could you make the commit title more concrete? E.g. "transaction_callbacks: Deprecate libdnf5::rpm::TransactionItem alias". Those titles go into release notes.

Thanks, changed.

@ppisar ppisar added this pull request to the merge queue Sep 13, 2024
Merged via the queue into main with commit cb76d52 Sep 13, 2024
12 of 20 checks passed
@ppisar ppisar deleted the mblaha/callbacks-alias branch September 13, 2024 07:17
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.

2 participants