-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[App Search] Support the warning state for crawler validation steps #110864
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
[App Search] Support the warning state for crawler validation steps #110864
Conversation
orhantoy
left a comment
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.
Looks good 💪 Just found a few minor things.
| expect(wrapper.find(EuiIcon).prop('color')).toEqual('success'); | ||
| }); | ||
|
|
||
| it('shows an alert icon when invalid', () => { |
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.
Should this have been
| it('shows an alert icon when invalid', () => { | |
| it('shows a warning icon when invalid', () => { |
?
...c/applications/app_search/components/crawler/components/add_domain/validation_state_icon.tsx
Show resolved
Hide resolved
| }); | ||
| it('does not display the passed error message or action when state is not invalid', () => { | ||
|
|
||
| it('displays the passed error message and action is warning', () => { |
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.
Should this have been
| it('displays the passed error message and action is warning', () => { | |
| it('displays the passed error message and action when state is warning', () => { |
?
| const wrapper = shallow( | ||
| <ValidationStepPanel | ||
| step={{ state: 'warning', message: errorMessage }} | ||
| label={'initialValidation'} |
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.
Couldn't we assign directly here like
| label={'initialValidation'} | |
| label='initialValidation' |
?
|
Thanks for the review @orhantoy sorry this was a little sloppy. |
orhantoy
left a comment
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.
🏆
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
Summary
This mirrors work already done in the standalone UI.
Checklist