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

Unhandled TypeError while using Grand Search #5639

Closed
2 of 7 tasks
ozyx opened this issue Aug 9, 2022 · 3 comments · Fixed by #5650
Closed
2 of 7 tasks

Unhandled TypeError while using Grand Search #5639

ozyx opened this issue Aug 9, 2022 · 3 comments · Fixed by #5650
Labels
bug:regression It used to work. Now it doesn't :( severity:critical type:bug
Milestone

Comments

@ozyx
Copy link
Member

ozyx commented Aug 9, 2022

Summary

image

Expected vs Current Behavior

Expected: no unhandled TypeErrors

Steps to Reproduce

  1. Type in a search term to the grand search
  2. Before the search has completed, delete the term character-by-character
  3. Notice errors thrown

Environment

Seen during Testathon 8/9/22

Version: 2.0.7
Build Date: Thu Aug 04 2022 12:33:07 GMT-0700 (Pacific Daylight Time)
Revision: 15a0a872512556792cac6a8f8cd201a350222312
Branch: release/2.0.7

Impact Check List

  • Data loss or misrepresented data?
  • Regression? Did this used to work or has it always been broken?
  • Is there a workaround available?
  • Does this impact a critical component?
  • Is this just a visual bug with no functional impact?
  • Does this block the execution of e2e tests?
  • Does this have an impact on Performance?

Additional Information

@ozyx ozyx added the type:bug label Aug 9, 2022
@scottbell scottbell self-assigned this Aug 10, 2022
@scottbell
Copy link
Contributor

scottbell commented Aug 10, 2022

@ozyx I'm able to replicate one of the errors:

Error searching DOMException: Failed to execute 'fetch' on 'Window': The user aborted a request.
    at CouchObjectProvider.getObjectsByFilter (webpack-internal:///./src/plugins/persistence/couch/CouchObjectProvider.js:433:32)
    at CouchSearchProvider.searchForTags (webpack-internal:///./src/plugins/persistence/couch/CouchSearchProvider.js:150:41)
    at CouchSearchProvider.search (webpack-internal:///./src/plugins/persistence/couch/CouchSearchProvider.js:53:25)
    at eval (webpack-internal:///./src/api/objects/ObjectAPI.js:292:39)
    at Array.map (<anonymous>)
    at ObjectAPI.search (webpack-internal:///./src/api/objects/ObjectAPI.js:292:14)
    at AnnotationAPI.searchForTags (webpack-internal:///./src/api/annotation/AnnotationAPI.js:284:71)
    at VueComponent.getSearchResults (webpack-internal:///./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/ui/layout/search/GrandSearch.vue?vue&type=script&lang=js&:125:78)
    at async VueComponent.searchEverything (webpack-internal:///./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/ui/layout/search/GrandSearch.vue?vue&type=script&lang=js&:91:

but not the identifier one, though it's pretty clear in the getPathsForObjects function where it's happening:
const keyStringForObject = this.openmct.objects.makeKeyString(domainObject.identifier);

I'll see about handling those errors.

@scottbell scottbell linked a pull request Aug 12, 2022 that will close this issue
15 tasks
@unlikelyzero unlikelyzero added severity:critical bug:regression It used to work. Now it doesn't :( labels Aug 23, 2022
@jvigliotta
Copy link
Contributor

Verified Fixed - Testathon 9/12/22

I still see the items canceled in the network tab, but the errors are gone in console. Nice!

@ozyx
Copy link
Member Author

ozyx commented Sep 12, 2022

Verified Testathon 9/12/22

Not seeing any console errors anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:regression It used to work. Now it doesn't :( severity:critical type:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants