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

Ensure Classification preview works as expected #679

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Ensure Classification preview works as expected #679

merged 2 commits into from
Feb 2, 2024

Conversation

dkotter
Copy link
Collaborator

@dkotter dkotter commented Feb 1, 2024

Description of the Change

As described in #663, when triggering the Classification Preview functionality, an undefined text message shows before the results are shown. This is a new bug introduced coming out of #611.

This PR fixes that by ensuring we trigger the right preview function depending on which Provider has been selected, whereas previously we were firing off both the NLU and Embeddings preview functions, resulting in the error.

Closes #663

How to test the Change

  1. Go to Tools > ClassifAI > Language Processing > Classification
  2. Turn on and configure the Feature
  3. In the Preview Language Processing section, choose an item and click the Preview button
  4. Ensure a loading icon shows in the Preview button and no error message shows or console messages logged
  5. Ensure results show

Changelog Entry

Fixed - Ensure Classification preview works as expected.

Credits

Props @dkotter, @QAharshalkadu

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

…a preview, which leads to JS errors. Remove code that isn't needed. Fix a deprecation warning
@dkotter dkotter added this to the 3.0.0 milestone Feb 1, 2024
@dkotter dkotter self-assigned this Feb 1, 2024
@dkotter dkotter requested review from jeffpaul and a team as code owners February 1, 2024 22:03
@dkotter dkotter requested review from Sidsector9 and removed request for a team and jeffpaul February 1, 2024 22:03
… instead of relying on a single method, as they have different things to output
@dkotter dkotter merged commit 0180001 into develop Feb 2, 2024
12 checks passed
@dkotter dkotter deleted the fix/663 branch February 2, 2024 15:21
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

Successfully merging this pull request may close these issues.

I am getting an undefined text message for seconds, and then the preview result is showing.
2 participants