Compare commits
23 Commits
lash/fix-t
...
lash/refac
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9119c04f1f
|
||
|
|
3ceafa90f4
|
||
|
|
bcf20cbfd3
|
||
|
|
4af7592212
|
||
|
|
4ea3933f07
|
||
|
|
1edacf70cf
|
||
|
|
2720e9ce6a
|
||
|
|
a0d405f582
|
||
|
|
435bfa88f1
|
||
|
|
5b77a2ea20
|
||
|
|
1124bd2d26
|
||
|
|
744c7b6840
|
||
|
|
841a366a2f
|
||
|
|
12f887c92c
|
||
|
|
72fed82bd5
|
||
|
|
a766a9de70
|
||
|
|
dfd0de32e1
|
||
|
|
7752ab5c5d
|
||
|
|
5a6fe7327d
|
||
|
|
1f126037fe
|
||
|
|
01387993b5
|
||
|
|
9d6bfef73d | ||
|
|
26c622f42f
|
@@ -490,7 +490,7 @@ class Api:
|
|||||||
queue=self.queue,
|
queue=self.queue,
|
||||||
)
|
)
|
||||||
if self.callback_param != None:
|
if self.callback_param != None:
|
||||||
s_assemble.link(self.callback_success).on_error(self.callback_error)
|
s_brief.link(self.callback_success).on_error(self.callback_error)
|
||||||
|
|
||||||
t = None
|
t = None
|
||||||
if external_task != None:
|
if external_task != None:
|
||||||
@@ -515,7 +515,8 @@ class Api:
|
|||||||
c = celery.chain(s_external_get, s_external_process)
|
c = celery.chain(s_external_get, s_external_process)
|
||||||
t = celery.chord([s_local, c])(s_brief)
|
t = celery.chord([s_local, c])(s_brief)
|
||||||
else:
|
else:
|
||||||
t = s_local.apply_sync()
|
s_local.link(s_brief)
|
||||||
|
t = s_local.apply_async()
|
||||||
|
|
||||||
return t
|
return t
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ from cic_eth.callbacks import redis
|
|||||||
from cic_eth.db.models.base import SessionBase
|
from cic_eth.db.models.base import SessionBase
|
||||||
from cic_eth.db.models.otx import Otx
|
from cic_eth.db.models.otx import Otx
|
||||||
from cic_eth.db import dsn_from_config
|
from cic_eth.db import dsn_from_config
|
||||||
|
from cic_eth.ext import tx
|
||||||
|
from cic_eth.ext import address
|
||||||
|
|
||||||
logging.basicConfig(level=logging.WARNING)
|
logging.basicConfig(level=logging.WARNING)
|
||||||
logg = logging.getLogger()
|
logg = logging.getLogger()
|
||||||
|
|||||||
1
apps/cic-meta/.gitignore
vendored
1
apps/cic-meta/.gitignore
vendored
@@ -1,6 +1,5 @@
|
|||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
dist-web
|
dist-web
|
||||||
dist-server
|
|
||||||
scratch
|
scratch
|
||||||
tests
|
tests
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
* 0.0.7-pending
|
* 0.0.7-pending
|
||||||
- Add immutable content
|
- Add immutable content
|
||||||
- Add db lock on server
|
- Add db lock on server
|
||||||
- Add ArgPair and KeyStore to src exports
|
|
||||||
* 0.0.6
|
* 0.0.6
|
||||||
- Add server build
|
- Add server build
|
||||||
* 0.0.5
|
* 0.0.5
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cic-client-meta",
|
"name": "cic-client-meta",
|
||||||
"version": "0.0.7-alpha.3",
|
"version": "0.0.7-alpha.2",
|
||||||
"description": "Signed CRDT metadata graphs for the CIC network",
|
"description": "Signed CRDT metadata graphs for the CIC network",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
@@ -32,12 +32,6 @@
|
|||||||
"webpack-cli": "^4.2.0"
|
"webpack-cli": "^4.2.0"
|
||||||
},
|
},
|
||||||
"author": "Louis Holbrook <dev@holbrook.no>",
|
"author": "Louis Holbrook <dev@holbrook.no>",
|
||||||
"contributors": [
|
|
||||||
{
|
|
||||||
"name": "Spencer Ofwiti",
|
|
||||||
"email": "maxspencer56@gmail.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "~15.3.0"
|
"node": "~15.3.0"
|
||||||
|
|||||||
@@ -101,18 +101,6 @@ function parseDigest(url) {
|
|||||||
|
|
||||||
async function processRequest(req, res) {
|
async function processRequest(req, res) {
|
||||||
let digest = undefined;
|
let digest = undefined;
|
||||||
const headers = {
|
|
||||||
"Access-Control-Allow-Origin": "*",
|
|
||||||
"Access-Control-Allow-Methods": "OPTIONS, POST, GET, PUT",
|
|
||||||
"Access-Control-Max-Age": 2592000, // 30 days
|
|
||||||
"Access-Control-Allow-Headers": 'Access-Control-Allow-Origin, Content-Type, x-cic-automerge'
|
|
||||||
};
|
|
||||||
|
|
||||||
if (req.method === "OPTIONS") {
|
|
||||||
res.writeHead(200, headers);
|
|
||||||
res.end();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!['PUT', 'GET', 'POST'].includes(req.method)) {
|
if (!['PUT', 'GET', 'POST'].includes(req.method)) {
|
||||||
res.writeHead(405, {"Content-Type": "text/plain"});
|
res.writeHead(405, {"Content-Type": "text/plain"});
|
||||||
@@ -213,7 +201,6 @@ async function processRequest(req, res) {
|
|||||||
|
|
||||||
const responseContentLength = (new TextEncoder().encode(content)).length;
|
const responseContentLength = (new TextEncoder().encode(content)).length;
|
||||||
res.writeHead(200, {
|
res.writeHead(200, {
|
||||||
"Access-Control-Allow-Origin": "*",
|
|
||||||
"Content-Type": contentType,
|
"Content-Type": contentType,
|
||||||
"Content-Length": responseContentLength,
|
"Content-Length": responseContentLength,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export { PGPSigner, PGPKeyStore, Signer, KeyStore } from './auth';
|
export { PGPSigner, PGPKeyStore } from './auth';
|
||||||
export { ArgPair, Envelope, Syncable } from './sync';
|
export { Envelope, Syncable } from './sync';
|
||||||
export { User } from './assets/user';
|
export { User } from './assets/user';
|
||||||
export { Phone } from './assets/phone';
|
export { Phone } from './assets/phone';
|
||||||
export { Config } from './config';
|
export { Config } from './config';
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ function orderDict(src) {
|
|||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Syncable implements JSONSerializable, Authoritative, Signable {
|
class Syncable implements JSONSerializable, Authoritative {
|
||||||
|
|
||||||
id: string
|
id: string
|
||||||
timestamp: number
|
timestamp: number
|
||||||
|
|||||||
@@ -40,12 +40,11 @@ before_script:
|
|||||||
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" $CI_REGISTRY --password-stdin
|
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" $CI_REGISTRY --password-stdin
|
||||||
variables:
|
variables:
|
||||||
CI_DEBUG_TRACE: "true"
|
CI_DEBUG_TRACE: "true"
|
||||||
IMAGE_TAG_BASE: $CI_REGISTRY_IMAGE/$APP_NAME:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
|
IMAGE_TAG: $CI_REGISTRY_IMAGE/$APP_NAME:$CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
|
||||||
LATEST_TAG: $CI_REGISTRY_IMAGE/$APP_NAME:latest
|
LATEST_TAG: $CI_REGISTRY_IMAGE/$APP_NAME:latest
|
||||||
script:
|
script:
|
||||||
- export IMAGE_TAG="$IMAGE_TAG_BASE-$(date +%F.%H%M%S)"
|
|
||||||
- docker build -t $IMAGE_TAG -f $DOCKERFILE_PATH .
|
- docker build -t $IMAGE_TAG -f $DOCKERFILE_PATH .
|
||||||
- docker push "$IMAGE_TAG
|
- docker push $IMAGE_TAG
|
||||||
- docker tag $IMAGE_TAG $LATEST_TAG
|
- docker tag $IMAGE_TAG $LATEST_TAG
|
||||||
- docker push $LATEST_TAG
|
- docker push $LATEST_TAG
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user