So, I went ahead and created a PoC on what I mean could be done on the rails side of things on the previous email:

https://github.com/cfcosta/dynamic-entity-poc , and specially this: https://github.com/cfcosta/dynamic-entity-poc/commit/01df9ca6bdc0f9580845a3311c3bdc4b5a9a25a5

It has some advantages from what we have now:

* Entity objects are not dependant on ActiveRecord, so we can use them as value objects anywhere we want.
* We can define some conditions on spawning objects, so that we can have, lets say, MutableServer and ImmutableServer as different classes

What do you guys think?

On Fri, May 26, 2017 at 10:25 AM, Heiko W.Rupp <hrupp@redhat.com> wrote:
On 26 May 2017, at 5:58, Josejulio Martinez Magana wrote:

>> Do we really need to drive off an agent or server-side config?  Perhaps
> +1
> I think we should consider this option. The agent provides general

I am not married to the agent providing this metadata, which
is shown by the "or on the server" part ;-)

Driving the UI from metadata on the Hawkular-services
side allows us to add support for new kinds of servers
- outside of MiQ release cycles
- by the people that write those servers without them becoming MiQ experts

Also issues like e.g. a missing property can be fixed on the H-S
side by adding this to the metdata.
_______________________________________________
hawkular-dev mailing list
hawkular-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev