Skip to content
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

[8.15] Update configuration on changes in category/advanced configurations in configView (#195567) #195707

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.15:

Questions ?

Please refer to the Backport tool documentation

…n configView (elastic#195567)

## Closes elastic/search-team#6557

## Summary

Fixes a known bug for Network Drive connector (as this feature is only
used in it). The problem happens when there are Rich Configurable Fields
that are marked as "advanced" and depend on certain fields - in some
cases this field will not be shown until the page is fully reloaded.

Criteria that makes the bug happen:

1. Have some RCFs that are marked as "advanced":
https://github.com/elastic/connectors/blob/main/connectors/sources/network_drive.py#L405-L414.
(`"ui_restrictions": ["advanced"]`)
2. Make it so that this RCF depends on another field, and by default is
hidden - for example this field depends on a field "OS" that has
"Windows" and "Linux" as available options and Windows is default, but
this RCF depends on it being "Linux"
3. Try satisfying the dependency and see if the RCF is displayed - it
won't be, unless you save the form and reload it

The problem happens because for changes in "advanced" section the
configuration is not updated, so the view that's rendered still thinks
that the dependency is not satisfied and the field should not be
rendered

Before:

https://github.com/user-attachments/assets/51f9f8b0-a57a-4d96-a183-6dbbd36a919e

After:

https://github.com/user-attachments/assets/be32f434-0810-4345-bc4e-dc82f617705c

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit 72c76f9)
@kibanamachine kibanamachine merged commit 2372820 into elastic:8.15 Oct 10, 2024
22 of 23 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 2.6MB 2.6MB +150.0B
serverlessSearch 323.0KB 323.1KB +130.0B
total +280.0B

History

cc @artem-shelkovnikov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants