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

[BACKPORT] Backport 2.4 commits to 2.x #1277

Merged
merged 31 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fc066c7
[2.4] Add log pattern table (#1187) (#1212) (#1215)
opensearch-trigger-bot[bot] Nov 1, 2022
b6139c4
[Backport 2.4] Merge main to 2.4 (#1217)
mengweieric Nov 2, 2022
b3a541a
fix column spacing and pattern table highlighting (#1218)
derek-ho Nov 2, 2022
04852a7
Merge feature/metrics branch to 2.4 (#1234)
ps48 Nov 3, 2022
14a7455
[2.4] Add anomaly count and config to patterns table (#1216)
joshuali925 Nov 3, 2022
7295212
Fix filtered pattern selection (#1236)
joshuali925 Nov 3, 2022
1381c57
Fixes for BWC issues, grammar updating (#1235)
mengweieric Nov 3, 2022
001709a
Minor UI changes for sidebar (#1237)
sejli Nov 3, 2022
0224c23
Update minimatch version to 3.0.5 (#1228)
rupal-bq Nov 3, 2022
330a117
adding save functionality to metrics (#1241)
ps48 Nov 3, 2022
37fcd04
Remove unnecessary calls and errors in patterns (#1243)
joshuali925 Nov 4, 2022
03b62c2
Update detekt version (#1226)
rupal-bq Nov 4, 2022
e88ab44
metrics visualization regression fix (#1244)
ps48 Nov 4, 2022
bfda43a
metrics bug fixes #1 (#1248)
ps48 Nov 4, 2022
7c0188f
Persist redux state in browser (#1178) (#1223)
opensearch-trigger-bot[bot] Nov 4, 2022
abdd0d7
Minor UI changes for sidebar and update to PPL request (#1246)
sejli Nov 4, 2022
28c436b
Backtick supports, issues fixes (#1250)
mengweieric Nov 4, 2022
680e5df
Prometheus Mappings Fix (#1242)
vmmusings Nov 4, 2022
625433f
Use in-memory count for total hits in patterns ratio (#1254)
joshuali925 Nov 4, 2022
0336c47
Metrics bug fix and unit tests (#1253)
ps48 Nov 4, 2022
75e74f6
Fix metrics switch (#1247)
kavithacm Nov 4, 2022
0ea635a
remove span months/quarters (#1257)
ps48 Nov 4, 2022
034e5f0
Release notes for 2.4.0 (#1259) (#1263)
opensearch-trigger-bot[bot] Nov 4, 2022
915fcc9
remove metrics unit of measures (#1261)
ps48 Nov 4, 2022
0bee8e7
Fix for app analytics crash (#1255)
mengweieric Nov 4, 2022
ca88d9b
Remove measure field (#1258)
kavithacm Nov 4, 2022
6ef0148
[Metrics] Name Change (#1260)
sejli Nov 4, 2022
a1527c5
Remove runtime antlr - ( workaround for 2.4 release. - we need to rev…
mengweieric Nov 4, 2022
82d634c
fix bug by keeping track of interval within the explorer (#1266)
derek-ho Nov 9, 2022
0e55910
merge 2.4 to 2.x
mengweieric Nov 17, 2022
f8ccdad
added one missed conflicts resolving
mengweieric Nov 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ env:
jobs:

build:

runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout Plugin
Expand Down Expand Up @@ -57,13 +59,13 @@ jobs:
yarn test --coverage

- name: Upload coverage
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v1
with:
flags: dashboards-observability
directory: ./OpenSearch-Dashboards/plugins/dashboards-observability
token: ${{ secrets.CODECOV_TOKEN }}

# TODO remove hard coded version when observability is ready
- name: Build Artifact
run: |
cd OpenSearch-Dashboards/plugins/dashboards-observability
Expand All @@ -73,6 +75,5 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: dashboards-observability
path: ./OpenSearch-Dashboards/plugins/dashboards-observability/build

name: dashboards-observability-${{ matrix.os }}
path: ./OpenSearch-Dashboards/plugins/dashboards-observability/build
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ on: [pull_request, push]

jobs:
build:
env:
BUILD_ARGS: ${{ matrix.os_build_args }}
strategy:
matrix:
java:
- 11
- 17

runs-on: ubuntu-latest
java: [11, 17]
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: windows-latest
os_build_args: -x integTest -x jacocoTestReport
- os: macos-latest
os_build_args: -x integTest -x jacocoTestReport
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
Expand All @@ -21,6 +26,8 @@ jobs:
java-version: ${{ matrix.java }}

- name: Run Backwards Compatibility Tests
# Temporarily only do this for linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
cd opensearch-observability
echo "Running backwards compatibility tests ..."
Expand All @@ -29,9 +36,10 @@ jobs:
- name: Build with Gradle
run: |
cd opensearch-observability
./gradlew build
./gradlew build ${{ env.BUILD_ARGS }}

- name: Upload coverage
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v1
with:
flags: opensearch-observability
Expand All @@ -46,5 +54,5 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: opensearch-observability
path: opensearch-observability-builds
name: opensearch-observability-${{ matrix.os }}
path: opensearch-observability-builds
17 changes: 7 additions & 10 deletions DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ By default, tests use the same runtime as `JAVA_HOME`.

### Setup

1. Download OpenSearch for the version that matches the [OpenSearch Dashboards version specified in package.json](./dashboards-observability/package.json#L5).
1. Download the OpenSearch Dashboards source code for the [version specified in package.json](./dashboards-observability/package.json#L5) you want to set up.

1. Download OpenSearch for the version that matches the [OpenSearch Dashboards version specified in opensearch_dashboards.json](./dashboards-observability/opensearch_dashboards.json#L4) from [opensearch.org](https://opensearch.org/downloads.html).
1. Download the OpenSearch Dashboards source code for the [version specified in opensearch_dashboards.json](./dashboards-observability/opensearch_dashboards.json#L4) you want to set up.
1. Change your node version to the version specified in `.node-version` inside the OpenSearch Dashboards root directory.
1. cd into `plugins` directory in the OpenSearch Dashboards source code directory.
1. Check out this package from version control into the `plugins` directory.
1. cd into `OpenSearch-Dashboards` and remove the `plugins` directory.
1. Check out this package from version control as the `plugins` directory.
```bash
git clone git@github.com:opensearch-project/observability.git plugins --no-checkout
git clone https://github.com/opensearch-project/observability plugins --no-checkout
cd plugins
echo 'dashboards-observability/*' >> .git/info/sparse-checkout
git config core.sparseCheckout true
Expand All @@ -46,9 +45,7 @@ Example output: `./build/observability*.zip`

### Run

- `yarn start`

Starts OpenSearch Dashboards and includes this plugin. OpenSearch Dashboards will be available on `localhost:5601`.
cd back to `OpenSearch-Dashboards` directory and run `yarn start` to start OpenSearch Dashboards including this plugin. OpenSearch Dashboards will be available on `localhost:5601`.

### Submitting Changes

Expand All @@ -60,4 +57,4 @@ The Github workflow in [`backport.yml`](.github/workflows/backport.yml) creates
with an appropriate label `backport <backport-branch-name>` is merged to main with the backport workflow run successfully on the
PR. For example, if a PR on main needs to be backported to `1.x` branch, add a label `backport 1.x` to the PR and make sure the
backport workflow runs on the PR along with other checks. Once this PR is merged to main, the workflow will create a backport PR
to the `1.x` branch.
to the `1.x` branch.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ See [developer guide](DEVELOPER_GUIDE.md) and [how to contribute to this project

If you find a bug, or have a feature request, please don't hesitate to open an issue in this repository.

For more information, see [project website](https://opensearch.org/) and [documentation](https://opensearch.org/docs). If you need help and are unsure where to open an issue, try [forums](https://discuss.opendistrocommunity.dev/).
For more information, see [project website](https://opensearch.org/) and [documentation](https://opensearch.org/docs). If you need help and are unsure where to open an issue, try the [Forum](https://forum.opensearch.org/c/plugins/observability/49).

## Code of Conduct

Expand Down
Loading