Skip to content

Remove unused DurationBeforeChangeTierRequestDeletion config#578

Merged
rajivnathan merged 3 commits intocodeready-toolchain:masterfrom
rajivnathan:removeDurationBeforeCTRDeletionMemberRgSvc
Feb 26, 2026
Merged

Remove unused DurationBeforeChangeTierRequestDeletion config#578
rajivnathan merged 3 commits intocodeready-toolchain:masterfrom
rajivnathan:removeDurationBeforeCTRDeletionMemberRgSvc

Conversation

@rajivnathan
Copy link
Contributor

@rajivnathan rajivnathan commented Feb 25, 2026

Related to codeready-toolchain/api#499 and codeready-toolchain/toolchain-common#515

Summary by CodeRabbit

  • Chores
    • Updated dependency references to newer pinned revisions.
    • No functional or public API changes detected.
    • Maintenance-only change to control dependency versions used during builds.

@coderabbitai
Copy link

coderabbitai bot commented Feb 25, 2026

Walkthrough

Updated two dependency versions in go.mod: github.com/codeready-toolchain/api and github.com/codeready-toolchain/toolchain-common were bumped to new pseudo-versions in the require section; no other functional changes observed.

Changes

Cohort / File(s) Summary
Dependency version bumps
go.mod
Updated require entries for github.com/codeready-toolchain/api and github.com/codeready-toolchain/toolchain-common to newer pseudo-versions. No other edits to exported APIs or code.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title references removing a config called 'DurationBeforeChangeTierRequestDeletion', but the actual changes only update two dependency versions in go.mod with no functional code changes or config removals visible. Update the PR title to accurately reflect that it updates dependency versions (codeready-toolchain/api and toolchain-common), or clarify that the config removal is implemented in dependent repositories.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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 3-5: Remove the personal-fork replace directives in go.mod that
point to github.com/rajivnathan/api and github.com/rajivnathan/toolchain-common;
revert these to the upstream modules (remove or update the replace lines) and
ensure the require block references the intended upstream versions (or wait for
upstream PRs to land and then update requires), so dependency resolution does
not rely on personal forks.

ℹ️ 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 b60d98c and d27e830.

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

…service into removeDurationBeforeCTRDeletionMemberRgSvc
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)

3-6: ⚠️ Potential issue | 🔴 Critical

Pipeline failure blocks merge: personal fork replace directives not allowed.

The CI check explicitly rejects these replace directives with exit code 1. These must be removed before merge can proceed. Once the upstream PRs (api #499, toolchain-common #515) are merged, update the require block to reference the new upstream versions and remove these replace lines.

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

In `@go.mod` around lines 3 - 6, Remove the temporary local fork overrides in
go.mod: delete the two replace directives referencing github.com/rajivnathan/api
and github.com/rajivnathan/toolchain-common, then update the require block to
point to the new upstream versions produced by the merged PRs (api PR `#499` and
toolchain-common PR `#515`) so the module uses the official upstream module
versions instead of local fork replacements; ensure go mod tidy is run to update
go.sum and vendor if used.
🤖 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 3-6: Remove the temporary local fork overrides in go.mod: delete
the two replace directives referencing github.com/rajivnathan/api and
github.com/rajivnathan/toolchain-common, then update the require block to point
to the new upstream versions produced by the merged PRs (api PR `#499` and
toolchain-common PR `#515`) so the module uses the official upstream module
versions instead of local fork replacements; ensure go mod tidy is run to update
go.sum and vendor if used.

ℹ️ 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 d27e830 and c577f26.

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

@sonarqubecloud
Copy link

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 9-10: The go.mod entry for module
github.com/codeready-toolchain/api references a non-existent commit hash
(912fcbd23dc7); locate the correct commit hash in the upstream
codeready-toolchain/api repo that corresponds to PR `#499` (the change removing
DurationBeforeChangeTierRequestDeletion) and replace the current hash on the
github.com/codeready-toolchain/api line in go.mod with that valid commit version
so the dependency resolves correctly (leave the toolchain-common line
unchanged).

ℹ️ 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 c577f26 and e43a7ab.

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

Comment on lines +9 to +10
github.com/codeready-toolchain/api v0.0.0-20260226033043-912fcbd23dc7
github.com/codeready-toolchain/toolchain-common v0.0.0-20260226040150-d7d5d0163ff7
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Verifying upstream commits exist ==="

# Check codeready-toolchain/api commit 912fcbd23dc7
echo "Checking github.com/codeready-toolchain/api commit 912fcbd23dc7..."
if curl -fsS "https://api.github.com/repos/codeready-toolchain/api/commits/912fcbd23dc7" >/dev/null 2>&1; then
  echo "✓ api commit 912fcbd23dc7 exists"
  # Get commit message to verify it's related to the expected change
  curl -fsS "https://api.github.com/repos/codeready-toolchain/api/commits/912fcbd23dc7" | \
    jq -r '.commit.message' | head -5
else
  echo "✗ api commit 912fcbd23dc7 not found"
fi

echo ""

# Check codeready-toolchain/toolchain-common commit d7d5d0163ff7
echo "Checking github.com/codeready-toolchain/toolchain-common commit d7d5d0163ff7..."
if curl -fsS "https://api.github.com/repos/codeready-toolchain/toolchain-common/commits/d7d5d0163ff7" >/dev/null 2>&1; then
  echo "✓ toolchain-common commit d7d5d0163ff7 exists"
  # Get commit message to verify it's related to the expected change
  curl -fsS "https://api.github.com/repos/codeready-toolchain/toolchain-common/commits/d7d5d0163ff7" | \
    jq -r '.commit.message' | head -5
else
  echo "✗ toolchain-common commit d7d5d0163ff7 not found"
fi

Repository: codeready-toolchain/registration-service

Length of output: 504


The api dependency commit does not exist in the upstream repository.

The commit hash for github.com/codeready-toolchain/api (912fcbd23dc7) cannot be found in the upstream repo. The toolchain-common commit (d7d5d0163ff7) exists and correctly removes the DurationBeforeChangeTierRequestDeletion config, but it references an invalid api dependency update.

Verify the correct api commit hash that corresponds to PR #499 (removing the unused config) and update line 9 accordingly.

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

In `@go.mod` around lines 9 - 10, The go.mod entry for module
github.com/codeready-toolchain/api references a non-existent commit hash
(912fcbd23dc7); locate the correct commit hash in the upstream
codeready-toolchain/api repo that corresponds to PR `#499` (the change removing
DurationBeforeChangeTierRequestDeletion) and replace the current hash on the
github.com/codeready-toolchain/api line in go.mod with that valid commit version
so the dependency resolves correctly (leave the toolchain-common line
unchanged).

Copy link
Contributor

@rsoaresd rsoaresd left a comment

Choose a reason for hiding this comment

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

🚀

@openshift-ci
Copy link

openshift-ci bot commented Feb 26, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, rajivnathan, rsoaresd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [alexeykazakov,rajivnathan,rsoaresd]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rajivnathan rajivnathan merged commit e2561e0 into codeready-toolchain:master Feb 26, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants