-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Connectors][API] Updated connectors with isMissingSecrets flag #98223
[Connectors][API] Updated connectors with isMissingSecrets flag #98223
Conversation
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
@ymao1 I've added you as a reviewer to ensure this aligns with what you were thinking for import/export. |
I tried testing out the migration by running
I see the addition of the field within the actions mapping.json, so maybe I'm doing something wrong? 🤔 |
@ymao1 (just popping my head) This may be happening bacause the migrations got skipped. It may have detected you were on the same Kibana version as master. If true, to make migrations happen, you'd need to run a prior version (ex: 7.x) ES + Kibana and then upgrade both. If you're using snapshots, you'll also need to make it persist the Elasticsearch data by using something like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a minor comment about formatting in the legacy API docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Threat hunting LGTM
@XavierM Do we need to do a migration in the detection rules area like we had to do last time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Saved Objects .kibana field count
History
To update your PR or re-run it, just comment with: cc @YulNaumenko |
…tic#98223) * [Connectors][API] Updated connectors with enabledAfterImport flag * fixed functional tests * added new field to connectors API docs * added update unit test * fixed test * renamed enableAfterImport to isMissingSecrets * removed onExport * revert the logic of true/false for isMissingSecrets * fixed test * fixed tests * added unit test * fixed docs * fixed import text and button labels * fixed import text * fixed text
…) (#98552) * [Connectors][API] Updated connectors with enabledAfterImport flag * fixed functional tests * added new field to connectors API docs * added update unit test * fixed test * renamed enableAfterImport to isMissingSecrets * removed onExport * revert the logic of true/false for isMissingSecrets * fixed test * fixed tests * added unit test * fixed docs * fixed import text and button labels * fixed import text * fixed text
…tic#98223) * [Connectors][API] Updated connectors with enabledAfterImport flag * fixed functional tests * added new field to connectors API docs * added update unit test * fixed test * renamed enableAfterImport to isMissingSecrets * removed onExport * revert the logic of true/false for isMissingSecrets * fixed test * fixed tests * added unit test * fixed docs * fixed import text and button labels * fixed import text * fixed text
Resolves #94106
Current PR extended connectors server API with the new field
isMissingSecrets
, which is readonly from the API.Update connectors APIs -
create
andupdate
always setisMissingSecrets
as true.Add migration to add
isMissingSecrets
: true to all existing connectors.For the exported connectors ndjson:
Export will be done in the separate issue