Remove issue code from the gitlab-bitbucket gem
What does this MR do and why?
The importer no longer imports issues, so nothing calls the issue code in the gitlab-bitbucket gem. This MR deletes it.
Bitbucket::Client#issues,#issue_comments,#last_issueand#issues_available?are gone, along with the:issuescase in#fetch_data.Bitbucket::Representation::IssueandRepresentation::Repo#issues_enabled?are gone.Representation::Repo#has_wiki?is gone too. Nothing has called it since !261295 (merged) removed the wiki import.get_response_codeis removed fromConnection,ApiConnectionandOauthConnection. Its only caller was#issues_available?.- The README table and the matching specs are updated.
Representation::Comment stays, because PullRequestComment inherits from it.
Stacked on !263132 (merged)
This MR is stacked on !263132 (merged), which stops the importer from calling these methods, so it targets that MR's branch. I'm keeping it as Draft until that one merges. Merging this first would only add these commits to the other MR. Once that MR merges and its branch is deleted, GitLab should retarget this one to master.
Testing
In gems/gitlab-bitbucket, bundle exec rspec passes (168 examples) and bundle exec rubocop finds nothing. In the monolith, these specs pass (349 examples, 0 failures, 2 pending): the Bitbucket importer lib and worker specs, the client factory spec, the import controller spec and the import API spec. Real Bitbucket Cloud imports on a GDK also finished with this branch checked out. The details are in the local testing section of !263132 (merged).
References
- #601064 (closed)
- Stops the issue import: !263132 (merged)
- Removes the wiki import code: !261295 (merged)
Screenshots or screen recordings
No UI changes.
How to set up and validate locally
-
Run the gem specs and linter:
cd gems/gitlab-bitbucket bundle exec rspec bundle exec rubocop -
Check that nothing still references the removed code:
git grep -nE "issues_available|last_issue|issue_comments|issues_enabled|has_wiki|get_response_code|Representation::Issue"The command prints nothing.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.