classifai icon indicating copy to clipboard operation
classifai copied to clipboard

User selected key combination are not getting preserved after saving the setting.

Open ankitguptaindia opened this issue 2 years ago • 0 comments

Describe the bug

In the IBM Natural Language Understanding settings, when users select the option to add API keys using API URL + API KEY and save the settings, it unexpectedly displays a different combination of keys, such as API URL + API USERNAME + API PASSWORD. This discrepancy creates confusion for users, as it incorrectly appears as if they have added an API USERNAME, even though they intended to use only the API URL and API KEY.

Expected Behavior: The settings should accurately reflect the user's choice and only display the selected API URL + API KEY combination, without any reference to API USERNAME.

Steps to Reproduce

Steps to Reproduce:

  1. Navigate to IBM Natural Language Understanding settings.
  2. Choose the option to add AI keys using API URL + API KEY.
  3. Save the settings.
  4. Observe that the saved configuration displays API URL + API USERNAME + API PW.

Screenshots, screen recording, code snippet

User Selected Combination Combination After Saving
Screenshot 2023-08-02 at 5 01 03 PM Screenshot 2023-08-02 at 5 01 30 PM

Detailed Explanation:

https://github.com/10up/classifai/assets/6384299/0ad46b74-bf7d-4129-8549-f3fc383d7664

Environment information

No response

WordPress information

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

ankitguptaindia avatar Aug 02 '23 11:08 ankitguptaindia