Skip to content

[serverless] Create the Serverless Plugin#155582

Merged
clintandrewhall merged 13 commits intoelastic:mainfrom
clintandrewhall:serverless/plugin
Apr 26, 2023
Merged

[serverless] Create the Serverless Plugin#155582
clintandrewhall merged 13 commits intoelastic:mainfrom
clintandrewhall:serverless/plugin

Conversation

@clintandrewhall
Copy link
Copy Markdown
Contributor

@clintandrewhall clintandrewhall commented Apr 24, 2023

Derived from #153274 for production.

Summary

This PR creates the serverless plugin for Kibana Serverless projects.

image

It uses the methodology proven out in the proof-of-concept (#153274) and prepares it for production:

  • Adds chrome style and related API to the chrome services.
  • Creates the serverless plugin.
  • Invokes the new chrome style API for all serverless projects.
  • Alters yarn scripts to support all project types, and switching between them.
  • Creates the new "Project Switcher" component for use in the new chrome header for Serverless.
  • Creates a Storybook config for this and future components.
  • Adds API endpoint to trigger project switching and Watcher restarts.

Screenshot 2023-04-26 at 10 44 01 AM

Next steps

@clintandrewhall clintandrewhall added review loe:large Large Level of Effort release_note:skip Skip the PR/issue when compiling release notes impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// ci:build-storybooks Project:Serverless Work as part of the Serverless project for its initial release v8.9.0 labels Apr 24, 2023
@clintandrewhall clintandrewhall requested review from a team as code owners April 24, 2023 03:23
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@github-actions
Copy link
Copy Markdown
Contributor

Documentation preview:

Copy link
Copy Markdown
Contributor

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

limits.yml / storybook aliases

Copy link
Copy Markdown
Contributor

@semd semd left a comment

Choose a reason for hiding this comment

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

LGTM for Security Solution requirements

clintandrewhall added a commit that referenced this pull request May 1, 2023
> Derived from #153274
> Builds upon #155582

## Summary

This PR creates the Serverless Observability plugin, based on the work
from #153274:

- creates the plugin,
- adds API to hide the solution navigation from Enterprise Search,
- calls that API if the chrome style is `project`.

<img width="1610" alt="Screenshot 2023-04-27 at 5 03 44 PM"
src="https://user-images.githubusercontent.com/297604/234990765-d6770650-41b3-4e94-ad7f-c6a22778d39a.png">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
clintandrewhall added a commit that referenced this pull request May 2, 2023
> Derived from #153274
> Builds upon #155582

## Summary

This PR creates the Serverless Security plugin, based on the work from
#153274:

- creates the plugin,
- adds API to hide the solution navigation from Security,
- calls that API if the chrome style is `project`.

<img width="1688" alt="Screenshot 2023-04-27 at 12 37 46 PM"
src="https://user-images.githubusercontent.com/297604/234979670-425bfb12-8194-4916-8f92-efff7804b577.png">

## Next Steps

- render the left nav from #153274
using an API provided by @elastic/appex-sharedux
  - this low-level API should be coming in the next few days.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
jeramysoucy added a commit that referenced this pull request Jan 26, 2024
…175565)

## Summary

In #155582, an `enabled` option was added to the `Security` plugin. This
option is not supported or documented. This PR reverts that change.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 26, 2024
…lastic#175565)

## Summary

In elastic#155582, an `enabled` option was added to the `Security` plugin. This
option is not supported or documented. This PR reverts that change.

(cherry picked from commit 4385dc1)
kibanamachine added a commit that referenced this pull request Jan 26, 2024
…ption (#175565) (#175692)

# Backport

This will backport the following commits from `main` to `8.12`:
- [Reverts erroneous addition of security plugin enabled config option
(#175565)](#175565)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jeramy
Soucy","email":"jeramy.soucy@elastic.co"},"sourceCommit":{"committedDate":"2024-01-26T15:16:03Z","message":"Reverts
erroneous addition of security plugin enabled config option
(#175565)\n\n## Summary\r\n\r\nIn #155582, an `enabled` option was added
to the `Security` plugin. This\r\noption is not supported or documented.
This PR reverts that
change.","sha":"4385dc157bccc42cf8a61801db582c41b6e9b297","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","release_note:skip","backport:prev-minor","v8.13.0"],"title":"Reverts
erroneous addition of security plugin enabled config
option","number":175565,"url":"https://github.com/elastic/kibana/pull/175565","mergeCommit":{"message":"Reverts
erroneous addition of security plugin enabled config option
(#175565)\n\n## Summary\r\n\r\nIn #155582, an `enabled` option was added
to the `Security` plugin. This\r\noption is not supported or documented.
This PR reverts that
change.","sha":"4385dc157bccc42cf8a61801db582c41b6e9b297"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175565","number":175565,"mergeCommit":{"message":"Reverts
erroneous addition of security plugin enabled config option
(#175565)\n\n## Summary\r\n\r\nIn #155582, an `enabled` option was added
to the `Security` plugin. This\r\noption is not supported or documented.
This PR reverts that
change.","sha":"4385dc157bccc42cf8a61801db582c41b6e9b297"}}]}]
BACKPORT-->

Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
…lastic#175565)

## Summary

In elastic#155582, an `enabled` option was added to the `Security` plugin. This
option is not supported or documented. This PR reverts that change.
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 155582 locally

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 24, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 155582 locally

6 similar comments
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 155582 locally

@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 155582 locally

@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 155582 locally

@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 155582 locally

@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 155582 locally

@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 155582 locally

@clintandrewhall clintandrewhall added backport:skip This PR does not require backporting and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Sep 3, 2024
@clintandrewhall clintandrewhall deleted the serverless/plugin branch September 3, 2024 14:25
clintandrewhall added a commit that referenced this pull request Feb 4, 2025
As titled. The Project Switcher was created in #155582 as a means of
allowing a developer to switch between project types without having to
restart Kibana. Since that first PR, Kibana *must* be started with a
particular project configuration in mind-- the switcher now does
nothing. This PR removes it and deprecates the config keys.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 4, 2025
As titled. The Project Switcher was created in elastic#155582 as a means of
allowing a developer to switch between project types without having to
restart Kibana. Since that first PR, Kibana *must* be started with a
particular project configuration in mind-- the switcher now does
nothing. This PR removes it and deprecates the config keys.

(cherry picked from commit 1f53a84)
kibanamachine added a commit that referenced this pull request Feb 4, 2025
…209446)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[chore][serverless] Remove dev-mode Project Switcher
(#209144)](#209144)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Clint Andrew
Hall","email":"clint.hall@elastic.co"},"sourceCommit":{"committedDate":"2025-02-04T04:55:21Z","message":"[chore][serverless]
Remove dev-mode Project Switcher (#209144)\n\nAs titled. The Project
Switcher was created in #155582 as a means of\nallowing a developer to
switch between project types without having to\nrestart Kibana. Since
that first PR, Kibana *must* be started with a\nparticular project
configuration in mind-- the switcher now does\nnothing. This PR removes
it and deprecates the config
keys.","sha":"1f53a8484edc0b830a4fa97f0a55547914749759","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","chore","release_note:skip","v9.0.0","Team:SharedUX","backport:prev-major","Project:Serverless","v9.1.0"],"title":"[chore][serverless]
Remove dev-mode Project
Switcher","number":209144,"url":"https://github.com/elastic/kibana/pull/209144","mergeCommit":{"message":"[chore][serverless]
Remove dev-mode Project Switcher (#209144)\n\nAs titled. The Project
Switcher was created in #155582 as a means of\nallowing a developer to
switch between project types without having to\nrestart Kibana. Since
that first PR, Kibana *must* be started with a\nparticular project
configuration in mind-- the switcher now does\nnothing. This PR removes
it and deprecates the config
keys.","sha":"1f53a8484edc0b830a4fa97f0a55547914749759"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209144","number":209144,"mergeCommit":{"message":"[chore][serverless]
Remove dev-mode Project Switcher (#209144)\n\nAs titled. The Project
Switcher was created in #155582 as a means of\nallowing a developer to
switch between project types without having to\nrestart Kibana. Since
that first PR, Kibana *must* be started with a\nparticular project
configuration in mind-- the switcher now does\nnothing. This PR removes
it and deprecates the config
keys.","sha":"1f53a8484edc0b830a4fa97f0a55547914749759"}}]}] BACKPORT-->

Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
drewdaemon pushed a commit to drewdaemon/kibana that referenced this pull request Feb 6, 2025
As titled. The Project Switcher was created in elastic#155582 as a means of
allowing a developer to switch between project types without having to
restart Kibana. Since that first PR, Kibana *must* be started with a
particular project configuration in mind-- the switcher now does
nothing. This PR removes it and deprecates the config keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:build-storybooks impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:large Large Level of Effort Project:Serverless Work as part of the Serverless project for its initial release release_note:skip Skip the PR/issue when compiling release notes review Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// v8.8.0 v8.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants