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

Move files, add README, replace implicit any with stricter types. Reorganize types. #63262

Merged
merged 11 commits into from
Apr 13, 2020

Conversation

oatkiller
Copy link
Contributor

@oatkiller oatkiller commented Apr 10, 2020

Summary

  • Removed FIXME comments and references to private repos. Please use Github issues to track work
  • Added a README describing the modules in applications/endpoint
  • Removed dead code
  • Moved AppRoot component to its own module
  • Moved applications/endpoint/services under store
  • Moved some exported types to applications/endpoint/types
  • Moved all React code to view
  • Added types in some places that were implicitly any
  • Moved PageId type from common directory (where it could be shared with the server) to the public directory

Checklist

There were no intended changes.

For maintainers

@oatkiller oatkiller requested a review from a team as a code owner April 10, 2020 16:39
Co-Authored-By: kqualters-elastic <56408403+kqualters-elastic@users.noreply.github.com>
@oatkiller oatkiller added Feature:Endpoint Elastic Endpoint feature release_note:skip Skip the PR/issue when compiling release notes v7.7.0 labels Apr 10, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-app-team (Feature:Endpoint)

Copy link
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

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

LGTM. Had only small question/comment

@@ -319,3 +322,25 @@ export interface AlertingIndexUIQueryParams {
date_range?: string;
filters?: string;
}

export interface GetDatasourcesResponse {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add the comment back on these that references the kibana issue? I will likely implement it early next week in Ingest and will then refactor the code here to use them since we should really not be defining our own API response interface for ingest APIs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you fine if I instead link to the code from the issue?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, that's fine 😃
(FYI - the issues I referenced in the todo comment were public and not to private repos)

/**
* The PageId type is used for the payload when firing userNavigatedToPage actions
*/
export type PageId = 'alertsPage' | 'managementPage' | 'policyListPage';
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI - with the PR I'm working on now, I should be able to delete this along with the hook that uses it. :)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@oatkiller oatkiller merged commit d00c905 into elastic:master Apr 13, 2020
@oatkiller oatkiller deleted the cleanup branch April 13, 2020 15:33
oatkiller pushed a commit to oatkiller/kibana that referenced this pull request Apr 13, 2020
…r types. Reorganize types. (elastic#63262)

* Removed `FIXME` comments and references to private repos. Please use Github issues to track work
* Added a README describing the modules in `applications/endpoint`
* Removed dead code
* Moved `AppRoot` component to its own module
* Moved `applications/endpoint/services` under `store`
* Moved some exported types to `applications/endpoint/types`
* Moved all React code to `view`
* Added types in some places that were implicitly `any`
* Moved `PageId` type from common directory (where it could be shared with the server) to the public directory

Conflicts:
* `x-pack/plugins/endpoint/public/applications/endpoint/view/policy/policy_details.tsx`
oatkiller pushed a commit that referenced this pull request Apr 13, 2020
…r types. Reorganize types. (#63262) (#63363)

* Removed `FIXME` comments and references to private repos. Please use Github issues to track work
* Added a README describing the modules in `applications/endpoint`
* Removed dead code
* Moved `AppRoot` component to its own module
* Moved `applications/endpoint/services` under `store`
* Moved some exported types to `applications/endpoint/types`
* Moved all React code to `view`
* Added types in some places that were implicitly `any`
* Moved `PageId` type from common directory (where it could be shared with the server) to the public directory

Conflicts:
* `x-pack/plugins/endpoint/public/applications/endpoint/view/policy/policy_details.tsx`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Endpoint Elastic Endpoint feature release_note:skip Skip the PR/issue when compiling release notes v7.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants