You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add namespaceStringToId and namespaceIdToString methods to core
Now that saved objects' `namespaces` are exposed, we should provide
a method to compare these strings to namespace IDs. The Spaces
plugin already provided utility functions for this; I changed them
to be a facade over the new core functions. The reason for this is
that other plugins (alerting, actions) depend on the Spaces plugin
and will use an `undefined` namespace if the Spaces plugin is not
enabled.
Copy file name to clipboardExpand all lines: docs/development/core/server/kibana-plugin-core-server.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,6 +219,8 @@ The plugin integrates with the core system via lifecycle events: `setup`<!-- -->
219
219
| Variable | Description |
220
220
| --- | --- |
221
221
|[kibanaResponseFactory](./kibana-plugin-core-server.kibanaresponsefactory.md)| Set of helpers used to create <code>KibanaResponse</code> to form HTTP response on an incoming request. Should be returned as a result of [RequestHandler](./kibana-plugin-core-server.requesthandler.md) execution. |
222
+
|[namespaceIdToString](./kibana-plugin-core-server.namespaceidtostring.md)| Converts a given saved object namespace ID to its string representation. All namespace IDs have an identical string representation, with the exception of the <code>undefined</code> namespace ID (which has a namespace string of <code>'default'</code>). |
223
+
|[namespaceStringToId](./kibana-plugin-core-server.namespacestringtoid.md)| Converts a given saved object namespace string to its ID representation. All namespace strings have an identical ID representation, with the exception of the <code>'default'</code> namespace string (which has a namespace ID of <code>undefined</code>). |
222
224
|[ServiceStatusLevels](./kibana-plugin-core-server.servicestatuslevels.md)| The current "level" of availability of a service. |
223
225
|[validBodyOutput](./kibana-plugin-core-server.validbodyoutput.md)| The set of valid body.output |
Converts a given saved object namespace ID to its string representation. All namespace IDs have an identical string representation, with the exception of the `undefined` namespace ID (which has a namespace string of `'default'`<!---->).
Converts a given saved object namespace string to its ID representation. All namespace strings have an identical ID representation, with the exception of the `'default'` namespace string (which has a namespace ID of `undefined`<!---->).
0 commit comments