-
Notifications
You must be signed in to change notification settings - Fork 392
RI-7217 allow to deplot rdi pipeline with validation errors #4796
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
RI-7217 allow to deplot rdi pipeline with validation errors #4796
Conversation
Code Coverage - Frontend unit tests
Test suite run success4846 tests passing in 635 suites. Report generated by 🧪jest coverage report action from c9ed88c |
<Text> | ||
<ul> | ||
{validationErrors.map((err, index) => ( | ||
// eslint-disable-next-line react/no-array-index-key | ||
<li key={index}>{err}</li> |
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.
not sure if should be used as top level wrapper of ul
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.
it is pointless to wrap ul
in p
, it just
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.
|
||
return ( | ||
<> | ||
{validationErrors?.length && ( | ||
<Text> | ||
<ul> | ||
{validationErrors.map((err, index) => ( | ||
// eslint-disable-next-line react/no-array-index-key | ||
<li key={index}>{err}</li> | ||
))} | ||
</ul> | ||
</Text> | ||
)} |
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.
return ( | |
<> | |
{validationErrors?.length && ( | |
<Text> | |
<ul> | |
{validationErrors.map((err, index) => ( | |
// eslint-disable-next-line react/no-array-index-key | |
<li key={index}>{err}</li> | |
))} | |
</ul> | |
</Text> | |
)} | |
if(!validationErrors?.length) { | |
return null | |
} | |
return ( | |
<ul> | |
{validationErrors.map((err, index) => ( | |
// eslint-disable-next-line react/no-array-index-key | |
<li key={index}>{err}</li> | |
))} | |
</ul> | |
) |
a3a28b5
into
fe/feature/RI-7039-replace-eui
* RI-7217 allow to deplot rdi pipeline with validation errors * align text and icon * RI-7217 move errors list to a separate component and add tests * RI-7217 fix PR comments * RI-7217 fix test --------- Co-authored-by: pd-redis <[email protected]> (cherry picked from commit a3a28b5)
* RI-7217 allow to deplot rdi pipeline with validation errors (#4796) * RI-7217 allow to deplot rdi pipeline with validation errors * align text and icon * RI-7217 move errors list to a separate component and add tests * RI-7217 fix PR comments * RI-7217 fix test --------- Co-authored-by: pd-redis <[email protected]> (cherry picked from commit a3a28b5) * RI-7186 validate job name separately (#4804) * RI-7186 validate job name separately * RI-7186 add tests (cherry picked from commit 2e5d9ee) --------- Co-authored-by: pd-redis <[email protected]>
Show validation errors in a tooltips and do not block deploy button in case of validation errors


