-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Mappings editor] Add component integration tests #63853
Conversation
7078966
to
5ea0be5
Compare
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
d85f23c
to
fb4d980
Compare
@elasticmachine merge upstream |
1 similar comment
@elasticmachine merge upstream |
@cuff-links Thanks for the review! To modify the jest script this would be something to ask to the operation team if we think it is worth it. |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
Great work, Seb! Code looks great overall. I had a few suggestions that would have helped me understand the tests and also a couple of questions. I'd love to see them addressed but I don't think we need to block on them.
x-pack/plugins/index_management/public/application/components/mappings_editor/lib/utils.test.ts
Show resolved
Hide resolved
.../application/components/mappings_editor/__jest__/client_integration/mappings_editor.test.tsx
Outdated
Show resolved
Hide resolved
...ion/components/mappings_editor/__jest__/client_integration/datatypes/shape_datatype.test.tsx
Show resolved
Hide resolved
...tion/components/mappings_editor/__jest__/client_integration/datatypes/text_datatype.test.tsx
Show resolved
Hide resolved
...tion/components/mappings_editor/__jest__/client_integration/datatypes/text_datatype.test.tsx
Outdated
Show resolved
Hide resolved
...tion/components/mappings_editor/__jest__/client_integration/datatypes/text_datatype.test.tsx
Show resolved
Hide resolved
...tion/components/mappings_editor/__jest__/client_integration/datatypes/text_datatype.test.tsx
Show resolved
Hide resolved
...omponents/mappings_editor/components/document_fields/field_parameters/analyzer_parameter.tsx
Show resolved
Hide resolved
.../application/components/mappings_editor/components/configuration_form/configuration_form.tsx
Show resolved
Hide resolved
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Thanks for the review @cjcenizal ! I address most of your concerns 👍 |
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…ttional-flaky * upstream/master: (49 commits) Move remaining home assets to the new platform (elastic#65053) Change the copy and the id from blacklist to block list for consistency (elastic#65419) [ML] Hide selector helper in Anomaly Explorer swimlane (elastic#65522) [ML] Fix the limit control on the Anomaly explorer page (elastic#65459) [Mappings editor] Add component integration tests (elastic#63853) [Logs + Metrics UI] Prevent component errors from breaking the whole UI (elastic#65456) [Logs UI] Disable search bar when live stream is on. (elastic#65491) fix SavedObjectMigrationMap type (elastic#65569) [Uptime] Improve cert flaky test (elastic#65458) [Uptime] Fix monitor list result runtime type, ip can be null (elastic#65532) [APM] Agent configuration: Bug makes it possible to create invalid configurations (elastic#65508) [APM] Remove link from active page in the breadcrumb (elastic#65473) [SIEM] Fixes test flakiness (elastic#65510) [ESLint] update @kbn/eslint/no-restricted-paths rule to allow imports mocks from folder (elastic#65471) Migrate test plugins ⇒ NP (kbn_tp_run_pipeline) (elastic#64780) move core provier to NP. allows to run tests on every page (elastic#64929) Extended alerting documentation with information about using Kibana keystore and action types for preconfigured connectors (elastic#65201) [functional tests] add some missing awaits (elastic#65566) Fixed create new connector from alert flyout form throw an error messages in external plugins. (elastic#65539) [SIEM] [Cases] External services not getting all comments bug fix (elastic#65307) ...
* master: [ML] Transforms: Fix API error message display for edit flyout. (elastic#65494) [SIEM][Detection Engine] Fixes import bug with non existent signals index (elastic#65595) [Lens] Use rules of hooks with linting (elastic#65593) [ML] Migrate server side Mocha tests to Jest. (elastic#65651) Fixes the client to setup SSL with the CA certificates for testing (elastic#65598) reduce uptime plugin initial bundle size (elastic#65257) [ML] Consolidating shared types and util functions (elastic#65247) [Drilldowns] Preserve state when selecting different action factory (elastic#65074) Migrate test plugins ⇒ NP (kbn_tp_embeddable_explorer) (elastic#64756) Move remaining home assets to the new platform (elastic#65053) Change the copy and the id from blacklist to block list for consistency (elastic#65419) [ML] Hide selector helper in Anomaly Explorer swimlane (elastic#65522) [ML] Fix the limit control on the Anomaly explorer page (elastic#65459) [Mappings editor] Add component integration tests (elastic#63853) [Logs + Metrics UI] Prevent component errors from breaking the whole UI (elastic#65456) [Logs UI] Disable search bar when live stream is on. (elastic#65491)
…ponents * alerting/lazy-load-actions: align and style loading indicator [ML] Transforms: Fix API error message display for edit flyout. (elastic#65494) [SIEM][Detection Engine] Fixes import bug with non existent signals index (elastic#65595) [Lens] Use rules of hooks with linting (elastic#65593) [ML] Migrate server side Mocha tests to Jest. (elastic#65651) Fixes the client to setup SSL with the CA certificates for testing (elastic#65598) reduce uptime plugin initial bundle size (elastic#65257) [ML] Consolidating shared types and util functions (elastic#65247) [Drilldowns] Preserve state when selecting different action factory (elastic#65074) Migrate test plugins ⇒ NP (kbn_tp_embeddable_explorer) (elastic#64756) Move remaining home assets to the new platform (elastic#65053) Change the copy and the id from blacklist to block list for consistency (elastic#65419) [ML] Hide selector helper in Anomaly Explorer swimlane (elastic#65522) [ML] Fix the limit control on the Anomaly explorer page (elastic#65459) [Mappings editor] Add component integration tests (elastic#63853) [Logs + Metrics UI] Prevent component errors from breaking the whole UI (elastic#65456) [Logs UI] Disable search bar when live stream is on. (elastic#65491)
This PR adds component integration tests coverage to the mappings editor.
What is currently tested
Core
object
types and adding default_meta
and_source
objects.value
andonChange
): make sure the component renders the correct values and that it forwards to the consumer component the changes.Mapped fields
properties
value
is providedEdit field
Datatypes
Text
Shape
Bug fixes
The following bugs have been fixed
Other changes
I also updated the Mappings editor props to follow the convention
value
instead ofdefaultValue
as the component can be controlled by the consumer and updates its internal state accordinglyonChange
instead of `onUpdatecc @cuff-links