Skip to content

Commit

Permalink
Fix webui test & warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chopraanmol1 committed Oct 4, 2024
1 parent ad0f5c1 commit 8b3dc0a
Show file tree
Hide file tree
Showing 9 changed files with 972 additions and 548 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '20.x'
- name: Checkout code
uses: actions/checkout@v2
# See https://github.com/actions/cache/blob/master/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
Expand Down
6 changes: 3 additions & 3 deletions webui/internal/assets/assets.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webui/internal/assets/build/work.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webui/internal/assets/src/DeadJobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class DeadJobs extends React.Component {
});
}

componentWillMount() {
componentDidMount() {
this.fetch();
}

Expand Down
2 changes: 1 addition & 1 deletion webui/internal/assets/src/Processes.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class Processes extends React.Component {
workerPool: []
}

componentWillMount() {
componentDidMount() {
if (this.props.busyWorkerURL) {
fetch(this.props.busyWorkerURL).
then((resp) => resp.json()).
Expand Down
2 changes: 1 addition & 1 deletion webui/internal/assets/src/Queues.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class Queues extends React.Component {
queues: []
}

componentWillMount() {
componentDidMount() {
if (!this.props.url) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion webui/internal/assets/src/RetryJobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class RetryJobs extends React.Component {
});
}

componentWillMount() {
componentDidMount() {
this.fetch();
}

Expand Down
2 changes: 1 addition & 1 deletion webui/internal/assets/src/ScheduledJobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class ScheduledJobs extends React.Component {
});
}

componentWillMount() {
componentDidMount() {
this.fetch();
}

Expand Down
Loading

0 comments on commit 8b3dc0a

Please sign in to comment.