Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for REST API dependsOn search parameter. #351

Open
southalladam opened this issue Mar 26, 2018 · 1 comment
Open

Support for REST API dependsOn search parameter. #351

southalladam opened this issue Mar 26, 2018 · 1 comment

Comments

@southalladam
Copy link

Hello there!

We are using your jasper REST client to manage our Jasper environments. One task I've had recently was to do a bulk update of data sources, switching from one type to another.

In the end I had to go through all items that could depend on a data sources AbstractClientDataSourceHolder and interrogate if they depended on the data sources I wanted to replace.

The API itself includes a dependOn search parameter which would have returned a list of items that I needed to work with. The following was sent to me by TIBCO support:

Identifying resources dependent on a Data Source: in addition to the article Support suggested in case 01562271, you can use dependsOn parameter together with other parameters, which are part of the REST API (https://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v64/resources-service#Searching_the_Repository). Here's an example for my local instance: http://localhost:8080/jasperserver-pro/rest_v2/resources?type=semanticLayerDataSource&dependsOn=/public/Samples/Data_Sources/FoodmartDataSourceJNDI

I can confirm that using the REST API directly gives me the list of resources I need.

As far as I can tell, adding "dependsOn" to the ResourceSearchParameter would add support for this useful feature. Is this something you could consider adding?

@tmatveyeva
Copy link

Hello,

This parameter was already added in the develop branch of the project, but we cannot release it until next version of JRS will be released.

Regards,
Tetyana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants