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 reselect method #33611
Add reselect method #33611
Conversation
Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @pixeltrix (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. This repository is being automatically checked for code quality issues using Code Climate. You can see results for this analysis in the PR status below. Newly introduced issues should be fixed before a Pull Request is considered ready to review. Please see the contribution instructions for more information. |
Never thought of that before but super cool idea. LGTM after a changelog entry! 👍 |
Done, @oniofchaos. Thank you very much! 😄 |
I think it will be great to mention this next to |
I've made it, @simi. Thank you very much! 😃 |
When will this get merged? |
Sadly there's a changelog merge conflict 😭 |
Not anymore! 😄 |
What about now, @oniofchaos? When will it be merged? |
@g1938703 as I am not a maintainer I do not have merge capabilities. I am just helping out by providing reviews and commentary on PRs. It's ultimately up to that group, such as the assignee pixeltrix, when and if the PR gets merged. Also, there's another merge conflict on the changelog :D |
@oniofchaos, nice job helping people out! 😃 @pixeltrix, when will this get merged? Thank you very much, guys! |
@willianveiga looking at the implementation for |
Is that what you meant, @pixeltrix? Thank you very much, Wilian. |
When will it be merged? Thank you! |
Is this ever going to be merged? |
@willianveiga thanks! 👍 |
Fixes #27340. | ||
|
||
*Willian Gustavo Veiga* | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great to move this changelog entry to the top of the file to point that this method will be available since the next Rails release.
…xt release Fixes rails#33611 (comment) Related to https://3.basecamp.com/3076981/buckets/24956/chats/12416418@1631552581 [ci skip]
Add reselect method rails/rails#33611
Allows you to change a previously set select statement:
This is short-hand for
unscope(:select).select(fields)
.Note that we're unscoping the entire select statement.
We already have
rewhere
andreorder
. @brchristian said in #27340: "... I find it a helpful syntax to have, especially after getting used to the feel of the other two ..."