Skip to content

Remove unused DurationBeforeChangeTierRequestDeletion config#515

Merged
rajivnathan merged 5 commits intocodeready-toolchain:masterfrom
rajivnathan:removeDurationBeforeChangeTierRequestDeletionCmn
Feb 26, 2026
Merged

Remove unused DurationBeforeChangeTierRequestDeletion config#515
rajivnathan merged 5 commits intocodeready-toolchain:masterfrom
rajivnathan:removeDurationBeforeChangeTierRequestDeletionCmn

Conversation

@rajivnathan
Copy link
Contributor

@rajivnathan rajivnathan commented Feb 25, 2026

Related to codeready-toolchain/api#499

Summary by CodeRabbit

  • Chores
    • Bumped a third-party dependency to a newer version.
    • No changes to public interfaces or user workflows; no visible behavior changes for end users.

@coderabbitai
Copy link

coderabbitai bot commented Feb 25, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 96cb490 and 6e5f66b.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod

Walkthrough

The go.mod file's require entry for github.com/codeready-toolchain/api was updated from v0.0.0-20260108115150-4c6695ed18de to v0.0.0-20260226033043-912fcbd23dc7, changing the requested version used during dependency resolution.

Changes

Cohort / File(s) Summary
Module version bump
go.mod
Updated the require entry for github.com/codeready-toolchain/api to v0.0.0-20260226033043-912fcbd23dc7 (version bump, other dependencies unchanged).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main objective: removing an unused configuration named DurationBeforeChangeTierRequestDeletion, which aligns with the PR's core purpose and the single-line code change updating a dependency.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@go.mod`:
- Around line 7-8: Remove the temporary personal-fork replace directive "replace
github.com/codeready-toolchain/api => github.com/rajivnathan/api ..." before
merging; instead wait for the upstream PR codeready-toolchain/api#499 to be
merged and then update the existing require entry for
"github.com/codeready-toolchain/api" (the require on line 31) to the official
new pseudo-version, and delete the replace directive so consumers resolve the
canonical module.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 8f7910f and 5096cff.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • go.mod
  • pkg/test/config/toolchainconfig.go
💤 Files with no reviewable changes (1)
  • pkg/test/config/toolchainconfig.go

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
go.mod (1)

7-8: ⚠️ Potential issue | 🟠 Major

Remove the personal-fork replace before merge.

This still redirects the canonical module to a personal fork, which can unintentionally ship non-official dependency resolution to consumers. Keep this only as a local/dev workaround, not in master.

#!/bin/bash
# Verify the personal-fork replace is gone before merge
rg -nP '^\s*replace\s+github\.com/codeready-toolchain/api\s*=>\s*github\.com/rajivnathan/api' go.mod

# Verify canonical dependency is still explicitly required
rg -nP '^\s*github\.com/codeready-toolchain/api\s+v' go.mod

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@go.mod` around lines 7 - 8, Remove the personal-fork replace directive that
maps github.com/codeready-toolchain/api => github.com/rajivnathan/api in go.mod;
delete the replace line and ensure the canonical module
github.com/codeready-toolchain/api is still present as a required dependency
(keep or add the proper released version) so dependency resolution uses the
official upstream module rather than a personal fork; run `go mod tidy` locally
to update go.sum and verify no remaining replace entries referencing
github.com/rajivnathan/api.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@go.mod`:
- Around line 7-8: Remove the personal-fork replace directive that maps
github.com/codeready-toolchain/api => github.com/rajivnathan/api in go.mod;
delete the replace line and ensure the canonical module
github.com/codeready-toolchain/api is still present as a required dependency
(keep or add the proper released version) so dependency resolution uses the
official upstream module rather than a personal fork; run `go mod tidy` locally
to update go.sum and verify no remaining replace entries referencing
github.com/rajivnathan/api.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 5096cff and 9364d91.

📒 Files selected for processing (1)
  • go.mod

…mon into removeDurationBeforeChangeTierRequestDeletionCmn
…thub.com:rajivnathan/toolchain-common into removeDurationBeforeChangeTierRequestDeletionCmn
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
go.mod (1)

7-7: ⚠️ Potential issue | 🟠 Major

Remove the personal-fork replace before merge.

Line 7 forces all builds to resolve github.com/codeready-toolchain/api from github.com/rajivnathan/api, which is a supply-chain and maintainability risk for master. Keep this only as a local/dev override; for merge, remove the replace and bump the canonical require on Line 31 once upstream is available.

Suggested minimal diff
-replace github.com/codeready-toolchain/api => github.com/rajivnathan/api v0.0.0-20260225164436-80c782ea57de

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@go.mod` at line 7, Remove the temporary go.mod "replace" that points
github.com/codeready-toolchain/api to github.com/rajivnathan/api (the replace
directive added in the diff); keep that override only locally, not in the merge.
After upstream publishes the needed version, delete the replace directive and
update the module's require entry for github.com/codeready-toolchain/api to the
official upstream version (bump the require version currently present) so builds
resolve from the canonical module instead of the personal fork.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@go.mod`:
- Line 7: Remove the temporary go.mod "replace" that points
github.com/codeready-toolchain/api to github.com/rajivnathan/api (the replace
directive added in the diff); keep that override only locally, not in the merge.
After upstream publishes the needed version, delete the replace directive and
update the module's require entry for github.com/codeready-toolchain/api to the
official upstream version (bump the require version currently present) so builds
resolve from the canonical module instead of the personal fork.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 9364d91 and 96cb490.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod

@sonarqubecloud
Copy link

@rajivnathan rajivnathan merged commit d7d5d01 into codeready-toolchain:master Feb 26, 2026
10 checks passed
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