Open Temikus opened 6 years ago
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.
I'm ok with doing a setter for the alias.
This is something i struggled myself in the past when working on fog-xenserver
.
@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] notifications@github.com 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 https://github.com/fog/fog-core/issues/237#issuecomment-423633101, 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:
https://github.com/fog/fog-core/blob/7865ef77ea990fd0d085e49c28e15957b7ce0d2b/lib/fog/core/attributes.rb#L119
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?