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

Fixes 3938: Fix admin task polling #5

Closed
wants to merge 99 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
72fd5f6
Fixes 2312: Admin tasks interface append results (#144)
Andrewgdewar Sep 13, 2023
f223ebf
Bump tough-cookie and @cypress/request (#137)
dependabot[bot] Sep 15, 2023
75d6725
Fixes 1737: Add stable merge.yml (#150)
Andrewgdewar Oct 12, 2023
254b15d
Fixes 1737: Update action permission (#151)
Andrewgdewar Oct 12, 2023
9c948ff
Fixes 1737: Revert yml changes (#152)
Andrewgdewar Oct 13, 2023
3f747f0
Fixes 2048,2613,1700: React 18 preview (#148)
Andrewgdewar Oct 30, 2023
ed1392a
Bump @babel/traverse from 7.20.1 to 7.23.2 (#153)
dependabot[bot] Oct 30, 2023
a0d3636
[postcss] Update postCss (#159)
Andrewgdewar Oct 30, 2023
a4cda24
Build: add dependabot (#166)
jlsherrill Nov 2, 2023
c7ae348
Fixes 2190: added snapshot info to content list table (#155)
xbhouse Nov 2, 2023
6126a64
Fixes 2533: Add red hat repositories UI (#156)
Andrewgdewar Nov 13, 2023
237de57
Fixes 2617: copy/download repo config from snapshot list (#170)
rverdile Nov 14, 2023
b3d3b58
Fixes 2935: sort snapshots using desc (#165)
jlsherrill Nov 14, 2023
ce1db52
Fixes 2741: Changed the header title (#180)
kwarnerredhat Dec 4, 2023
1e5c556
Fixes 2910: Remove babel (#177)
Andrewgdewar Dec 4, 2023
95b25ed
Refs 2405: Add ouiaID for snapshot toggle button (#185)
swadeley Dec 8, 2023
df78bfc
Build: remove sonarcube (#187)
jlsherrill Dec 8, 2023
218ca1f
Fixes 3274: Hides RH repo when snapshots not enabled (#189)
Andrewgdewar Dec 12, 2023
4fd5f1f
Fixes 3257: Create content item delete modal (#184)
adeliaferreira Dec 18, 2023
959bbb5
Build: fix regex allowing multiple fixes (#194)
jlsherrill Jan 5, 2024
755ef78
Refs 2405: OuidIDSnapshotSwitch (#197)
Andrewgdewar Jan 11, 2024
06c13a9
Fixes 3336: expose module_hotfixes flag as checkbox for repo (#196)
xbhouse Jan 17, 2024
a0178e9
Fixes 1974: Added manual snapshot (#186)
kwarnerredhat Jan 18, 2024
fbaee75
Fixes 1172: Clear Filter (#200)
kwarnerredhat Jan 26, 2024
5ff7e80
Build: Bump follow-redirects from 1.15.3 to 1.15.4 (#198)
dependabot[bot] Feb 2, 2024
504d21c
Build: Bump @adobe/css-tools from 4.3.1 to 4.3.3 (#202)
dependabot[bot] Feb 2, 2024
8933136
Build: Bump the npm group with 33 updates (#209)
Andrewgdewar Feb 5, 2024
00fa64b
Fixes 3518: fix routing conditional for snapshot modal (#208)
xbhouse Feb 5, 2024
b63d89b
Fixes 3472: change snapshot delta to only use package count (#206)
jlsherrill Feb 5, 2024
1494bab
Fixes 3486: Title case should be sentence case. (#204)
swadeley Feb 6, 2024
95b802a
Fixes 3458: fix incorrect waitFor test pattern (#211)
xbhouse Feb 6, 2024
fccc19a
Fixes 3558: Move bootstrap.sh after frontend-build.sh (#213)
swadeley Feb 16, 2024
b8cbf19
Fixes 3607: Changed ouaid of snapshot toggle button (#215)
mayurilahane Feb 16, 2024
5581195
Fixes 3630: hide snapshotting in prod stable (#217)
jlsherrill Feb 26, 2024
c063482
FixSnapshotModalPageSafe (#221)
Andrewgdewar Feb 28, 2024
3ca495c
Fixes 3608: switches in repo modals cause infinite loading (#223)
xbhouse Mar 4, 2024
a4e9586
Build: Bump sanitize-html from 2.11.0 to 2.12.1 (#225)
dependabot[bot] Mar 4, 2024
16dfef1
Build: Bump the npm group with 21 updates (#226)
dependabot[bot] Mar 4, 2024
82eeca9
Refs 3601: Update packageList data-uuid (#224)
Andrewgdewar Mar 4, 2024
29b3524
Refs 3488: disable sorting on status (#219)
xbhouse Mar 4, 2024
5525158
Fixes 2975,2976: Add templates table/create modal (#193)
Andrewgdewar Mar 5, 2024
dfde038
Fixes 3653: snapshot trigger disabled for specific repos (#220)
xbhouse Mar 5, 2024
364ac6d
Refs 2975,2976: Update deploy yaml for templates (#227)
Andrewgdewar Mar 5, 2024
fc9e8df
Refs 3720: Migrate to new snapshot apis (#228)
jlsherrill Mar 5, 2024
5f5a297
Fixes 3729: Add static ids to toast alerts. (#229)
Andrewgdewar Mar 6, 2024
dee0360
MergeConflictSortFix (#230)
Andrewgdewar Mar 8, 2024
27f222a
Fixes 2726: Custom repositories missing zero state (#203)
xbhouse Mar 18, 2024
e775098
Fixes 2937,2956: SnapshotListModal with snapshot selector (#222)
Andrewgdewar Mar 18, 2024
cb3cd83
Build: Bump follow-redirects from 1.15.4 to 1.15.6 (#232)
dependabot[bot] Apr 9, 2024
0c90b69
Build: Bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#236)
dependabot[bot] Apr 9, 2024
6098a4f
Build: Bump express from 4.18.2 to 4.19.2 (#238)
dependabot[bot] Apr 9, 2024
f26fbe3
Refs 3902: Use new format for snapshot by date (#240)
jlsherrill Apr 9, 2024
d458004
Fixes 3473: snapshot status update (#234)
xbhouse Apr 10, 2024
d8d97cc
Build: add docker ignore (#243)
jlsherrill Apr 11, 2024
0695f5e
Build: Bump axios from 0.27.2 to 1.6.8 (#242)
dependabot[bot] Apr 11, 2024
235acd7
Build: we no longer live at settings (#247)
jlsherrill Apr 17, 2024
65a47ee
Fixes 3982: Add ouiaID to locate zerostate description (#248)
swadeley Apr 19, 2024
82fe524
Fixes 3812: sorting snapshots by date appears broken (#250)
xbhouse Apr 23, 2024
5541934
Fixes 3953: modularity filtering option is not clear (#246)
xbhouse Apr 24, 2024
f76dd22
Fixes 2938: Add Errata tab to snapshot details (#235)
Andrewgdewar Apr 26, 2024
c436dcf
Build: remove old build script (#251)
jlsherrill Apr 30, 2024
d8e18d1
Fixes 4046: template date formatted incorrectly (#254)
xbhouse Apr 30, 2024
ad63340
Fixes 3846: fix admin tasks sort_by status (#255)
rverdile May 7, 2024
b4b791e
Adds ouiaID for snapshot package/advisories counts (#260)
Andrewgdewar May 9, 2024
cc51340
Fixes 3908: Update app to run against stage/prod locally (#259)
Andrewgdewar May 9, 2024
52918e5
Build: Bump the npm group across 1 directory with 32 updates (#261)
dependabot[bot] May 9, 2024
735db14
New package lock for updated packages. (#262)
Andrewgdewar May 10, 2024
de7c3bb
Fixes 4105: Polling, css, console warn bugfix (#263)
Andrewgdewar May 13, 2024
cba84ad
Refs 4043: adopt template permissions (#258)
jlsherrill May 14, 2024
5f5f11b
Fixes 4009: snapshot errata should be sortable (#267)
xbhouse May 28, 2024
4bf41c6
Fixes 3125: allow deletion of pending repository (#269)
rverdile May 30, 2024
ad6bbd7
HMS-4197 (#270)
Andrewgdewar May 30, 2024
a438669
Fixes 4218: Prevent occasional double url entry on tests (#273)
Andrewgdewar Jun 4, 2024
a757262
Fixes 3958: Zerostate update (#272)
Andrewgdewar Jun 5, 2024
dce606f
Refs 3790: Folder restructure + absolute path update (#274)
Andrewgdewar Jun 6, 2024
d79e921
Fixes 4242: attempting to edit a template changes the date (#276)
xbhouse Jun 13, 2024
b64089a
Build: do not limit pulp resources (#283)
jlsherrill Jun 18, 2024
dfb181c
Build: pr_check, use insights-stage as ref-env (#280)
jrusz Jun 19, 2024
bb351f6
Refs 3419: Add ouiaIDs for template form (#278)
swadeley Jun 19, 2024
a783c52
Fixes 4133: add types filter to admin tasks list (#285)
rverdile Jun 19, 2024
4d8bbc2
Fixes 3794,4173,4210: delete confirmation modal for repos (#281)
xbhouse Jun 20, 2024
014a6d7
Fixes 4257: expose/disable snaps by default in prod stable (#279)
xbhouse Jun 24, 2024
c5c9906
Fixes 4327: expanding one list opens all lists (#288)
xbhouse Jun 25, 2024
a3a9c00
Fixes 3790: Add template details (#284)
Andrewgdewar Jun 28, 2024
4804439
Fixes 4305: Add url params to template edit for routing (#291)
Andrewgdewar Jun 28, 2024
a227c57
Build: RH Cloud dep update (#294)
jlsherrill Jul 8, 2024
0a6f26e
Build: small readme update (#300)
jlsherrill Jul 12, 2024
1a7a1e6
Fixes 4421: Add top level page safe only (#299)
Andrewgdewar Jul 12, 2024
a81bd32
Fixes 4392,4444: improve recovery from failed snapshot (#298)
xbhouse Jul 19, 2024
26513e3
Build: Bump ws from 7.5.9 to 7.5.10 (#286)
dependabot[bot] Jul 22, 2024
de65c72
Build: Bump braces from 3.0.2 to 3.0.3 (#287)
dependabot[bot] Jul 22, 2024
3397b76
Refs 3419: Adds ouia-Ids for the DefineContent Tab (#304)
Andrewgdewar Jul 26, 2024
87a6e77
Fixes 4475,4438: routing issues when deleting popular repos (#306)
xbhouse Jul 30, 2024
2882add
Fixes 4474: fix snapshot behavior in prod-beta (#305)
xbhouse Jul 30, 2024
be89dce
Fixes 4223: Ensure modals do not cause redirect on close (#307)
Andrewgdewar Jul 30, 2024
1b7f4bf
Fixes 4186: Template systems functionality (#302)
Andrewgdewar Jul 31, 2024
0e7ecf4
Fixes 4372: Update Axios, replace old RBAC client (#313)
Andrewgdewar Aug 6, 2024
cc63c4c
Fixes 4308: Add use latest to Templating (#312)
Andrewgdewar Aug 12, 2024
518a3b3
Fixes 3938: Fix admin task polling
Andrewgdewar Aug 12, 2024
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
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.docker
.podman
.kube
8 changes: 6 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"],
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier","unused-imports"],
"settings": {
"import/resolver": {
"typescript": {}
Expand All @@ -35,6 +35,10 @@
"camelcase": "off",
"spaced-comment": "error",
"quotes": ["warn", "single"],
"no-duplicate-imports": "error"
"no-duplicate-imports": "error",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn"
]
}
}
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
commit-message:
prefix: "Build: "
groups:
npm:
patterns:
- "*"
99 changes: 0 additions & 99 deletions .github/workflows/build-repo.yml

This file was deleted.

9 changes: 2 additions & 7 deletions .github/workflows/content-sources-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@ jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.14.0]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version-file: '.nvmrc'

- name: Install Dependencies
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
steps:
- uses: deepakputhraya/action-pr-title@master
with:
regex: '(Fixes |Refs )\d+(,\d+)*: .+' # Regex the title should match.
allowed_prefixes: 'Refs ,Fixes ' # title should start with the given prefix
regex: '^Build|^((Fixes |Refs )\d+(,\d+)*): .+'
allowed_prefixes: 'Refs ,Fixes ,Build ' # title should start with the given prefix
disallowed_prefixes: '' # title should not start with the given prefix
prefix_case_sensitive: false # title prefix are case insensitive
min_length: 5 # Min length of the title
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.14.0
v18.12.1
4 changes: 2 additions & 2 deletions .rhcicd/build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export IMAGE="quay.io/cloudservices/content-sources-frontend"
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
export APP_ROOT=$(pwd)

# set NODE_BUILD_VERSION based on nvmrc or default to 16
# set NODE_BUILD_VERSION based on nvmrc or default to 18
if [[ -n $(<.nvmrc) ]]; then
export NODE_BUILD_VERSION=$(<.nvmrc)
else
export NODE_BUILD_VERSION=16
export NODE_BUILD_VERSION=18
fi

COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
Expand Down
26 changes: 15 additions & 11 deletions .rhcicd/pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
# --------------------------------------------
# Export vars for helper scripts to use
# --------------------------------------------
export APP_NAME="content-sources" # name of app-sre "application" folder this component lives in
export COMPONENT_NAME="content-sources-frontend" # name of resourceTemplate component for deploy
export APP_NAME="content-sources" # name of app-sre "application" folder this component lives in
export COMPONENT_NAME="content-sources-frontend" # name of resourceTemplate component for deploy
# IMAGE should match the quay repo set by app.yaml in app-interface
export IMAGE="quay.io/cloudservices/content-sources-frontend"
export WORKSPACE=${WORKSPACE:-$APP_ROOT} # if running in jenkins, use the build's workspace
export APP_ROOT=$(pwd)

# set NODE_BUILD_VERSION based on nvmrc or default to 16
# set NODE_BUILD_VERSION based on nvmrc or default to 18
if [[ -n $(<.nvmrc) ]]; then
export NODE_BUILD_VERSION=$(<.nvmrc)
export NODE_BUILD_VERSION=$(<.nvmrc)
else
export NODE_BUILD_VERSION=16
export NODE_BUILD_VERSION=18
fi

COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master
Expand All @@ -28,19 +28,23 @@ export IQE_FILTER_EXPRESSION=""
export IQE_ENV="ephemeral"
export IQE_SELENIUM="true"
export IQE_CJI_TIMEOUT="30m"
export DEPLOY_TIMEOUT="900" # 15min
export DEPLOY_TIMEOUT="900" # 15min
export DEPLOY_FRONTENDS="true"
export REF_ENV="insights-stage"

export COMPONENTS_W_RESOURCES="pulp"

set -exv

source $WORKSPACE/.rhcicd/sonarqube.sh || true
# source is preferred to | bash -s in this case to avoid a subshell
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)

# workaround frontend-build.sh setting IMAGE_BUILD, but then bootstrap appending pr-# to it again
unset IMAGE_TAG

# bootstrap bonfire and it's config
CICD_URL=https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd
curl -s "$CICD_URL/bootstrap.sh" > .cicd_bootstrap.sh && source .cicd_bootstrap.sh

# source is preferred to | bash -s in this case to avoid a subshell
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)
curl -s "$CICD_URL/bootstrap.sh" >.cicd_bootstrap.sh && source .cicd_bootstrap.sh

# reserve ephemeral namespace
source "${CICD_ROOT}/deploy_ephemeral_env.sh"
Expand Down
39 changes: 0 additions & 39 deletions .rhcicd/sonarqube.sh

This file was deleted.

4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ notifications:
rooms:
# insights-bot channel on [Ansible Slack](https://ansible.slack.com)
- secure: juuizlfiQolXbqy4L2nfODB1K8xiSGvUrzsT3XeXIsQqX7yCYVvnRUssKLbqgLM9m85kgXJk1ef0qwjJoliNqGcrALTZLHPTkxWwTnV7tPEVS/4uQPSyy+DDHDwrTzCrF3qhCqyKJ6vB18z22qm3qLgStmNj4p1ZLznsdJR/u7U3spJ+WLL70QSNHCQy/5QjRDDiR3oqWdXjhVcUCeV+v/2CtfqK3dqYtzCL/b7z8lm/YbV6w1Rd8mwzTgLstbzjrvR/gq2IPALzzJTq1S8lXtV7ZtbYz4bjB8RNCRZFJrjBUH4CqD1oUskit4RRe+ilVs8qNQh0Tt3whsOdbJoRXJn2B/NVxppp2WGlODdsuMgfNh5iBocHKN3Qo4mONbstnHFG99Hr7L8GbUugJHEQlrZn1xRyO9ulyVp+hFp8/F088NNyhnd3+lERUPA5/4+HPQh6Ea+PyKq2TR41VoDGcRDBS4VY/6PfLEJzxEBjwRAAemfvtOFTUu2EocuAllPX1vMA4b1j7Wm+Bs7wft6nEcVdftVanfAgx4dNksnaS8zN9II8rdtBci2yXYJ6J+e+REDn/2IrHaUwr0N9BojYc0ePUElDcygW4Kk1oGklHp681j2zhi1Gt7rbuae1C9fD4QHnryx59uVH5NXqDsXI5EbwTJE3zvzRz9SzmyDqV5A=
node_js:
- '16'
install:
- npm ci
jobs:
include:
- stage: Lint
script: npm run lint
- stage: Test
script: npm run test && npx codecov
script: npm run test-ci && npx codecov
- stage: Deploy
script: npm run deploy && curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s
env:
Expand Down
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"editor.detectIndentation": false,
"[typescriptreact]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[javascript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"jest.jestCommandLine": "npm test --"
}
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,41 @@ To setup the hosts file run following command:
npm run patch:hosts
```

If this command throws an error run it as a `sudo`:
If this command throws an error, you may need to install NPM system wide with `sudo yum install npm` and run it as a `sudo`:

```bash
sudo npm run patch:hosts
```

Alternativly, simply add these lines to your /etc/hosts:
```
127.0.0.1 prod.foo.redhat.com
::1 prod.foo.redhat.com
127.0.0.1 stage.foo.redhat.com
::1 stage.foo.redhat.com
127.0.0.1 qa.foo.redhat.com
::1 qa.foo.redhat.com
127.0.0.1 ci.foo.redhat.com
::1 ci.foo.redhat.com
```

## Getting started

1. Make sure [nvm](https://github.com/nvm-sh/nvm) is installed

2. `npm install`
2. First time running the app do: `nvm use` to ensure you have the correct node version installed. If you do not, follow the instructions nvm gives you to install the appropriate version.

3. `PROXY=true npm run start`
3. `npm install`

4. With a browser, open URL listed in the terminal output
4. `npm run start` to run against stage or prod environments. <br/>
OR <br/>
`npm run local` to run against a local backend running on port 8000.

5. With a browser, open URL listed in the terminal output




Update `config/dev.webpack.config.js` according to your application URL. [Read more](https://github.com/RedHatInsights/frontend-components/tree/master/packages/config#useproxy).

### Testing
Expand Down
25 changes: 0 additions & 25 deletions babel.config.js

This file was deleted.

Loading
Loading