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

Add association augmentations #423

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

vinistock
Copy link
Member

This is another example of how we can use indexing augmentations Shopify/ruby-lsp#2358.

This PR starts handling association DSLs such as has_one and belongs_to, creating the accessor methods that are generated dynamically when invoking them.

@vinistock vinistock added the enhancement New feature or request label Jul 24, 2024
@vinistock vinistock self-assigned this Jul 24, 2024
@vinistock vinistock requested a review from a team as a code owner July 24, 2024 20:26
@vinistock vinistock requested review from andyw8 and st0012 July 24, 2024 20:26
@vinistock vinistock force-pushed the vs/add_extend_augmentation branch 3 times, most recently from d3e0850 to c99069c Compare August 8, 2024 18:57
@vinistock vinistock force-pushed the vs-add-belongs-to-augmentation branch from b32fbc5 to 41f4227 Compare August 8, 2024 19:08
Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

Do we plan to add more methods like build_user, create_user....etc. in the future too?

Base automatically changed from vs/add_extend_augmentation to main August 8, 2024 20:15
@vinistock vinistock force-pushed the vs-add-belongs-to-augmentation branch from 41f4227 to 0fb257d Compare August 8, 2024 20:22
@vinistock
Copy link
Member Author

Do we plan to add more methods like build_user, create_user....etc. in the future too?

Yes. We'll need to map everything that gets generated dynamically so that we can cover all methods available. It might be worth checking the stuff generated by Tapioca.

@vinistock vinistock enabled auto-merge (squash) August 8, 2024 20:23
@vinistock vinistock merged commit bfa3614 into main Aug 8, 2024
40 checks passed
@vinistock vinistock deleted the vs-add-belongs-to-augmentation branch August 8, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants