Skip to content

Commit

Permalink
[EDU-4623] fix: adjusting API Key field description for Elasticsearch…
Browse files Browse the repository at this point in the history
… endpoints - Data Stream (#2135)

* fix: adjusting API Key field description for Elasticsearch endpoints - Data Stream

* Update src/views/DataStream/FormFields/FormFieldsDataStream.vue
  • Loading branch information
MarianaAguilera authored Feb 26, 2025
1 parent 08fb5bf commit 7aff52c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/views/DataStream/CreateView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}),
apiKey: yup.string().when('endpoint', {
is: 'elasticsearch',
then: (schema) => schema.required('API Key is a required field')
then: (schema) => schema.required('Encoded API Key is a required field')
}),
// splunk
Expand Down
2 changes: 1 addition & 1 deletion src/views/DataStream/EditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
}),
apiKey: yup.string().when('endpoint', {
is: 'elasticsearch',
then: (schema) => schema.required('API Key is a required field')
then: (schema) => schema.required('Encoded API Key is a required field')
}),
// splunk
Expand Down
6 changes: 3 additions & 3 deletions src/views/DataStream/FormFields/FormFieldsDataStream.vue
Original file line number Diff line number Diff line change
Expand Up @@ -654,13 +654,13 @@
<div class="flex flex-col sm:max-w-lg w-full gap-2">
<FieldTextArea
:disabled="hasNoPermissionToEditDataStream"
label="API Key"
label="Encoded API Key"
required
name="apiKey"
:value="apiKey"
rows="5"
placeholder="VuaCfGcBCdbkQm-e5aOx:ui2lp2axTNmsyakw9tvNnw"
description="API key used for Elasticsearch authorization in base64 encode format."
placeholder="VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw=="
description="Base64 key corresponding to the encoded value generated while creating the API Key in ElasticSearch."
data-testid="data-stream-form__destination__api-key-field"
/>
</div>
Expand Down

0 comments on commit 7aff52c

Please sign in to comment.