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

Metadata API: Remove Signed.bump_version() method #1740

Merged

Conversation

lukpueh
Copy link
Member

@lukpueh lukpueh commented Dec 21, 2021

Related to #1736 (see #1736 (review))

Description of the changes being introduced by the pull request:

Remove bump_version() method, which is just an alias for "+= 1" on the version attribute. For a slim low-level API it seems okay to just directly access/modify the attribute.

The extra level of abstraction of "bumping a version" is more appropriate for a repository library (see #1136).

This patch also removes a related unit test and updates another one to directly do (...).version += 1.

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

@coveralls
Copy link

coveralls commented Dec 21, 2021

Pull Request Test Coverage Report for Build 1681854029

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.0008%) to 97.736%

Totals Coverage Status
Change from base Build 1681817669: -0.0008%
Covered Lines: 4090
Relevant Lines: 4169

💛 - Coveralls

Copy link
Collaborator

@MVrachev MVrachev left a comment

Choose a reason for hiding this comment

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

LGTM!

Remove `bump_version()` method, which is just an alias for "+= 1"
on the version attribute. For a slim low-level API it seems okay to
just directly access/modify the attribute.

The extra level of abstraction of "bumping a version" is more
appropriate for a repository library (see theupdateframework#1136).

This patch also removes a related unit test and updates another one
to directly do `(...).version +=`.

Signed-off-by: Lukas Puehringer <[email protected]>
@lukpueh lukpueh force-pushed the rm-metadata-api-bump_version branch from a0972b6 to 8620f38 Compare January 11, 2022 09:57
@lukpueh
Copy link
Member Author

lukpueh commented Jan 11, 2022

Thanks for the reviews!

@lukpueh lukpueh merged commit 3766903 into theupdateframework:develop Jan 11, 2022
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.

4 participants