-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Cases] Cleaning up the services and TODOs #99723
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
Merged
jonathan-buttner
merged 13 commits into
elastic:cases-rbac-poc
from
jonathan-buttner:cleanup-rbac
May 14, 2021
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
dae307c
Cleaning up the service intialization
jonathan-buttner 1e4af75
Fixing type errors
jonathan-buttner 990f8de
Merge branch 'cases-rbac-poc' of github.com:elastic/kibana into clean…
jonathan-buttner 8f6dfa3
Adding comments for the api
jonathan-buttner 6efbdd6
Working test for cases client
jonathan-buttner 96da0ad
Merge branch 'cases-rbac-poc' of github.com:elastic/kibana into clean…
jonathan-buttner 7a61a8b
Fix type error
jonathan-buttner 74ceeee
Adding generated docs
jonathan-buttner c754a1b
Adding more docs and cleaning up types
jonathan-buttner c7fc90e
Cleaning up readme
jonathan-buttner 1e8ae1f
More clean up and links
jonathan-buttner 085f89f
Changing some file names
jonathan-buttner 48fdf71
Renaming docs
jonathan-buttner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Cases Client API Docs | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. README for how to update the generated cases client api docs |
||
|
|
||
| This directory contains generated docs using `typedoc` for the cases client API that can be called from other server | ||
| plugins. This README will describe how to generate a new version of these markdown docs in the event that new methods | ||
| or parameters are added. | ||
|
|
||
| ## TypeDoc Info | ||
|
|
||
| See more info at: <https://typedoc.org/> | ||
| and: <https://www.npmjs.com/package/typedoc-plugin-markdown> for the markdown plugin | ||
|
|
||
| ## Install dependencies | ||
|
|
||
| ```bash | ||
| yarn global add typedoc typedoc-plugin-markdown | ||
| ``` | ||
|
|
||
| ## Generate the docs | ||
|
|
||
| ```bash | ||
| cd x-pack/plugins/cases/docs | ||
| npx typedoc --options cases_client_typedoc.json | ||
| ``` | ||
|
|
||
| After running the above commands the files in the `server` directory will be updated to match the new tsdocs. | ||
| If additional markdown directory should be created we can create a new typedoc configuration file and adjust the `out` | ||
| directory accordingly. | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| If you run into tsc errors that seem unrelated to the cases plugin try executing these commands before running `typedoc` | ||
|
|
||
| ```bash | ||
| cd <kibana root dir> | ||
| npx yarn kbn bootstrap | ||
| node scripts/build_ts_refs.js --clean --no-cache | ||
| ``` | ||
22 changes: 22 additions & 0 deletions
22
x-pack/plugins/cases/docs/cases_client/cases_client_api.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| Cases Client API Interface | ||
|
|
||
| # Cases Client API Interface | ||
|
|
||
| ## Table of contents | ||
|
|
||
| ### Modules | ||
|
|
||
| - [attachments/add](modules/attachments_add.md) | ||
| - [attachments/client](modules/attachments_client.md) | ||
| - [attachments/delete](modules/attachments_delete.md) | ||
| - [attachments/get](modules/attachments_get.md) | ||
| - [attachments/update](modules/attachments_update.md) | ||
| - [cases/client](modules/cases_client.md) | ||
| - [cases/get](modules/cases_get.md) | ||
| - [cases/push](modules/cases_push.md) | ||
| - [client](modules/client.md) | ||
| - [configure/client](modules/configure_client.md) | ||
| - [stats/client](modules/stats_client.md) | ||
| - [sub\_cases/client](modules/sub_cases_client.md) | ||
| - [typedoc\_interfaces](modules/typedoc_interfaces.md) | ||
| - [user\_actions/client](modules/user_actions_client.md) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Adding link to cases client API docs