RallyTools / RallyRestToolkitForRuby

A toolkit wrapping Rally's REST webservice for Ruby
MIT License
47 stars 32 forks source link

You can't query for PortfolioItems #3

Closed Echo3ToEcho7 closed 12 years ago

Echo3ToEcho7 commented 12 years ago

Hi David,

While I know that as of 1.37 PortfolioItems are no longer a create-able type, it is still a query-able type. I get an error:

rally_api-0.7.1/lib/rally_api/rally_rest_json.rb:226:in `find': Errors making Rally Query: "Object Type portfolio_item is not query-able: inspect RallyRestJson.rally_objects for allowed types"

For now, I am manually adding {:portfolio_item => "PortfolioItem"} to the RallyRestJson.rally_objects, but should it be there by default? For me, it should act like Artifact.

Cheers, Colin

dawsmith8 commented 12 years ago

Hi Colin - the api doesn't snake case the item types - try just :portfolioitem in the find and it should work. I could probably add snake cased symbols there too though.

Echo3ToEcho7 commented 12 years ago

That fixed it, thanks! Guess that I am still use to the rally_rest_api semantics.