Open JavierM42 opened 4 years ago
Yeah, this is something we've not implemented yet but would be good to do.
Is it just search where you see this fail, or are there other problems with alias_attribute
?
We've noticed problems only with alias_attribute
so far.
Oh, no, I mean: Did you see any other problems apart from this one relating to search with alias_attribute
?
My bad, I understood the question correctly but typed "alias_attribute" instead of "the search".
We have not found any problems but the search while using alias attribute.
Great, thanks!
For a "quick solution" I usually add searchable: false
to the aliased attribute and searchable: true
to the original attribute.
I used
alias_attribute
to change an attribute name at the model level (my db is shared so I can't simply rename the column). I then changed theattribute_types
,collection_attributes
andshow_page_attributes
to the new name, and everything worked but the search, which throwsI know that I can change labels to make the user-facing text be whatever I want, but it would be nice to support aliases to improve the developer experience.