JIRA down, Feature Request regarding "data population strategy"

26 views
Skip to first unread message

Marcus K.

unread,
Aug 22, 2011, 10:52:39 AM8/22/11
to PODAM
Hi Marco,

as the JIRA site is currently not reachable ("Service Temporarily
Unavailable"), I just ask here:

Actually it would be useful if I could create a provider strategy
where I could prefix the data with the attribute name of the filled
property. If I have a class with a String property "phone", then it
would be nice if I was able to generate a value like
"phone_0912837871237", just to know that I am displaying the right
field in the presentation layer.

Currently this does not seem to be possible. It would require a
rewrite of PodamFactoryImpl (which in fact is quite big and a "god
class") and of the interface DataProviderStrategy. Do you think that
this is something you might include in a later release? I might try it
by myself, but I am afraid that I would do more harm than benefit.

Kind Regards,
Marcus

Marco Tedone

unread,
Aug 22, 2011, 5:30:24 PM8/22/11
to po...@googlegroups.com
Marcus,

One feature that will be part of PODAM next release is the possibility to
provide Strategies with metadata about the field being filled with data.
Then, in your case, you would be able to implement a custom strategy that
prepended the field name to the value. So, at a high-level, you would
compose your custom strategy with the default strategy and then you could
have:

return metadata.getField().getName() + "_" +
defaultStrategy.getRandomString();


Something like that.

What I can't tell you is when I will be releasing the next version. I'm very
busy at the moment but if anyone feels they could implement this
functionality fork the code, try it out and when ready issue a pull request.


Best,

Marco

Marcus K.

unread,
Aug 31, 2011, 9:33:25 AM8/31/11
to PODAM
Hi Marco,

I will happily try out the new feature next week. Thanks a lot for
adding this feature.

One other quuestion regarding JIRA: I wonder why the project are only
visible to registered users instead of all anonymous ones. This might
encourage others to use the issue tracker, especially if they can see
that there is activity.

Regards,
Marcus
Reply all
Reply to author
Forward
0 new messages