Skip to content

[dashboard] clean up dashboard setup and start contracts#212968

Merged
nreese merged 19 commits intoelastic:mainfrom
nreese:remove_dashboardFeatureFlagConfig
Mar 12, 2025
Merged

[dashboard] clean up dashboard setup and start contracts#212968
nreese merged 19 commits intoelastic:mainfrom
nreese:remove_dashboardFeatureFlagConfig

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Mar 3, 2025

  • remove locator from setup and start contract
  • remove dashboardFeatureFlagConfig from start contract

@nreese
Copy link
Contributor Author

nreese commented Mar 3, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Mar 3, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Mar 3, 2025

/ci

@nreese nreese changed the title [dashboard] remove dashboardFeatureFlagConfig from Dashboard start contract [dashboard] clean up dashboard setup and start contracts Mar 3, 2025
@nreese
Copy link
Contributor Author

nreese commented Mar 3, 2025

/ci

@nreese nreese force-pushed the remove_dashboardFeatureFlagConfig branch from d46b299 to d8ec413 Compare March 3, 2025 21:26
@nreese
Copy link
Contributor Author

nreese commented Mar 3, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Mar 3, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Mar 6, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@nreese
Copy link
Contributor Author

nreese commented Mar 6, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Mar 6, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Mar 6, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Mar 6, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Mar 6, 2025

/ci

@nreese nreese added the backport:version Backport to applied version labels label Mar 7, 2025
@botelastic botelastic bot added Feature:Drilldowns Embeddable panel Drilldowns Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. labels Mar 10, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presentation team changes LGTM!

registerActions({
plugins,
allowByValueEmbeddables: this.dashboardFeatureFlagConfig?.allowByValueEmbeddables,
allowByValueEmbeddables:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linking this here as we should't forget to remove this setting.

@darnautov darnautov self-requested a review March 11, 2025 10:21
Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ML changes LGTM

Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kibana.jsonc changes LGTM

@jennypavlova jennypavlova self-requested a review March 11, 2025 10:59
Copy link
Member

@jennypavlova jennypavlova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APM / Infra Changes LGTM!

@nreese
Copy link
Contributor Author

nreese commented Mar 11, 2025

@elasticmachine merge upstream

Copy link
Contributor

@consulthys consulthys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGT Stack Monitoring

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
apm 1886 1888 +2
dashboardEnhanced 85 87 +2
infra 1451 1453 +2
ml 2417 2419 +2
monitoring 653 655 +2
stackConnectors 325 327 +2
total +12

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
dashboard 97 91 -6
dashboardEnhanced 51 50 -1
triggersActionsUi 524 525 +1
total -6

Async chunks

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

id before after diff
apm 2.5MB 2.5MB +57.0B
infra 1.2MB 1.2MB +60.0B
ml 5.4MB 5.4MB +11.6KB
monitoring 642.3KB 642.3KB +77.0B
stackConnectors 615.2KB 615.3KB +42.0B
total +11.8KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dashboard 17.5KB 17.3KB -244.0B
dashboardEnhanced 15.1KB 15.1KB +30.0B
ml 79.6KB 79.5KB -21.0B
total -235.0B
Unknown metric groups

API count

id before after diff
dashboard 101 95 -6
dashboardEnhanced 54 53 -1
triggersActionsUi 530 531 +1
total -6

async chunk count

id before after diff
ml 112 111 -1

ESLint disabled line counts

id before after diff
dashboard 12 13 +1

References to deprecated APIs

id before after diff
apm 27 26 -1
dashboardEnhanced 12 11 -1
infra 2 1 -1
ml 60 55 -5
monitoring 5 4 -1
stackConnectors 2 0 -2
total -11

Total ESLint disabled count

id before after diff
dashboard 12 13 +1

Unreferenced deprecated APIs

id before after diff
dashboard 1 0 -1

History

@nreese nreese merged commit 377a812 into elastic:main Mar 12, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/13816696737

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 212968

Questions ?

Please refer to the Backport tool documentation

nreese added a commit to nreese/kibana that referenced this pull request Mar 12, 2025
)

* remove `locator` from setup and start contract
* remove `dashboardFeatureFlagConfig` from start contract

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 377a812)

# Conflicts:
#	x-pack/platform/plugins/private/monitoring/tsconfig.json
#	x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/job_from_dashboard/quick_create_job_base.ts
#	x-pack/platform/plugins/shared/stack_connectors/tsconfig.json
#	x-pack/solutions/observability/plugins/apm/tsconfig.json
@nreese
Copy link
Contributor Author

nreese commented Mar 12, 2025

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

nreese added a commit that referenced this pull request Mar 13, 2025
…) (#214233)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[dashboard] clean up dashboard setup and start contracts
(#212968)](#212968)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-03-12T16:36:37Z","message":"[dashboard]
clean up dashboard setup and start contracts (#212968)\n\n* remove
`locator` from setup and start contract\n* remove
`dashboardFeatureFlagConfig` from start
contract\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"377a812784b4830e8c53de78946d33d9d731c25a","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","technical
debt","release_note:skip","Feature:Drilldowns","Team:obs-ux-infra_services","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0"],"title":"[dashboard]
clean up dashboard setup and start
contracts","number":212968,"url":"https://github.com/elastic/kibana/pull/212968","mergeCommit":{"message":"[dashboard]
clean up dashboard setup and start contracts (#212968)\n\n* remove
`locator` from setup and start contract\n* remove
`dashboardFeatureFlagConfig` from start
contract\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"377a812784b4830e8c53de78946d33d9d731c25a"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212968","number":212968,"mergeCommit":{"message":"[dashboard]
clean up dashboard setup and start contracts (#212968)\n\n* remove
`locator` from setup and start contract\n* remove
`dashboardFeatureFlagConfig` from start
contract\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"377a812784b4830e8c53de78946d33d9d731c25a"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
)

* remove `locator` from setup and start contract
* remove `dashboardFeatureFlagConfig` from start contract

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Drilldowns Embeddable panel Drilldowns release_note:skip Skip the PR/issue when compiling release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// technical debt Improvement of the software architecture and operational architecture v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.