watson-developer-cloud / node-sdk

:comet: Node.js library to access IBM Watson services.
https://www.npmjs.com/package/ibm-watson
Apache License 2.0
1.48k stars 668 forks source link

[Watson Assistant] Need include_count param for list requests. #1014

Closed cutexx52 closed 4 years ago

cutexx52 commented 4 years ago

Remember, an issue is not the place to ask questions. You can use Stack Overflow for that, or you may want to start a discussion on the dW Answers.

Before you open an issue, please check if a similar issue already exists or has been closed before.

When reporting a bug, please be sure to include the following:

When you open an issue for a feature request, please add as much detail as possible:

I upgraded from v4 to v5 and found that the 'include_count' param is removed, which is stated in the release notes. I think this is really useful as Watson Assistant has a 2000 limit for intents inside a workspace. If I cannot get the current Intent count in the workspace, I do not know how many intents I can add. For example, when I need to add 200 intents and the workspace has 1900 intents inside, the adding requests will fail.

Really need the count to determine if I could add Intents to a workspace. Is it possible to add it back? In the official docs: https://cloud.ibm.com/apidocs/assistant/assistant-v1#list-intents, the include_count param is still there.

In the curl results, the 'pagination' contains 'total' and 'matched' when I set param 'include_count' to 'true', but the Node.js client doesn't have this option.

dpopp07 commented 4 years ago

@guanchaoli Thanks for the issue. I wasn't aware of why this parameter was removed from the SDKs but I did some investigating and it turns out, we should be able to add it back soon. I will try to add it in one of our upcoming releases. Thanks again to bringing awareness to this!

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.