-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Starting OpenMCT fresh causes persistent error message #5914
Comments
Adding blocker as this is blocking the utility of the visual tests |
This is almost certainly due to #5488 which fixed an issue where persistence errors were being suppressed inappropriately. We clearly need to suppress some errors, but as high up the chain as possible so we are not losing important user feedback. Perhaps our object interceptor API could be modified to allow interceptors to suppress errors under certain circumstances. |
@ozyx does this have a functional impact? And is there a workaround? |
There is no functional impact as far as I'm aware. It's mainly impacting our visual and couchDB tests |
Actually, I think this is just an object interceptor order issue in this case. The |
Reprioritizing as critical. It has no functional impact and trying to fix this to unblock release will introduce risk. |
Potential solution to implement prioritization for interceptors?:
|
Splitting the CouchDB 404 off of this ticket onto its own, since I think it should be handled on the e2e side. |
Testing Notes
Repeat the same steps above with CouchDB plugin and a fresh CouchDB database and verify that the |
… first (#5965) * feat: sort interceptors by priority * fix(#5914): high priority for MyItemsInterceptor * fix: create myItems if object is falsy * test(e2e): update snapshots Co-authored-by: Scott Bell <[email protected]>
Fix verified during testathon on 10/14/2022. |
Summary
When starting OpenMCT with a fresh instance (fresh DB, either local or CouchDB), a persistent error message is generated:
The persistence of the error message and the red color would serve to indicate that something has gone terribly wrong. And in some cases, this may be true. But in the case of a fresh DB, this is to be expected. Since the
mine
folder ('My Items', or otherwise named) does not yet exist, this will trigger an attempt to create themine
folder.The existence of this error message impacts our visual tests as it now shows up in every snapshot we take (since the message needs to be manually dismissed).
Expected vs Current Behavior
We should handle this specific case gracefully somehow, and not generate an error unless the attempt to create the
mine
folder fails (after noticing it does not yet exist).Steps to Reproduce
Environment
2.1.2
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: