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

[Missing Object] Notifications are shown as minimized #6416

Merged
merged 14 commits into from
Mar 14, 2023

Conversation

khalidadil
Copy link
Contributor

@khalidadil khalidadil commented Mar 13, 2023

Closes #6349

Describe your changes:

Adds the ability to pass minimized: true to error notifications show those notifications as minimized. Also shows missing object error notifications as minimized by default.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?
  • Has associated issue been labelled unverified? (only applicable if this PR closes the issue)
  • Has associated issue been labelled bug? (only applicable if this PR is for a bug fix)

@khalidadil khalidadil linked an issue Mar 13, 2023 that may be closed by this pull request
@khalidadil khalidadil changed the title Bugfix/issue 6349 [Missing Object] Notifications are shown as minimized Mar 13, 2023
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #6416 (f560855) into master (b5002e1) will decrease coverage by 0.33%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6416      +/-   ##
==========================================
- Coverage   54.98%   54.65%   -0.33%     
==========================================
  Files         620      620              
  Lines       26490    26494       +4     
  Branches     2392     2392              
==========================================
- Hits        14565    14480      -85     
- Misses      11281    11367      +86     
- Partials      644      647       +3     
Flag Coverage Δ *Carryforward flag
e2e-ci 39.39% <ø> (-0.01%) ⬇️ Carriedforward from 23bf46f
e2e-full 51.14% <ø> (-0.01%) ⬇️ Carriedforward from 23bf46f
e2e-stable 54.37% <57.14%> (-0.07%) ⬇️
unit 49.13% <85.71%> (-0.45%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
src/api/telemetry/TelemetryCollection.js 89.37% <50.00%> (-0.50%) ⬇️
src/api/notifications/NotificationAPI.js 94.55% <100.00%> (+0.68%) ⬆️
src/api/telemetry/TelemetryAPI.js 86.64% <100.00%> (+0.10%) ⬆️
...c/plugins/interceptors/missingObjectInterceptor.js 100.00% <100.00%> (ø)

... and 19 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5002e1...f560855. Read the comment docs.

@khalidadil khalidadil closed this Mar 13, 2023
@khalidadil khalidadil reopened this Mar 14, 2023
@shefalijoshi shefalijoshi self-requested a review March 14, 2023 18:11
@@ -108,6 +108,24 @@ describe('The Notifiation API', () => {
});
});

describe('the error method notificiation', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point we should add a test to see that if a new notification comes in while the notifications are being viewed, that they don't end up being minimized.

Copy link
Contributor

@shefalijoshi shefalijoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@khalidadil khalidadil merged commit 600890c into master Mar 14, 2023
@khalidadil khalidadil deleted the bugfix/issue-6349 branch March 14, 2023 18:36
@ozyx ozyx added this to the Target:2.2.0 milestone Mar 14, 2023
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.

Missing Object Notifications are too noisy right now.
3 participants