-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Attribute aliases work only partially #237
Comments
This is a result of my chat with @plribeiro3000 earlier. Didn't have much time to look into it deeply to actually fix, but I feel this needs to at least be documented. |
Alias doesn’t work on .create, possibly related to: fog/fog-core#237
I'm ok with doing a setter for the alias. This is something i struggled myself in the past when working on @geemus any thoughts? |
Sounds reasonable to me, thanks! |
This issue has been automatically marked stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions. |
Leave it open!
Em sex, 21 de set de 2018 15:37, stale[bot] <[email protected]>
escreveu:
… This issue has been automatically marked stale due to inactivity. It will
be closed if no further activity occurs. Thank you for your contributions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#237 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AApEuIhSnLO_3iVTdnCafIHBodh2ybLbks5udTHdgaJpZM4VQquE>
.
|
This issue has been automatically marked stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions. |
Reopening and pinning to deactivate stalebot as this looks like something @plribeiro3000 is working on. If not - no worries, just close out. |
Sounds good, thanks! |
@Temikus Not really working on this now but i would leave it open since it looks like something we should tackle. |
@Temikus Is this something you guys still need? I will try to find some spare time to tackle this. |
For example, we create a model with those attributes:
When created actually turns into proper model fields:
But when I try to call it:
It seems there is a bug - the alias mapping is only being done when doing a plain new object or reloading:
fog-core/lib/fog/core/attributes.rb
Line 119 in 7865ef7
But the actual method setters don't:
https://github.com/fog/fog-core/tree/master/lib/fog/core/attributes
Maybe we should move that alias code to inside the setter definition or do an alias automatically?
The text was updated successfully, but these errors were encountered: