Skip to content

Commit

Permalink
Merge branch 'main' into clean/breadcrumb-updates
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
  • Loading branch information
BigSamu authored Dec 5, 2023
2 parents 5ad83b3 + 24592a6 commit c648e75
Show file tree
Hide file tree
Showing 31 changed files with 947 additions and 630 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,12 @@ module.exports = {
'react/prefer-stateless-function': 'off',
},
},
{
// Currently suppressing the following rules for files in the scripts directory
files: ['scripts/**/*.{ts,tsx,js}'],
rules: {
'@typescript-eslint/no-var-requires': 'off', // not enforcing ES6-style import statements
},
},
],
};
37 changes: 14 additions & 23 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ jobs:
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Setup Yarn
run: |
Expand All @@ -138,9 +137,12 @@ jobs:
with:
name: build

- name: Extract build archive
run: tar -xf ${{ steps.download.outputs.download-path }}/oui.tgz

- name: Get Escaped Download Path
run: |
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/oui.tgz"
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/package"
OUI_PATH=$(echo $RAW_OUI_PATH | sed 's/\//\\\//g')
echo "OUI_PATH=$OUI_PATH" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -169,7 +171,6 @@ jobs:
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Setup Yarn
run: |
Expand All @@ -182,9 +183,12 @@ jobs:
with:
name: build

- name: Extract build archive
run: tar -xf ${{ steps.download.outputs.download-path }}/oui.tgz

- name: Get Escaped Download Path
run: |
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/oui.tgz"
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/package"
OUI_PATH=$(echo $RAW_OUI_PATH | sed 's/\//\\\//g')
echo "OUI_PATH=$OUI_PATH" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -215,33 +219,18 @@ jobs:
script: build-platform --linux-arm --skip-os-packages
runs-on: ${{ matrix.os }}
needs: build
defaults:
run:
working-directory: ./artifacts
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: ./artifacts
repository: opensearch-project/OpenSearch-Dashboards

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: './artifacts/.nvmrc'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Configure Yarn Cache (Linux)
run: echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $GITHUB_ENV

- name: Initialize Yarn Cache
uses: actions/cache@v3
with:
path: ${{ env.YARN_CACHE_LOCATION }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Setup Yarn
run: |
npm uninstall -g yarn
Expand All @@ -253,17 +242,19 @@ jobs:
with:
name: build

- name: Extract build archive
run: tar -xf ${{ steps.download.outputs.download-path }}/oui.tgz

- name: Get Escaped Download Path
run: |
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/oui.tgz"
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/package"
OUI_PATH=$(echo $RAW_OUI_PATH | sed 's/\//\\\//g')
echo "OUI_PATH=$OUI_PATH" >> "$GITHUB_ENV"
- name: Update OUI version in OSD
run: |
find . -type f -name package.json -exec sed -i 's/"@elastic\/eui": ".*"/"@elastic\/eui": "file:${{ env.OUI_PATH }}"/g' {} \;
- name: Get package version
run: |
echo "VERSION=$(yarn --silent pkg-version)" >> $GITHUB_ENV
Expand All @@ -282,5 +273,5 @@ jobs:
if: success()
with:
name: ${{ matrix.suffix }}-${{ env.VERSION }}
path: ./artifacts/target/${{ env.ARTIFACT_BUILD_NAME }}
path: ./target/${{ env.ARTIFACT_BUILD_NAME }}
retention-days: 7
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@

### 🛡 Security

- [CVE-2023-46234] Bump `browserify-sign` from `4.0.4` to `4.2.2` ([#1117](https://github.com/opensearch-project/oui/pull/1117))
- Bump `babel-template` from `6.26.0` to `@babel/template` `7.10.4` ([#1095](https://github.com/opensearch-project/oui/pull/1095))

### 📈 Features/Enhancements

- Update ouiTextSubduedColor in `next` dark theme ([#973](https://github.com/opensearch-project/oui/pull/973))
- Add slugs to markdown headers ([#1051](https://github.com/opensearch-project/oui/pull/1051))
- Add `crossInCircleEmpty` and `power` icons ([#1044](https://github.com/opensearch-project/oui/pull/1044))
- Add `Figma` icon and link to OUI Figma resources ([#1064](https://github.com/opensearch-project/oui/pull/1064))

### 🐛 Bug Fixes

- Add exit code to compile-scss script on failure ([#1024](https://github.com/opensearch-project/oui/pull/1024))
- Extract build archive into a folder for OSD integration test CI ([#1075](https://github.com/opensearch-project/oui/pull/1075))
- Correct file path for import of Query component ([#1069](https://github.com/opensearch-project/oui/pull/1069))
- Fix "Guidelines" documentation links rendering blank pages ([#1111](https://github.com/opensearch-project/oui/pull/1111))

Expand All @@ -37,8 +42,10 @@
- Bump TypeScript to v4.6.4 ([#879](https://github.com/opensearch-project/oui/pull/879))
- Clean up `react-datepicker` package to remove unnecessary directories and files ([#1067](https://github.com/opensearch-project/oui/pull/1067))
- Bump `@types/react` and `csstype` ([#1105](https://github.com/opensearch-project/oui/pull/1105))
- Add `scripts` folder to lint-es script ([#1143](https://github.com/opensearch-project/oui/pull/1143))
- Clean up code OUI Breadcrumb component from previous updates ([#1144](https://github.com/opensearch-project/oui/pull/1144))


### 🪛 Refactoring

### 🔩 Tests
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"extract-i18n-strings": "node ./scripts/babel/fetch-i18n-strings",
"lint": "yarn tsc --noEmit && yarn lint-es && yarn lint-sass",
"lint-fix": "yarn lint-es-fix",
"lint-es": "eslint --cache \"{src,src-docs}/**/*.{ts,tsx,js}\" --max-warnings 0",
"lint-es": "eslint --cache \"{src,src-docs,scripts}/**/*.{ts,tsx,js}\" --max-warnings 0",
"lint-es-fix": "yarn lint-es --fix",
"lint-sass": "sass-lint -v --max-warnings 0",
"lint-sass-fix": "sass-lint-auto-fix -c ./.sass-lint-fix.yml",
Expand Down Expand Up @@ -119,6 +119,7 @@
"refractor": "^3.6.0",
"rehype-raw": "^5.0.0",
"rehype-react": "^6.0.0",
"rehype-slug": "^4.0.1",
"rehype-stringify": "^8.0.0",
"remark-emoji": "^2.1.0",
"remark-parse": "^8.0.3",
Expand All @@ -143,6 +144,7 @@
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.12.1",
"@babel/template": "^7.10.4",
"@elastic/charts": "^30.2.0",
"@elastic/eslint-config-kibana": "^0.15.0",
"@faker-js/faker": "^8.0.1",
Expand All @@ -163,15 +165,13 @@
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"autoprefixer": "^9.8.6",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^24.1.0",
"babel-loader": "^8.1.0",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-inline-react-svg": "^1.1.1",
"babel-plugin-pegjs-inline-precompile": "^0.1.1",
"babel-template": "^6.26.0",
"cache-loader": "^4.1.0",
"chalk": "^4.1.2",
"chokidar": "^3.5.3",
Expand Down
Loading

0 comments on commit c648e75

Please sign in to comment.