This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Siembol-editor-ui: updating docs (#612)
- Loading branch information
Showing
21 changed files
with
130 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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 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 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
29 changes: 15 additions & 14 deletions
29
docs/siembol_ui/how-tos/how_to_deploy_configurations_in_siembol_ui.md
This file contains 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 |
---|---|---|
@@ -1,28 +1,29 @@ | ||
# How to deploy configurations in siembol ui | ||
<img src="../screenshots/deployment_upgrade.png" alt="drawing" width='400px'/> | ||
# How to release configurations in Siembol IO | ||
<img src="../screenshots/config_manager.png" alt="drawing"/> | ||
|
||
## Editing Deployment | ||
To upgrade config click on the `Upgrade to x` button below the config, it appears whenever a config in release is not up to date with the store. You can also click on `View Diff` to see the changes made. | ||
## Editing Release | ||
To upgrade a config in release to the latest version in store click on the `Upgrade x to y` button in the `Release Actions` column. It is only visible when a config in release is not up-to-date with the store. You can also click on `View Diff` to see the changes made. | ||
|
||
To remove a config from deployment simply click on the bin icon that appears when hovering over it. | ||
To remove a config from release simply click on the cross icon in the `Release Actions` column. | ||
|
||
To change the order of the configs in deployment simply drag the deployment config to its desired location. | ||
To change the order of the configs in release simply drag the release config to its desired location (it is only possible to reorder configs in release when no search or filter is applied). | ||
|
||
``` | ||
Note: you cannot downgrade a config only upgrade. | ||
``` | ||
> **_Note:_** A config can only be upgraded not downgraded. | ||
## Create Pull Request with new deployment in siembol ui | ||
## Release config not in current release | ||
To release a config that is not released, click the `Add to Release` button in the `Release Actions` column. | ||
|
||
## Create Pull Request with new release in Siembol UI | ||
<img src="../screenshots/submit_dialog_alert.png" alt="drawing" width='600px'/> | ||
|
||
Once configs have been added/deleted/upgraded/reorded use the `Deploy` button above. This will open up a dialog, for some services it will automatically run a validation in the background, for others (e.g: alert, correlationalert) additional metadata can be specified in the dialog before clicking the `Validate` button (see in screenshot above). Once validated the changes to the release are displayed in the dialog. | ||
Once configs have been added/deleted/upgraded/reordered use the `Release PR` button above which is enabled after changes to release. This will open up a dialog, for some services it will automatically run a validation in the background, for others (e.g: alert, correlationalert) additional metadata can be specified in the dialog before clicking the `Validate` button (see in screenshot above). Once validated the changes to the release are displayed in the dialog. | ||
|
||
For some services it will be possible to run tests on the all the configs in the service by clicking the `Test` button in the dialog. | ||
|
||
To create a pull request in the release repo of the service being edited click on the `Deploy` button in the dialog. | ||
|
||
If the user trying to deploy does not have the latest version of the release, an error dialog will be shown and the latest release will be loaded from the backend. The user will have to redo its deployment changes to try again. | ||
If the user trying to release does not have the latest version of the release, an error dialog will be shown and the latest release will be loaded from the backend. The user will have to redo its release changes to try again. | ||
|
||
Once a pull request has been created in the repo it is not possible to create another one until it is either merged or closed. You can see when a pull request is opened in the UI, the `Deploy` button is replaced with `PR for release pending` and a `reload` icon. By clicking on the first a new tab is open to the pull request. The second should be clicked once the pull request is merged/close to reload the config from the backend and be able to deploy again. | ||
Once a pull request has been created in the repo it is not possible to create another one until it is either merged or closed. You can see when a pull request is opened in the UI, the `Release PR` button is replaced with `PR for release pending` and a `reload` icon (see screenshot below). By clicking on the first a new tab is open to the pull request. The second should be clicked once the pull request is merged/close to reload the config from the backend and be able to release again. | ||
|
||
<img src="../screenshots/pr_open.png" alt="drawing" width='500px'/> | ||
<img src="../screenshots/pr_open.png" alt="drawing"/> |
20 changes: 20 additions & 0 deletions
20
docs/siembol_ui/how-tos/how_to_filter_configs_and_save_searches.md
This file contains 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,20 @@ | ||
# How to filter configs and save searches | ||
On the config manager page there are multiple ways to filter configs. Searches can also be saved by a user or shared among users through the URL. | ||
|
||
<img src="../screenshots/filtering_and_saving.png" alt="drawing"/> | ||
|
||
## Search bar | ||
The search bar can be used to filter for: author, name and labels of configs. The words in the search will all be checked against the configs. | ||
|
||
> **_Example:_** if the user searches for `TomH windows` only the configs with both `tomh` and `windows` in either author, name or labels will be displayed. | ||
To save a search click on the `save` icon to the right of the search bar. It will then be displayed in the saved search's panel below that can be expanded. Click on a saved search to apply it. | ||
|
||
## Checkboxes | ||
On the left-hand side of the config manager page is a column for checkboxes. The standard checkboxes for each service are: | ||
- `my configs` - configs last modified by current user | ||
- `upgradable` - configs with unreleased changes in store | ||
- `unreleased` - unreleased configs | ||
|
||
To add more custom checkboxes to a service see [here](./how_to_use_ui_bootstrap_file.md). | ||
|
This file contains 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 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 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,60 @@ | ||
# How to use the ui-bootstrap file | ||
|
||
The `ui-bootstrap.json` file contains config about each service type. Click [here](/config/config-editor-ui/ui-bootstrap.json) to see the default file provided. Service types are defined [here](/docs/services/how-tos/how_to_set_up_service_in_config_editor_rest.md). | ||
|
||
## Schema paths | ||
This config file provides paths/keys of various variables in the schema of the service type provided by the backend. The possible keys are: | ||
- `release.version` - release version key | ||
- `release.config_array` - release config_array key | ||
- `release.extras` - list of extra release keys | ||
- `perConfigSchemaPath` - path to configs | ||
- `name` - config name key | ||
- `version` - config version key | ||
- `author` - config author key | ||
- `description` - config description key | ||
|
||
## Labels function | ||
It also provides a key to define a JavaScript function that will return the labels for the service. This is done through the `labelsFunc` key. | ||
|
||
## Testing | ||
Testing can be enabled or disable through these keys: | ||
- `testing.perConfigTestEnabled` - whether a single config can be tested | ||
- `testing.releaseTestEnabled` - whether the entire release can be tested | ||
- `testing.testCaseEnabled` - whether test cases can be created | ||
|
||
## Checkboxes | ||
Checkboxes for quick filtering can be added per service in the `checkboxes` key. Filters can be added based on different fields such as the author or the labels of the config. Below is example of the config of a checkbox. It defined one checkbox group called `Severity` with two checkboxes: `high` and `low`. The pattern defined for each checkbox is matched against the given field. The given field can be: | ||
- a `string` - the pattern is matched against it | ||
- a `list` - the pattern has to match one of the items | ||
``` | ||
"checkboxes": { | ||
"severity": { | ||
"high": { | ||
"field": "labels", | ||
"pattern": "^severity:low$" | ||
}, | ||
"low": { | ||
"field": "labels", | ||
"pattern": "^severity:high$" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## Override default properties for service type | ||
The `override` key can be used to override any of the above properties for a specific service `name` (all the above is per service `type`). If there are two services of the same type different config can be applied to one using this key. | ||
|
||
**_Example:_** Overriding the `testing.releaseTestEnabled` property for the `myalerts` service: | ||
``` | ||
"override": { | ||
"myalerts": { | ||
"testing": { | ||
"releaseTestEnabled": false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains 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