Skip to content

Conversation

@vinistock
Copy link
Member

@vinistock vinistock commented May 13, 2025

Motivation

We can't remove the extend T::Generic statements from classes that are involved in the public add-on API without marking it as a breaking change. If the add-on is using Sorbet and puts an inline signature in the code referencing a generic class, it will crash because the self.[] method no longer exists.

This is unfortunately happening in v0.23.18 for the Rails (for users who haven't upgraded) and RSpec add-ons. I think we should bring back the extend T::Generic and ship a new version to avoid the crashes.

Then we mark the removal of these as a breaking changes, so that upgrades happen smoothly.

Copy link
Member Author


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this May 13, 2025
@vinistock vinistock added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels May 13, 2025 — with Graphite App
@vinistock vinistock requested review from Morriar and st0012 May 13, 2025 00:27
@vinistock vinistock marked this pull request as ready for review May 13, 2025 00:27
@vinistock vinistock requested a review from a team as a code owner May 13, 2025 00:27
@vinistock vinistock merged commit 022de35 into main May 13, 2025
36 of 44 checks passed
@vinistock vinistock deleted the 05-12-bring_back_extend_t_generic_for_add-on_api_classes branch May 13, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants