Skip to content

Conversation

@tsullivan
Copy link
Member

@tsullivan tsullivan commented Oct 3, 2019

Summary

Closes #45427

This PR replaces the Reporting Job Completion Notifier hack with New Platform plugin to run on the background of every page.

@tsullivan tsullivan force-pushed the reporting/np-job-completion-notifier branch from b0000e9 to a2990a6 Compare October 3, 2019 22:25
@tsullivan tsullivan changed the title Reporting/np job completion notifier [Reporting] Replace Job Completion Notifier as NP Plugin Oct 4, 2019
@tsullivan tsullivan force-pushed the reporting/np-job-completion-notifier branch 3 times, most recently from 39d29ea to 0894f7c Compare October 7, 2019 21:29
@tsullivan tsullivan added v7.5.0 v8.0.0 Feature:NP Migration zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:Stack Services labels Oct 8, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-services (Team:Stack Services)

@tsullivan tsullivan force-pushed the reporting/np-job-completion-notifier branch from 9effb88 to a388775 Compare October 8, 2019 20:34
@elastic elastic deleted a comment from elasticmachine Oct 8, 2019
@elastic elastic deleted a comment from elasticmachine Oct 8, 2019
@elastic elastic deleted a comment from elasticmachine Oct 8, 2019
@elastic elastic deleted a comment from elasticmachine Oct 8, 2019
@elastic elastic deleted a comment from elasticmachine Oct 8, 2019
@tsullivan tsullivan force-pushed the reporting/np-job-completion-notifier branch from a388775 to 12ef096 Compare October 8, 2019 20:35
@tsullivan tsullivan force-pushed the reporting/np-job-completion-notifier branch from 12ef096 to 366408d Compare October 8, 2019 20:36
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

method: 'GET',
config: getRouteConfig(),
handler: (request: Request) => {
// @ts-ignore
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated cleanup of TS

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@bmcconaghy bmcconaghy left a comment

Choose a reason for hiding this comment

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

Code LGTM. I would recommend getting someone from @elastic/kibana-platform to review this too.


public setup(core: CoreSetup) {}

// FIXME: only perform these actions for authenticated routes
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this behave now? Will it throw errors when unauthenticated?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@joshdover joshdover left a comment

Choose a reason for hiding this comment

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

Should the reporting_notifier be a separate plugin than reporting? It seems to me we'd want xpack.reporting.enabled=false config to also disable this piece. Other than that, LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@tsullivan tsullivan merged commit f157f79 into elastic:master Oct 18, 2019
@tsullivan tsullivan deleted the reporting/np-job-completion-notifier branch October 18, 2019 23:20
tsullivan added a commit to tsullivan/kibana that referenced this pull request Oct 18, 2019
* [Reporting] Replace Job Completion Notifier as NP Plugin

* beautiful toasts

* unit test

* showNotifications returns observable

* fix kibana.json

* depends on links

* no prettier ignore

* Update content per feedback

* Remove unnecessary wrapper

* remove type annos and condense

* use an observable of the stop method

* rename the new platform plugin to match legacy

* fix i18n config

* additional plugin rename

* i18n strings prefix change

* try something with x-pack/.i18nrc.json

* remove a few more notifier phrasing from plugin definition
tsullivan added a commit that referenced this pull request Oct 21, 2019
…8703)

* [Reporting] Replace Job Completion Notifier as NP Plugin

* beautiful toasts

* unit test

* showNotifications returns observable

* fix kibana.json

* depends on links

* no prettier ignore

* Update content per feedback

* Remove unnecessary wrapper

* remove type annos and condense

* use an observable of the stop method

* rename the new platform plugin to match legacy

* fix i18n config

* additional plugin rename

* i18n strings prefix change

* try something with x-pack/.i18nrc.json

* remove a few more notifier phrasing from plugin definition

public setup(core: CoreSetup) {}

// FIXME: only perform these actions for authenticated routes
Copy link
Member Author

Choose a reason for hiding this comment

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

Follow up note: this can be possibly be achieved better by registering the job completion notifier as a component of something global for authenticated screens in Kibana, such as the nav header. This is what the Newsfeed Service does, and it is effectively prevented from fetching for news on the Login page due to there being no Nav Header on the Login page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes review v7.5.0 v8.0.0 zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Reporting job completion notifier to New Platform

5 participants