Skip to content

Commit 6bb1c6a

Browse files
authored
Merge pull request #1818 from humanprotocol/develop
Release Sprint 7 2024
2 parents f4dce2a + 8fa8da4 commit 6bb1c6a

File tree

350 files changed

+18990
-7660
lines changed

Some content is hidden

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

350 files changed

+18990
-7660
lines changed

.github/workflows/cd-cvat-exchange-oracle.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Deploy CVAT Exchange Oracle
22

33
on:
44
push:
5-
branches: [ develop, main ]
5+
branches: [ develop, main, cvat-milestone-2 ]
66
paths:
77
- 'packages/examples/cvat/exchange-oracle/**'
88
pull_request:
9-
branches: [ develop, main ]
9+
branches: [ develop, main, cvat-milestone-2 ]
1010
paths:
1111
- 'packages/examples/cvat/exchange-oracle/**'
1212
workflow_dispatch:

.github/workflows/cd-cvat-recording-oracle.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Deploy CVAT Recording Oracle
22

33
on:
44
push:
5-
branches: [ develop, main ]
5+
branches: [ develop, main, cvat-milestone-2 ]
66
paths:
77
- 'packages/examples/cvat/recording-oracle/**'
88
pull_request:
9-
branches: [ develop, main ]
9+
branches: [ develop, main, cvat-milestone-2 ]
1010
paths:
1111
- 'packages/examples/cvat/recording-oracle/**'
1212
workflow_dispatch:

.github/workflows/ci-dependency-review.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: "Checkout Repository"
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v4.1.1
1313
- name: "Dependency Review"
14-
uses: actions/dependency-review-action@v4
14+
uses: actions/dependency-review-action@v4.2.5

docs/sdk/changelog.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22

33
### Added
44

5-
- **Add function to get the encryption public key:** get public key function added to KVStore client.
6-
75
### Changed
86

9-
- **Rename set url function of KVStore client:** function renamed to be descriptive. This function sets the url and the hash
10-
- **Rename get url function of KVStore client:** function renamed to be descriptive. This function gets the url and verifies the hash of the content.
11-
- **Convert operators config keys to snake_case:** use snake_case as standard.
12-
137
### Deprecated
148

159
### Removed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"devDependencies": {
4242
"@apollo/client": "^3.7.12",
4343
"@babel/core": "^7.23.5",
44-
"@babel/preset-env": "^7.23.9",
44+
"@babel/preset-env": "^7.24.3",
4545
"@babel/preset-react": "^7.18.6",
4646
"@babel/preset-typescript": "^7.18.6",
4747
"@jest/globals": "^29.3.1",
@@ -50,7 +50,7 @@
5050
"@typescript-eslint/eslint-plugin": "^5.43.0",
5151
"@typescript-eslint/parser": "^5.43.0",
5252
"@typescript-eslint/utils": "^6.10.0",
53-
"concurrently": "^7.5.0",
53+
"concurrently": "^8.2.2",
5454
"dotenv": "^16.3.2",
5555
"eslint": "^8.55.0",
5656
"eslint-config-prettier": "^9.1.0",
@@ -73,6 +73,7 @@
7373
"node-fetch": "^2.6.7",
7474
"node-forge": "^1.0.0",
7575
"qrcode": "^1.5.0",
76-
"semver": "^7.5.2"
76+
"semver": "^7.5.2",
77+
"undici": "^6.11.1"
7778
}
7879
}

packages/apps/dashboard/admin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"@human-protocol/sdk": "*",
1616
"@strapi/plugin-i18n": "4.16.2",
17-
"@strapi/plugin-users-permissions": "4.15.5",
17+
"@strapi/plugin-users-permissions": "4.20.5",
1818
"@strapi/strapi": "4.15.5",
1919
"axios": "^1.5.1",
2020
"dayjs": "^1.11.10",

packages/apps/dashboard/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"test": "vitest -u",
7474
"format:prettier": "prettier --write '**/*.{ts,tsx}'",
7575
"format:lint": "eslint --fix '**/*.{ts,tsx}'",
76-
"format": "npm run format:prettier && npm run format:lint",
76+
"format": "yarn format:prettier && yarn format:lint",
7777
"vercel-build": "yarn workspace @human-protocol/sdk build && yarn build"
7878
},
7979
"browserslist": {

packages/apps/dashboard/ui/src/hooks/useMonthlyTaskSummaries.ts

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,25 @@ export function useMonthlyTaskSummaries() {
66
return useSWR(`human-protocol-dashboard-monthly-task-summaries`, async () => {
77
const apiURL = import.meta.env.VITE_APP_ADMIN_API_URL;
88

9-
const from = dayjs().startOf('month').format('YYYY-MM-DD');
10-
const to = dayjs().endOf('month').format('YYYY-MM-DD');
11-
const [cachedData, thisMonthData] = await Promise.all([
12-
axios
13-
.get(`${apiURL}/monthly-task-summaries?sort=id`)
14-
.then((res) => res.data),
15-
axios
16-
.get(`${apiURL}/stats/tasks?to=${to}&from=${from}`)
17-
.then((res) => res.data),
18-
]);
9+
// const from = dayjs().startOf('month').format('YYYY-MM-DD');
10+
// const to = dayjs().endOf('month').format('YYYY-MM-DD');
11+
// const [cachedData, thisMonthData] = await Promise.all([
12+
// axios
13+
// .get(`${apiURL}/monthly-task-summaries?sort=id`)
14+
// .then((res) => res.data),
15+
// axios
16+
// .get(`${apiURL}/stats/tasks?to=${to}&from=${from}`)
17+
// .then((res) => res.data),
18+
// ]);
19+
let cachedData, thisMonthData;
20+
try {
21+
cachedData = (await axios.get(`${apiURL}/monthly-task-summaries?sort=id`))
22+
.data;
23+
thisMonthData = { dailyTasksData: [] };
24+
} catch (error) {
25+
cachedData = { data: [] };
26+
thisMonthData = { dailyTasksData: [] };
27+
}
1928

2029
const totalSolvedTasks = thisMonthData.dailyTasksData.reduce(
2130
(a: number, b: any) => a + b.tasksSolved,

packages/apps/faucet-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"axios": "^1.3.4",
1919
"body-parser": "^1.20.0",
2020
"cors": "^2.8.5",
21-
"express": "^4.18.1",
21+
"express": "^4.19.2",
2222
"express-rate-limit": "^7.1.3",
2323
"node-cache": "^5.1.2",
2424
"web3": "^4.3.0"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Base image
2+
FROM node:18
3+
4+
# Create app directory
5+
WORKDIR /usr/src/app
6+
7+
# Bundle app source
8+
COPY . .
9+
10+
# Install app dependencies
11+
RUN yarn install
12+
13+
# Creates a "dist" folder with the production build
14+
RUN yarn workspace @human-protocol/fortune-exchange-oracle-server build
15+
16+
# Start the server using the production build
17+
CMD [ "node", "packages/apps/fortune/exchange-oracle/server/dist/src/main.js" ]

0 commit comments

Comments
 (0)