Hi All,
Our team is having trouble getting our plugin to load on multiple spaces. We have created an index-pattern for each space. Below is the configuration for the index-patterns saved in Elasticsearch.
Space 1
{
"page": 1,
"per_page": 20,
"total": 1,
"saved_objects": [
{
"type": "index-pattern",
"id": "f7c83c95-fae5-4e9d-9f0a-9044b64dad0c",
"namespaces": [
"koat"
],
"originId": "7ba4d7f0-6bdc-11eb-9964-a72532fd2883",
"attributes": {
"name": "p-sent*"
},
"references": [],
"managed": false,
"migrationVersion": {
"index-pattern": "8.0.0"
},
"coreMigrationVersion": "8.8.0",
"typeMigrationVersion": "8.0.0",
"updated_at": "2023-10-20T16:30:39.569Z",
"created_at": "2023-09-20T14:58:17.378Z",
"version": "WzU0OTUwLDE3XQ==",
"score": 0
}
]
}
Space 2
{
"page": 1,
"per_page": 20,
"total": 1,
"saved_objects": [
{
"type": "index-pattern",
"id": "84cad637-2177-469c-a295-93d99976bb8f",
"namespaces": [
"koat-2"
],
"originId": "7ba4d7f0-6bdc-11eb-9964-a72532fd2883",
"attributes": {
"name": "p-sent*"
},
"references": [],
"managed": false,
"migrationVersion": {
"index-pattern": "8.0.0"
},
"coreMigrationVersion": "8.8.0",
"typeMigrationVersion": "8.0.0",
"updated_at": "2023-10-25T14:55:36.884Z",
"created_at": "2023-10-25T14:55:36.884Z",
"version": "WzU2MDM0LDE3XQ==",
"score": 0
}
]
}
Regardless of which space we try to load the plugin on, it attempts to get the first index-pattern. We have checked our codebase and found no instance of an id being hardcoded anywhere. Could this possibly be related to user and role configurations? Thanks in advance.