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

Add doc titles to ES UI apps #71045

Merged
merged 6 commits into from
Jul 21, 2020

Conversation

cjcenizal
Copy link
Contributor

@cjcenizal cjcenizal commented Jul 8, 2020

Fixes #69286

Applies to CCR, ILM, Index Management, Ingest Node Pipelines, License Management, Remote Clusters, Rollup Jobs, Watcher, and Upgrade Assistant. Also, this PR clears the doc title when leaving Dev Tools.

@cjcenizal cjcenizal added Feature:Dev Tools Feature:License Feature:Index Management Index and index templates UI Feature:CCR and Remote Clusters Feature:ILM v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes Feature:Rollups Feature:Upgrade Assistant v7.9.0 Feature:Ingest Node Pipelines Ingest node pipelines management labels Jul 8, 2020
@cjcenizal cjcenizal requested a review from jloleysens July 8, 2020 05:03
@cjcenizal cjcenizal requested a review from a team as a code owner July 8, 2020 05:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

…License Management, Remote Clusters, Rollup Jobs, and Upgrade Assistant. Clear doc title when leaving Dev Tools.
@cjcenizal cjcenizal force-pushed the bug/es-ui-apps-doc-titles branch from b190726 to 661db66 Compare July 8, 2020 15:07
@cjcenizal cjcenizal added v7.10.0 and removed v7.9.0 labels Jul 13, 2020
@jloleysens
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

@cjcenizal Great work and thanks for fixing this! I see my original issue was missing "Watcher" from this list. Would you mind also updating that mount logic there?

@@ -203,6 +203,7 @@ export function renderApp(
});

return () => {
chrome.docTitle.reset();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could add this to the management plugin (in OSS) too, so that when the management area renders/mounts, before any plugins have rendered, we always reset the doc title. Instead of in the clean up function we do this on init.

Copy link
Contributor Author

@cjcenizal cjcenizal Jul 17, 2020

Choose a reason for hiding this comment

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

I see what you're saying, and I think I'd like to encourage each app to clean up after itself instead. I think it's likely that we'll move apps out of Management and when that happens it will be reassuring to know that this behavior is encapsulated within each plugin and won't be broken by the move.

@@ -60,6 +63,12 @@ export class CrossClusterReplicationPlugin implements Plugin {
history,
getUrlForApp,
});

return () => {
// Change tab label back to Kibana.
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW I think this comment should be updated to "...back to Elastic" because that is the actual value. I think we could actually remove this comment entirely as I think the function name and object name are descriptive enough :)

@cjcenizal cjcenizal force-pushed the bug/es-ui-apps-doc-titles branch from b3d8093 to f7d5c4a Compare July 17, 2020 21:27
@cjcenizal
Copy link
Contributor Author

cjcenizal commented Jul 17, 2020

Thanks for the review @jloleysens! I've removed the comments and I decided not to act on your other suggestion. Could you please take another look?

@jloleysens
Copy link
Contributor

@elasticmachine merge upstream

@jloleysens
Copy link
Contributor

@cjcenizal Thanks for addressing the point regarding the comments. Happy with your decision regarding management plugin.

However I still think we should include fixing watcher's page title here.

@jloleysens
Copy link
Contributor

Per my review comment :)

- Refactor boot file to follow index-oriented pattern of other plugins.
@cjcenizal
Copy link
Contributor Author

@jloleysens Thanks for reminding me about Watcher! Done. Can you take another look?

Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

Thanks for fixing watcher too!

All looks good to me now, great work @cjcenizal !

@jloleysens
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
devTools 6.5KB +24.0B 6.4KB
indexManagement 1.5MB +219.0B 1.5MB
watcher 599.4KB +62.0B 599.3KB
total - +305.0B -

page load bundle size

id value diff baseline
crossClusterReplication 192.2KB +223.0B 192.0KB
indexLifecycleManagement 238.2KB +177.0B 238.1KB
ingestPipelines 32.4KB +1.8KB 30.7KB
licenseManagement 27.0KB +197.0B 26.8KB
remoteClusters 35.1KB +263.0B 34.8KB
rollup 224.7KB +1.7KB 223.0KB
upgradeAssistant 51.9KB +1.8KB 50.2KB
watcher 36.3KB +240.0B 36.1KB
total - +6.3KB -

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cjcenizal added a commit that referenced this pull request Jul 21, 2020
* Add doc titles to CCR, ILM, Index Management, Ingest Node Pipelines, License Management, Remote Clusters, Rollup Jobs, Watcher, and Upgrade Assistant. Clear doc title when leaving Dev Tools.
* Refactor Watcher boot file to follow index-oriented pattern of other plugins.
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 21, 2020
* master:
  [Security Solution][Timeline] Add Empty view to the Timelines page (elastic#72576)
  [Security Solution][Resolver] Show process detail panel when clicking a process node (elastic#72563)
  Move manifest packageConfig mocks into security_solution plugin (elastic#72527)
  [QA][Code Coverage] Fixup Team Assignment (elastic#72467)
  [docs] remove references to tile map visualization in supported aggregations (elastic#72493)
  [ci][apm-ui] fix argument name for disabling pr comments (elastic#72633)
  Only check that the event ids are the same in arrays (elastic#72624)
  Add doc titles to ES UI apps (elastic#71045)
  Add Upgrade Assistant API integration test to ensure the reindex operation saved object can handle immense error messages (elastic#72347)
  [APM] Disable flaky rum e2e’s (elastic#72614)
  Applying tiny fix from 72532 to main branch (elastic#72533)
  [APM] Update script with new roles/users (elastic#72599)
  [Security Solution] Add margin (elastic#72542)
  Migrated fixed_scroll karma tests to jest (elastic#72258)
  [ML] Handling data recognizer saved object errors (elastic#72447)
  [Monitoring] Fix the messaging around needing TLS enabled (elastic#72310)
  [Task Manager] Batches the update operations in Task Manager  (elastic#71470)
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 22, 2020
…feature-privileges

* alerting/consumer-based-rbac:
  [Security Solution][Timeline] Add Empty view to the Timelines page (elastic#72576)
  [Security Solution][Resolver] Show process detail panel when clicking a process node (elastic#72563)
  renamed variable to make it clear the SO client is unsecured
  Move manifest packageConfig mocks into security_solution plugin (elastic#72527)
  [QA][Code Coverage] Fixup Team Assignment (elastic#72467)
  [docs] remove references to tile map visualization in supported aggregations (elastic#72493)
  [ci][apm-ui] fix argument name for disabling pr comments (elastic#72633)
  Only check that the event ids are the same in arrays (elastic#72624)
  includes hidden params type in SO client
  Add doc titles to ES UI apps (elastic#71045)
  Add Upgrade Assistant API integration test to ensure the reindex operation saved object can handle immense error messages (elastic#72347)
  [APM] Disable flaky rum e2e’s (elastic#72614)
  Applying tiny fix from 72532 to main branch (elastic#72533)
  [APM] Update script with new roles/users (elastic#72599)
  [Security Solution] Add margin (elastic#72542)
  Migrated fixed_scroll karma tests to jest (elastic#72258)
  [ML] Handling data recognizer saved object errors (elastic#72447)
  [Monitoring] Fix the messaging around needing TLS enabled (elastic#72310)
  [Task Manager] Batches the update operations in Task Manager  (elastic#71470)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:CCR and Remote Clusters Feature:Dev Tools Feature:ILM Feature:Index Management Index and index templates UI Feature:Ingest Node Pipelines Ingest node pipelines management Feature:License Feature:Rollups Feature:Upgrade Assistant release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ES UI] Management Section Page Titles are not getting set
4 participants