-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: don't release from develop * ci: run poetry publish without using a separate action (#897) * docs: document .uccignore feature (#898) * feat: add optional query param to endpoint (#889) feat: based on config in globalConfig.json add possibility to append token_access_type to oauth endpoint with specific value * fix(dashboard): adds splunk_server=local when getting add-on version (#899) Related docs: https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rest Related PR: splunk/splunk-add-on-for-microsoft-365-defender#314 * fix: add ":gz" flag to tarfile.open to add compression (#901) * fix(code): fix child keys warning (#895) * fix(code): fix child keys warning * fix: add validation to prevent duplicates in groups.labels --------- Co-authored-by: vtsvetkov-splunk <142901247+vtsvetkov-splunk@users.noreply.github.com> Co-authored-by: Artem Rys <rysartem@gmail.com> * ci: build storybook to docs (#888) * ci: refactor ui workflows * ci: refactor ui workflows * ci: refactor ui workflows * ci: refactor ui workflows * add shell bash * add cd * composite action to reusable workflow * composite action to reusable workflow * composite action to reusable workflow * composite action to reusable workflow * add storybook build * fix(warning): replaced warnings with logging library (#908) * fix(warning): replaced warnings with logging library * fix: use warning instead of deprecated method warn * feat: file component support file deletion (#886) * feat: file component support file deletion during edition or cloning add possibility to remove existing file * feat: add tests, move to ts, check early for file add tests for fileNameToDisplay property and ecrypted move from jsx to tsx files check for file type and data asap when loading form thanks to that fileNameToDisplay is loaded for all mods not only edit and clone * fix: fix test data for globalConfig.json * fix: review * test: fix unit tests after #908 (#909) * ui: pin splunk/addonfactory-test-matrix-action to 1.10 (#910) Pinning to this version to avoid testing with unreleased Splunk version. * feat(CheckboxGroup): ADDON-61556 add defaultValue for checkbox (#904) * fix(CheckboxGroup): fix required validation (#911) --------- Co-authored-by: soleksy-splunk <143183665+soleksy-splunk@users.noreply.github.com> Co-authored-by: James Hodgkinson <james@terminaloutcomes.com> Co-authored-by: Harshit Gajipara <77769935+Harshit1q1@users.noreply.github.com> Co-authored-by: vtsvetkov-splunk <142901247+vtsvetkov-splunk@users.noreply.github.com>
- Loading branch information
1 parent
02a9d4f
commit f691ce0
Showing
47 changed files
with
1,004 additions
and
693 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Get & Cache Yarn Dependencies" | ||
description: "Get & Cache Yarn Dependencies" | ||
inputs: | ||
node-version: | ||
description: "Node version" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: npm install --global yarn | ||
shell: bash | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- name: Cache Dependencies | ||
uses: actions/cache@v3 | ||
id: yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('ui/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-${{ inputs.node-version }} | ||
- name: Install Dependencies | ||
working-directory: ui | ||
run: yarn install --frozen-lockfile | ||
shell: bash |
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,27 @@ | ||
name: "Build Storybook" | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build-storybook: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ui | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
- name: install deps | ||
uses: ./.github/actions/cached-ui-deps | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
- name: Build UCC UI | ||
run: yarn run build-storybook | ||
- name: Upload dist with name UCC-UI-build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: UCC-UI-storybook | ||
path: ui/storybook-static |
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,37 @@ | ||
name: "Build UI" | ||
on: | ||
workflow_call: | ||
inputs: | ||
node-version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-ui: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ui | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
- name: install deps | ||
uses: ./.github/actions/cached-ui-deps | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
- name: Code linting | ||
run: yarn run lint | ||
- name: Unit test | ||
run: yarn run test | ||
- name: Build UCC UI | ||
run: yarn run build | ||
- name: List deps into dependencies.txt | ||
run: yarn list --prod --depth 0 | python ../.github/scripts/format_yarn_deps.py --output-file=dist/package/appserver/static/js/dependencies.txt | ||
- name: Upload dist with name UCC-UI-build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: UCC-UI-build | ||
path: ui/dist/ |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,8 @@ | ||
# `.uccignore` file | ||
|
||
This feature can be used to remove files from the output **after** UCC template files were copied and **before** the source of the | ||
add-on recursively overrides the output folder. | ||
|
||
It is expected to be placed in the same folder as `globalConfig` file to have effect. | ||
|
||
You will see a warning message in case ignored file is not found in the output folder. |
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
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
Oops, something went wrong.