Skip to content

Rename enable_repo/disable_repo package manager methods#4936

Open
happz wants to merge 4 commits into
mainfrom
rename-enable-disable-repo
Open

Rename enable_repo/disable_repo package manager methods#4936
happz wants to merge 4 commits into
mainfrom
rename-enable-disable-repo

Conversation

@happz
Copy link
Copy Markdown
Contributor

@happz happz commented May 28, 2026

We already have install_repository, create_repository, let's follow the full-name suite.

Pull Request Checklist

  • implement the feature

@happz happz added this to planning May 28, 2026
@happz happz added code | no functional change "No Functional Change" intended. Patch should not change tmt's behavior in any way. ci | full test Pull request is ready for the full test execution labels May 28, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning May 28, 2026
@happz happz moved this from backlog to review in planning May 28, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request renames enable_repo and disable_repo to enable_repository and disable_repository across various package manager classes. Rename the remaining enable_repo and disable_repo methods in PackageManager and its subclasses to complete the renaming and maintain consistency.

Comment thread tmt/package_managers/__init__.py
Comment thread tmt/package_managers/__init__.py Outdated
self.guest.execute(self.engine.enable_repo(*repo_ids))
self.guest.execute(self.engine.enable_repository(*repo_ids))

def disable_repo(self, *repo_ids: str) -> None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this should be renamed as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Renamed in e39e699.

vaibhavdaren
vaibhavdaren previously approved these changes Jun 3, 2026
@vaibhavdaren vaibhavdaren dismissed their stale review June 3, 2026 09:21

waiting on rename.

happz added 3 commits June 5, 2026 13:49
We already have `install_repository`, `create_repository`, let's follow
the full-name suite.
@happz happz force-pushed the rename-enable-disable-repo branch from c6d12ef to e39e699 Compare June 5, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci | full test Pull request is ready for the full test execution code | no functional change "No Functional Change" intended. Patch should not change tmt's behavior in any way.

Projects

Status: review

Development

Successfully merging this pull request may close these issues.

3 participants