Skip to content

Commit e2d8642

Browse files
Mohammed AbdiMohammed Abdi
authored andcommitted
Merge branch 'opendatahub-io-main'
2 parents e275acf + 87eb962 commit e2d8642

File tree

267 files changed

+10248
-16431
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+10248
-16431
lines changed

.env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
############### Default settings ###############
1212
BACKEND_PORT=8080
1313
IMAGE_REPOSITORY=quay.io/opendatahub/odh-dashboard:nightly
14-
DOC_LINK ='https://opendatahub.io/docs.html'
15-
COMMUNITY_LINK ='https://opendatahub.io/community.html'
14+
DOC_LINK ='https://opendatahub.io/docs'
15+
COMMUNITY_LINK ='https://opendatahub.io/community'
1616
ENABLED_APPS_CM = 'odh-enabled-applications-config'
1717
KUSTOMIZE_MANIFEST_DIR=manifests
18+
KUSTOMIZE_DEFAULT_OVERLAY=/overlays/dev
1819
DASHBOARD_CONFIG = 'odh-dashboard-config'

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug Report
2-
description: File a bug report
2+
description: File a bug report.
33
title: "[Bug]: "
4-
labels: ["kind/bug", "untriaged"]
4+
labels: ["kind/bug", "priority/normal", "untriaged"]
55
body:
66
- type: markdown
77
attributes:
@@ -12,8 +12,30 @@ body:
1212
label: Is there an existing issue for this?
1313
description: Please search to see if an issue already exists for the bug you encountered.
1414
options:
15-
- label: I have searched the existing issues
16-
required: true
15+
- label: I have searched the existing issues
16+
required: true
17+
- type: dropdown
18+
id: deploy-type
19+
attributes:
20+
label: Deploy type
21+
description: How did you deploy the Dashboard?
22+
multiple: false
23+
options:
24+
- OpenDataHub core version (eg. `v1.6.0`)
25+
- Installing Dashboard directly (eg. `v2.12.0`, `commit xyz`, `branch name`)
26+
- Downstream version (eg. `RHODS 1.29`)
27+
validations:
28+
required: true
29+
- type: input
30+
id: version
31+
attributes:
32+
label: Version
33+
description: |
34+
What was the version this was found on?
35+
36+
eg. a branch name, a commit id, or a version number
37+
validations:
38+
required: true
1739
- type: textarea
1840
attributes:
1941
label: Current Behavior
@@ -55,12 +77,6 @@ body:
5577
- Microsoft Edge
5678
validations:
5779
required: false
58-
- type: textarea
59-
id: opendatahub-version
60-
attributes:
61-
label: Open Data Hub Version
62-
description: Please attach relevant kfdef manifest if applicable
63-
render: yml
6480
- type: textarea
6581
id: anything-else
6682
attributes:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature request
2-
description: Suggest an idea for this project
2+
description: Suggest an idea for this project.
33
title: "[Feature Request]: "
4-
labels: ["kind/enhancement", "untriaged"]
4+
labels: ["kind/enhancement", "priority/normal", "untriaged"]
55
body:
66
- type: markdown
77
attributes:

.github/ISSUE_TEMPLATE/internal_story.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: (Internal) Feature Story Template
2-
description: Intended to help with a template for breaking down larger efforts
3-
labels: ["priority/high"]
2+
description: Intended to help with a template for breaking down larger efforts.
3+
title: "[Story]: "
4+
labels: ["kind/story", "priority/high"]
45
body:
56
- type: input
67
id: goal
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: (Internal) Test Template
2+
description: Intended to help with a template for creating issues for test coverage.
3+
title: "[Test]: "
4+
labels: ["kind/tech-debt", "priority/normal", "quality"]
5+
body:
6+
- type: input
7+
id: description
8+
attributes:
9+
label: Description
10+
description: A high level goal for the test.
11+
placeholder: Tests the global <feature> page.
12+
validations:
13+
required: true
14+
- type: dropdown
15+
id: type
16+
attributes:
17+
label: What type of test is it?
18+
multiple: false
19+
options:
20+
- e2e (user flow, server data test)
21+
- integration (test data, UI rendering)
22+
- unit (functional test)
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: goals
27+
attributes:
28+
label: Test goals
29+
description: |
30+
Describe the test coverage goals / acceptance criteria.
31+
32+
Eg. what tests are expected / what is the full path for e2e test / what utils are to be tested / etc
33+
placeholder: |
34+
* Test page xyz
35+
* Handle empty states
36+
* etc...
37+
validations:
38+
required: true
39+
- type: textarea
40+
id: dependencies
41+
attributes:
42+
label: Related tests
43+
description: |
44+
A link to related test stories to help with sizing the work
45+
46+
Tip: Using a bullet list will help display links to other tickets by unraveling the name and status of that ticket.
47+
placeholder: |
48+
* #xxxx1
49+
* #xxxx2
50+
value: No related tests
51+
validations:
52+
required: false

.github/pull_request_template.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--- If this is a non-code change, this template is not required; reference any issues or top-level descriptions as needed -->
12
<!--- All code change PRs should relate to an issue, reference it here; see example below -->
23
<!--- Closes: #123 -->
34

@@ -18,9 +19,16 @@
1819
<!--- This PR will be merged by any repository approver when it meets all the points in the checklist -->
1920
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
2021

21-
- [ ] The commits have meaningful messages (squashes happen on merge by the bot).
22-
- [ ] Included any necessary screenshots or gifs if it was a UI change.
23-
- [ ] Included tags to the UX team if it was a UI/UX change.
24-
- [ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
22+
Self checklist (all need to be checked):
2523
- [ ] The developer has manually tested the changes and verified that the changes work
24+
- [ ] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
25+
- [ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
2626
- [ ] The developer has added tests or explained why testing cannot be added (unit tests & storybook for related changes)
27+
28+
If you have UI changes:
29+
<!--- You can ignore these if you are doing manifest, backend, internal logic, etc changes; aka non-UI / visual changes -->
30+
- [ ] Included any necessary screenshots or gifs if it was a UI change.
31+
- [ ] Included tags to the UX team if it was a UI/UX change.
32+
33+
After the PR is posted & before it merges:
34+
- [ ] The developer has tested their solution on a cluster by using the image produced by the PR to `main`

.github/trivy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
format: sarif
2+
exit-code: 0
3+
severity: 'CRITICAL,HIGH'
4+
output: 'scan_result.sarif'

.github/workflows/pull_request.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on:
44
branches: [ main, f/** ]
55

66
jobs:
7-
Integration-checks:
7+
Tests:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
1111
node-version: [18.x]
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Setup Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v3.6.0
15+
uses: actions/setup-node@v3.7.0
1616
with:
1717
node-version: ${{ matrix.node-version }}
1818
- name: Node.js modules cache, repository
@@ -42,6 +42,9 @@ jobs:
4242
- name: Install Node.js packages
4343
if: ${{ steps.repo-cache.outputs.cache-hit != 'true' || steps.backend-cache.outputs.cache-hit != 'true' || steps.frontend-cache.outputs.cache-hit != 'true' }}
4444
run: npm install
45+
- name: Install Playwright Browsers
46+
working-directory: ./frontend
47+
run: npx playwright install --with-deps
4548
- name: Test
4649
if: ${{ success() }}
4750
run: npm run test

.github/workflows/storybook-tests.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/vuln_scan.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Value Scan
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
scan:
8+
name: Scan Files
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Run Trivy vulnerability scanner for filesystem
13+
uses: aquasecurity/[email protected]
14+
with:
15+
scan-type: 'fs'
16+
scan-ref: '.'
17+
trivy-config: .github/trivy.yaml
18+
19+
- name: Upload Trivy scan results to GitHub Security tab
20+
uses: github/codeql-action/upload-sarif@v2
21+
with:
22+
sarif_file: 'scan_result.sarif'
23+
24+
- name: Archive scan results to GitHub
25+
uses: actions/upload-artifact@v3
26+
with:
27+
name: trivyResult
28+
path: 'scan_result.sarif'
29+
if-no-files-found: error

0 commit comments

Comments
 (0)