Skip to content

[kbn/optimizer] fix ui/* url rewrites in dist#58627

Merged
spalger merged 11 commits intoelastic:masterfrom
spalger:fix/url-rewrites-in-dist-styles
Mar 2, 2020
Merged

[kbn/optimizer] fix ui/* url rewrites in dist#58627
spalger merged 11 commits intoelastic:masterfrom
spalger:fix/url-rewrites-in-dist-styles

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Feb 26, 2020

In #57869 we added support for rewriting url(ui/*) mentions in styles in Kibana Platform plugins to the legacy files they are referencing. This worked in dev because the resolve-url-loader uses source maps to do it's magic, but it didn't work when building for the distributable. It now does because we tell the sass-loader to create source maps and then discard them in the downstream loader, but now we have them long enough to rewrite the url(ui/*) usages.

@spalger spalger added release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0 labels Feb 26, 2020
@spalger spalger force-pushed the fix/url-rewrites-in-dist-styles branch 4 times, most recently from 10d6a5d to 0ff1d05 Compare February 26, 2020 22:26
@spalger spalger force-pushed the fix/url-rewrites-in-dist-styles branch from 0ff1d05 to ed0e9d0 Compare February 26, 2020 22:27
@spalger spalger marked this pull request as ready for review February 28, 2020 00:57
@spalger spalger requested review from a team as code owners February 28, 2020 00:57
@spalger spalger added the Team:Operations Kibana-Operations Team label Feb 28, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Mar 2, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

Copy link
Copy Markdown
Contributor

@mistic mistic left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

New property looks good to me 👍

@spalger spalger merged commit bb6fd0b into elastic:master Mar 2, 2020
spalger pushed a commit to spalger/kibana that referenced this pull request Mar 2, 2020
* [kbn/optimizer] fix ui/* url rewrites in dist

* add tests to verify styles are built correctly and ui-rewrites are happening

* clarify change to dirs creation

* create tested & shared parsePath helper

* update renovate config

* split implementation of parsePath for dir and file paths

* switch to valid css property

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
spalger pushed a commit that referenced this pull request Mar 3, 2020
* [kbn/optimizer] fix ui/* url rewrites in dist

* add tests to verify styles are built correctly and ui-rewrites are happening

* clarify change to dirs creation

* create tested & shared parsePath helper

* update renovate config

* split implementation of parsePath for dir and file paths

* switch to valid css property

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@spalger
Copy link
Copy Markdown
Contributor Author

spalger commented Mar 3, 2020

7.x/7.7: 1254203

@spalger spalger deleted the fix/url-rewrites-in-dist-styles branch March 3, 2020 00:18
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 3, 2020
* master: (26 commits)
  [Endpoint] Alert Details Overview (elastic#58412)
  Service map language icons (elastic#58633)
  [SIEM] [Case] Comments to case view (elastic#58315)
  Remove appBasePath from docs + add mock for AppMountParameters (elastic#58775)
  [kbn/optimizer] fix ui/* url rewrites in dist (elastic#58627)
  Dashboard a11y tests (elastic#58122)
  Downgrade "setting up plugin" log to debug (elastic#58776)
  [CI] Pipeline refactoring (elastic#56447)
  [Advanced Settings] Fix a11y of unsaved indicator (elastic#58511)
  put params into short url instead of behind it (elastic#58846)
  show timepicker in timelion and tsvb (elastic#58857)
  improve graph missing workspace error message (elastic#58876)
  [Maps] direct Discover "visualize" to open Maps application (elastic#58549)
  Disallow duplicate percentiles (elastic#57444) (elastic#58299)
  removing references to visTypes uiExports (elastic#58337)
  [SIEM] Default the Timeline events filter to show All events (elastic#58953)
  [Remote clusters] Add indexManagement as required plugin (elastic#58915)
  [DOCS] Rework of main get started page (elastic#58260)
  [Endpoint] [Tests] fixes elastic#57946 flaky endpoint policy list test (elastic#58348)
  [Endpoint] add resolver middleware (elastic#58288)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 3, 2020
…s/kibana into alerting/fix-flaky-instance-test

* 'alerting/fix-flaky-instance-test' of github.com:gmmorris/kibana:
  [Endpoint] Alert Details Overview (elastic#58412)
  Service map language icons (elastic#58633)
  [SIEM] [Case] Comments to case view (elastic#58315)
  Remove appBasePath from docs + add mock for AppMountParameters (elastic#58775)
  [kbn/optimizer] fix ui/* url rewrites in dist (elastic#58627)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants