-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Grape 1.6.1 throughs an error on Grape::Validations::Types.group?()
#2214
Comments
@mobilutz thanks for the report! |
@mobilutz appreciate if you could please turn your repro into a failing spec PR |
@dblock I've discovered that it's easy enough, just remove |
it might be worth removing it at all if we have an integration spec for |
@mobilutz meanwhile, as a workaround, you could put require 'grape/eager_load'
Grape::Validations.eager_load!
Grape::Validations::Validators.eager_load! in the spec helper but I'm hoping for a quick fix release :) |
I am not sure if the problem is similar : I have this error after update from 1.6 to 1.6.1
the code is
|
@seb-sykio yeah, it looks like the same problem. |
I propose to revert the latest changes that were made to the autoloading in #2207 #2209 and release again. At least, the changes for validators will not work as expected because the grape validators are loaded differently(we do not use a class name but use some |
That works for me. |
Thanks for working on this so fast. If you need any help with a test setup, I can see to create an app for you guys. Cheers |
Sorry for the late reply, I was out all day. I’ll take a look tomorrow and
let you know.
…On Wed 29 Dec 2021 at 22:52 Lutz Lengemann ***@***.***> wrote:
Thanks for working on this so fast.
I will test out, if the proposed idea helps us. But I also think it is
better to not have a workaround.
If you need any help with a test setup, I can see to create an app for you
guys.
Cheers
—
Reply to this email directly, view it on GitHub
<#2214 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAHJI5ZACFNXHIJ32E5G2DUTN7I5ANCNFSM5K5S2SVA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Avertissement*
Ce message est destiné uniquement à la personne ou à
l’organisation à laquelle il est adressé et il peut contenir des
informations privilégiées, confidentielles ou non divulgables en vertu de
la loi. Si vous n’êtes pas le destinataire du présent message ni la
personne chargée de remettre le présent message à son destinataire, il vous
est strictement interdit de le divulguer, de le distribuer, de le copier ou
de l’utiliser de quelque façon que ce soit. Si vous avez reçu la présente
communication par erreur, veuillez en aviser l’expéditeur et détruire ou
effacer tous les exemplaires que vous avez reçus.
*Warning
*This message
is intended only for the use of the individual or entity to which it is
addressed, and may contain information which is privileged, confidential,
proprietary or exempt from disclosure under applicable law. If you are not
the intended recipient or the person responsible for delivering the message
to the intended recipient, you are strictly prohibited from disclosing,
distributing, copying or in any way using this message. If you have
received this communication in error, please notify the sender, and destroy
and delete any copies you may have received.
|
@ericproulx it's a holiday time and I think we don't need any rush here, so I'm going to release the fix with reverted #2207 #2209. If you come with some solution then it will be released the next time :) |
1.6.2 has been released, try updating 🤞🏻 |
Upgrading to 1.6.2 fixed the related issue #2218 - thank you! |
Thanks @dm1try |
The patch upgrade from 1.6.0 to 1.6.1 is breaking on the following line for me:
https://github.com/ruby-grape/grape/blob/v1.6.1/lib/grape/dsl/parameters.rb#L154
The full error is:
Even though,
def self.group?()
is defined onTypes
here, I cannot call it through IRB or any other other means:https://github.com/ruby-grape/grape/blob/v1.6.1/lib/grape/validations/types.rb#L101-L108
Looking through our specs, I also find this error:
The test setup is as follows:
PS: In my opinion, the patch update has way to many changes in it to be honest. But I also know how hard maintaining an open-source product is, so please don't take this as a complaint!
The text was updated successfully, but these errors were encountered: