Skip to content

Newsfeed unread badge is always shown after refresh #99191

@afharo

Description

@afharo

Kibana version: master

Elasticsearch version: 8.0.0-SNAPSHOT

Server OS version: macOS 11.3

Browser version: Firefox 88.0

Browser OS version: macOS 11.3

Original install method (e.g. download page, yum, from source, etc.): from source

Describe the bug:

Every time Kibana is loaded, on the browser, the Newsfeed unread indicator is shown.

Steps to reproduce:

  1. Open Kibana
  2. Open the Newsfeed to set the feed as read (notice the red bubble is gone)
  3. Refresh the page
  4. Notice the red bubble is back

Expected behavior:

The red bubble should only show if new content is downloaded.

Screenshots (if relevant):
image

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

This might be the relevant piece of code to change:

function handleStatusChange(fetchResult: FetchResult | void | null) {
if (fetchResult) {
setShowBadge(fetchResult.hasNew);
}
setNewsFetchResult(fetchResult);
}
const subscription = apiFetchResult.subscribe((res) => handleStatusChange(res));

Metadata

Metadata

Assignees

Labels

Feature:NewsfeedFeature of the NewsfeedTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//bugFixes for quality problems that affect the customer experiencetriage_needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions