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

[7.x] [Fleet] Show Count of Agent Policies on Integration Details (#86916) #88008

Closed
wants to merge 1 commit into from

Conversation

paul-tavares
Copy link
Contributor

Backports the following commits to 7.x:

…86916)

* component to show count of agent policies for integration
* API route and service to return stats of package usage

# Conflicts:
#	x-pack/plugins/fleet/server/services/epm/packages/get.ts
@kibanamachine
Copy link
Contributor

kibanamachine commented Jan 12, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Jest Integration Tests.src/core/server/saved_objects/migrationsv2/integration_tests.migration v2 migrating from 7.3.0-xpack version creates the new index and the correct aliases

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 3 times on tracked branches: https://github.com/elastic/kibana/issues/87968


Stack Trace

Error: Network Error
    at createError (/dev/shm/workspace/kibana/node_modules/axios/lib/core/createError.js:16:15)
    at XMLHttpRequest.handleError (/dev/shm/workspace/kibana/node_modules/axios/lib/adapters/xhr.js:83:14)
    at XMLHttpRequest.<anonymous> (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js:33:32)
    at innerInvokeEventListeners (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:315:27)
    at invokeEventListeners (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:266:3)
    at XMLHttpRequestEventTargetImpl._dispatch (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:212:11)
    at XMLHttpRequestEventTargetImpl.dispatchEvent (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:87:17)
    at XMLHttpRequest.dispatchEvent (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:144:23)
    at requestErrorSteps (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/xhr-utils.js:127:7)
    at dispatchError (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/xhr-utils.js:57:3)
    at Object.validCORSHeaders (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/xhr-utils.js:72:5)
    at receiveResponse (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:843:21)
    at Request.<anonymous> (/dev/shm/workspace/kibana/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:677:38)
    at Request.emit (events.js:315:20)
    at Request.onRequestResponse (/dev/shm/workspace/kibana/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:315:20)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:641:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
    at TLSSocket.socketOnData (_http_client.js:509:22)
    at TLSSocket.emit (events.js:315:20)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at TLSSocket.Readable.push (internal/streams/readable.js:223:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 458 459 +1

Async chunks

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

id before after diff
fleet 968.0KB 969.2KB +1.2KB

Page load bundle

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

id before after diff
fleet 376.8KB 376.9KB +142.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@paul-tavares paul-tavares deleted the backport/7.x/pr-86916 branch January 12, 2021 17:44
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.

2 participants