Skip to content
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

Handle changing visibility post method definition #3339

Merged

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Mar 21, 2025

Motivation

I noticed we didn't handle changing method visibility post definition. This PR adds support for it.

Implementation

The idea is to check if there are string or symbol arguments being passed and then change the visibility of the methods passed.

Otherwise, we continue doing the same as before.

Automated Tests

Added a test.

@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 Mar 21, 2025 — with Graphite App
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 Mar 21, 2025
@vinistock vinistock requested review from alexcrocha and st0012 March 21, 2025 16:00
@vinistock vinistock marked this pull request as ready for review March 21, 2025 16:01
@vinistock vinistock requested a review from a team as a code owner March 21, 2025 16:01
Copy link

graphite-app bot commented Mar 26, 2025

Merge activity

### Motivation

I noticed we didn't handle changing method visibility post definition. This PR adds support for it.

### Implementation

The idea is to check if there are string or symbol arguments being passed and then change the visibility of the methods passed.

Otherwise, we continue doing the same as before.

### Automated Tests

Added a test.
@graphite-app graphite-app bot force-pushed the 03-21-handle_changing_visibility_post_method_definition branch from dca4238 to 70d5b65 Compare March 26, 2025 18:55
@graphite-app graphite-app bot merged commit 70d5b65 into main Mar 26, 2025
44 checks passed
@graphite-app graphite-app bot deleted the 03-21-handle_changing_visibility_post_method_definition branch March 26, 2025 19:22
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