Open cindoum opened 9 years ago
i 100% agree with that
I think that should be part of the beta version as it can be a plus that other inventory software doesnt have!
@mabouchalkha, beta or in a latest release?
any idea if it's difficult to implement this feature?
Not that much. we need to decide wich entity will be 'extendable' and add a relation table to that entity...
then we will need a way to display those attributs on the page. Kind of extendedProperty viewer...
a week or less (not a full time of course)
ok let's do it in the 1.0.0
I dont mid handle this as ive work quite a lot on this feature on the lims
I started looking at it yesterday, and i am going to wrap this feature in a gem.
It is not a big
step to add and it will split this functionnaly in his separate git.
What i want is to be able to add to any model something like class user has_xtended end
and then do User.xtended => [{:name => 'color'}] and u = User.first u .xtended.attribut, that will return an array of object like {value: 'blue', type: 'string', name: 'color'}
nice, component like this should be on public repo open source
yes it will be! (maybe not for the first version cause it might not be beautifull on first try :D)
Started something there => https://github.com/cindoum/rails_eav_test
@mabouchalkha i think i will go with https://github.com/kostyantyn/hydra_attribute for now as i need more time to think about how to make our own gem.
ok no probleme
but i think we should resolve this #17 before, @cindoum what do yo think?
Yes it would be better
A system like lims ExtendedProperty could be somthing really usefull in our application.
Use case => We have a model product wich contain:
Imagine than exova subscribe to our application. Exova usually stock the color of a product. If we dont have an attribute 'color' on the model Product, they just cant do it.
They go on setting => product. they add an extended property 'color'. so now, every product of exova can now have that attribut, they can filter by it, search by it etc... That with elastic search is a killer feature it think!
@mabouchalkha what do you think?