-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Avoid loading ActionView::Base during initialization (#1528)" #1626
Conversation
@jonrohan please also see #1571 (comment) |
@Spone ah yeah thanks for that 😄 We discussed reverting the PR during office hours today as well. |
Hi there 👋. The PR this reverts got us out of a sticky situation. Now that it's reverted, we're stuck again and are unable to upgrade from 2.81 to 2.82. It's a bit of a funny one and involves a dependency doing something a little unusual. I'll try and explain in case it's helpful. Here's what happens for us.
The result is Am I making sense? Have I missed something? Is there an alternative we should be pursuing do you think? Is there another way JBuilder could be achieving what they want? Any and all help is greatly appreciated :) |
Hey @bradparker, thanks for bringing this up! As @jonrohan mentioned above, we reverted #1528 because it caused a bunch of Sorbet .rbi files to disappear when we tried to update ViewComponent in github.com's monorepo 😱 We tracked the breakage down to this PR and sure enough, reverting it fixed the problem. Since dotcom doesn't suffer from the problem #1528 was trying to solve, we didn't hesitate to revert it. Loading |
Alright, so interestingly the Sorbet issue appears to have gone away, i.e. I couldn't reproduce it again. All dotcom tests pass too, so I'd say let's revert the revert. Here's the PR: #1659 |
…ponent#1528)" (ViewComponent#1626) * Revert "Avoid loading ActionView::Base during initialization (ViewComponent#1528)" This reverts commit 22dbe8f. * Put back changelog * Adding changelog for revert
…ponent#1528)" (ViewComponent#1626) * Revert "Avoid loading ActionView::Base during initialization (ViewComponent#1528)" This reverts commit 22dbe8f. * Put back changelog * Adding changelog for revert
What are you trying to accomplish?
Reverting #1528
I went to update view_component from
2.74.0
to2.81.0
the sorbet checks for Primer View Components in GitHub.com's codebase and it ended up removing a lot of the definitions from the rbi file.What approach did you choose and why?
To find what caused it, I rolled to each version until I found one that didn't break, we were on
2.74.0
in dotcom and it broke after upgrading to2.75.0
.Anything you want to highlight for special attention from reviewers?