Fixes #38916 - Update EditorHostSelect to pf5#10777
Fixes #38916 - Update EditorHostSelect to pf5#10777MariaAga merged 1 commit intotheforeman:developfrom
Conversation
kfamilonidis
left a comment
There was a problem hiding this comment.
Good approach. It would help to cherry-pick these changes to align with the tests already written for this part here.
|
I didnt read the code yet, but isnt
The same as this pr? #10734 |
@MariaAga mostly the same but EditorHostSelect has some extra properties and I don't really know whether adjusting AutocompleteInput to replace EditorHostSelect won't break the use of AutocompleteInput in other places. |
|
Took a brief look at the changes and also at airgun:
|
f711332 to
021d67b
Compare
021d67b to
11565a3
Compare
|
After discussion with @Lukshio we determined that it is more beneficial to first update EditorHostSelect to PF5, then update the EditorNavBar to PF5 as the parent component. |
11565a3 to
2247d10
Compare
|
Couple things found during PR testing:
If you have selected a host (given the host has ID
|
2247d10 to
dff0c35
Compare
b055393 to
a057d2b
Compare
There was a problem hiding this comment.
@adamlazik1 I think that this PR has gone too far with the changes, so now it should be better to start from the original code.
I wrote some comments, but overall: the complexity of the code has reached unwanted state where lot of things are being rewritten/remapped.
I've created minimal patch that should solve all of the issues with minimal changes. Try to apply the patch, if it will work correctly, as it does in my setup, new testing from @pnovotny will be needed.
a057d2b to
b86e11a
Compare
|
Thanks @Lukshio, I applied your patch and confirmed that EditorHostSelect appears to work as intended. |
bef12a5 to
6478a25
Compare
|
Looks good, I also verified webhooks with new autocomplete, looks ok. @pnovotny please check QE side. @adamlazik1 just fix the failing tests. |
|
Reverified with the latest add-ons. QA-wise LGTM 👍 The issues from my last verification are fixed:
|
3db64f9 to
e1165c1
Compare
|
I also add my ack. It looks kida weird to have lot of "changes" in tree, but that was just rebase. Confirmed that code didn't change since @pnovotny lgtm. |
Use the shared PF5 AutocompleteInput for the template editor preview host field. Drop patternfly-react-extensions and its webpack vendor bundle and SCSS imports now that the editor no longer uses the extensions Select component. Co-authored-by: Lukas Jezek <ljezek@redhat.com>
e1165c1 to
779ff0d
Compare
Lukshio commented "I also add my ack."
|
@theforeman/packaging:
@evgeni |
Use the shared PF5 AutocompleteInput for the template editor preview host
field.
Drop patternfly-react-extensions and its webpack vendor bundle and SCSS
imports now that the editor no longer uses the extensions Select
component.
Co-authored-by: Lukas Jezek ljezek@redhat.com