Skip to content

Revert "Add API integration to fetch blocked versions at job construction"#15120

Merged
robaiken merged 1 commit into
mainfrom
revert-14917-kbukum1/add-blocked-versions-api-integration
May 22, 2026
Merged

Revert "Add API integration to fetch blocked versions at job construction"#15120
robaiken merged 1 commit into
mainfrom
revert-14917-kbukum1/add-blocked-versions-api-integration

Conversation

@robaiken
Copy link
Copy Markdown
Contributor

Reverts #14917

@robaiken robaiken marked this pull request as ready for review May 22, 2026 17:57
@robaiken robaiken requested a review from a team as a code owner May 22, 2026 17:57
Copilot AI review requested due to automatic review settings May 22, 2026 17:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts the previously added updater-side API integration that fetched “blocked versions” during job construction, returning job creation to using the raw Environment.job_definition and removing the corresponding API client surface area/spec coverage.

Changes:

  • Remove job-construction-time fetch_blocked_versions behavior from UpdateFilesCommand and drop the ApiClient#fetch_blocked_versions implementation/specs.
  • Update blocked-versions payload shape in the updater to use "version" (instead of "version-requirement") and adjust specs/dry-run output accordingly.
  • Remove Service delegation and specs tied to the removed blocked-versions API call.
Show a summary per file
File Description
updater/lib/dependabot/update_files_command.rb Reverts job construction to use Environment.job_definition without blocked-versions API injection.
updater/lib/dependabot/api_client.rb Removes the fetch_blocked_versions API call implementation.
updater/lib/dependabot/service.rb Removes delegation of fetch_blocked_versions to the client.
updater/lib/dependabot/job.rb Switches blocked-versions entry parsing/logging to use "version" key.
updater/spec/dependabot/update_files_command_spec.rb Removes specs for blocked-versions injection at job construction.
updater/spec/dependabot/api_client_spec.rb Removes specs for fetch_blocked_versions.
updater/spec/dependabot/job_spec.rb Updates blocked-versions specs to the "version" key.
bin/dry-run.rb Updates blocked-versions env example/output and filtering to use "version".

Copilot's findings

  • Files reviewed: 7/8 changed files
  • Comments generated: 1

Comment on lines 492 to 496
def blocked_versions_for(dependency)
matching_blocked_entries(dependency).filter_map do |bv|
req = bv["version-requirement"].strip
req.empty? ? nil : req
version = bv["version"].strip
version.empty? ? nil : version
end
@robaiken robaiken merged commit df981ab into main May 22, 2026
214 of 218 checks passed
@robaiken robaiken deleted the revert-14917-kbukum1/add-blocked-versions-api-integration branch May 22, 2026 18:10
@kbukum1 kbukum1 restored the revert-14917-kbukum1/add-blocked-versions-api-integration branch May 22, 2026 19:47
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