Skip to content

Commit 74cb3d4

Browse files
committed
merge main
2 parents 510196d + 1b75108 commit 74cb3d4

File tree

4 files changed

+13
-35
lines changed

4 files changed

+13
-35
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
- name: Checkout repository
2424
uses: actions/checkout@v3
2525

26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v2
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v2
31+
2632
- name: Log in to the Container registry
2733
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
2834
with:
@@ -42,3 +48,4 @@ jobs:
4248
push: true
4349
tags: ${{ steps.meta.outputs.tags }}
4450
labels: ${{ steps.meta.outputs.labels }}
51+
platforms: linux/amd64,linux/arm64

package-lock.json

+1-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@
3737
"graphql": "^16.6.0",
3838
"graphql-tag": "^2.12.6",
3939
"http-proxy-middleware": "^2.0.6",
40-
"i": "^0.3.7",
4140
"morgan": "~1.9.1",
4241
"npm": "^9.8.0",
43-
"swagger-ui-express": "^4.5.0",
44-
"uuid": "^9.0.0"
42+
"swagger-ui-express": "^4.5.0"
4543
},
4644
"devDependencies": {
4745
"@types/cookie-parser": "^1.4.3",

src/api/core/ChangeRequestDB.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import * as settings from './settings'
88

99
import dbSchema from '../../change_request_schema.json'
1010
import { doc } from "@terminusdb/terminusdb-client/dist/typescript/lib/woql"
11-
//import {v4 as uuidv4} from 'uuid';
12-
const { v4: uuidv4 } = require('uuid');
11+
12+
const crypto = require('node:crypto');
13+
1314
class ChangeRequestDB {
1415
client: WOQLClient;
1516
request : Request
@@ -103,7 +104,7 @@ class ChangeRequestDB {
103104
original_branch: originalBranch,
104105
creator: creator,
105106
// we autogenerate the branchName
106-
tracking_branch : uuidv4(),
107+
tracking_branch : crypto.randomUUID(),
107108
origin_commit_id : lastStartBranchCommitID,
108109
creator_email: this.request.body.author || creator,
109110
creation_time: timestamp,

0 commit comments

Comments
 (0)