8 files changed
+22
-41
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@superalgos/operations-client",
|
||||
"version": "0.0.38",
|
||||
"version": "0.0.41",
|
||||
"description": "Superalgos Operations client-side web app",
|
||||
"author": "Superalgos, ltd.",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -48,11 +48,12 @@ class HistoryClones extends Component {
|
||||
</React.Fragment>
|
||||
)
|
||||
} else if (data.error) {
|
||||
console.log('Error Listing clones.', data.error)
|
||||
return (
|
||||
<TopBar
|
||||
size='big'
|
||||
title='Bot Clone History'
|
||||
text='Please login to gain access to your Bot Clones.'
|
||||
text='There has been an error listing the clones.'
|
||||
backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg'
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -209,6 +209,7 @@ class ListClones extends Component {
|
||||
open={this.state.isLogsDialogOpen}
|
||||
onClose={this.handleLogsDialogClose}
|
||||
aria-labelledby="logs-dialog-title"
|
||||
fullScreen
|
||||
>
|
||||
<DialogTitle id="logs-dialog-title">
|
||||
Last clone logs
|
||||
|
||||
@@ -48,11 +48,12 @@ class BrowseClones extends Component {
|
||||
</React.Fragment>
|
||||
)
|
||||
} else if (data.error) {
|
||||
console.log('Error Listing clones.', data.error)
|
||||
return (
|
||||
<TopBar
|
||||
size='big'
|
||||
title='Your Bot Clones'
|
||||
text='Please login to gain access to your Bot Clones.'
|
||||
text='There has been an error listing the clones.'
|
||||
backgroundUrl='https://superalgos.org/img/photos/clones-original.jpg'
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -32,19 +32,19 @@ const createClone = async (clone) => {
|
||||
'name': 'HOST_STORAGE',
|
||||
'value': 'localStorage'
|
||||
})
|
||||
// TODO Pending setting private bots
|
||||
// env.push({
|
||||
// 'name': 'HOST_ACCESS_KEY',
|
||||
// 'value': clone.host.accessKey
|
||||
// })
|
||||
|
||||
if(clone.authorization){
|
||||
if (clone.authorization) {
|
||||
env.push({
|
||||
'name': 'AUTHORIZATION',
|
||||
'value': clone.authorization
|
||||
})
|
||||
}
|
||||
|
||||
if (JSON.parse(process.env.FULL_LOG)) {
|
||||
env.push({
|
||||
'name': 'FULL_LOG',
|
||||
'value': process.env.FULL_LOG
|
||||
})
|
||||
}
|
||||
logger.debug('createClone General Financial Being Configuration.')
|
||||
env.push({
|
||||
'name': 'DEV_TEAM',
|
||||
|
||||
@@ -20,7 +20,7 @@ const getClonePodLogs = async (cloneName) => {
|
||||
|
||||
let queryLogs = {
|
||||
'qs': {
|
||||
'tailLines': '20'
|
||||
'tailLines': '300'
|
||||
}
|
||||
}
|
||||
if(pod.body.items[0] !== undefined){
|
||||
|
||||
@@ -42,28 +42,6 @@ const resolve = async (parent, { id }, context) => {
|
||||
logger.debug('removeClone -> Removing Clone from Kubernates.')
|
||||
await removeKuberneteClone(clone.id)
|
||||
|
||||
if (clone.botType === Trading) {
|
||||
let productCodeName
|
||||
if (clone.mode === LIVE) {
|
||||
productCodeName = 'Live Trading History'
|
||||
}
|
||||
if (clone.mode === COMPETITION) {
|
||||
productCodeName = 'Competition Trading History'
|
||||
}
|
||||
if (clone.mode === BACKTEST) {
|
||||
productCodeName = 'Backtest Trading History'
|
||||
}
|
||||
|
||||
let newEcosystemBot = {
|
||||
devTeam: clone.teamSlug,
|
||||
codeName: clone.botSlug,
|
||||
cloneId: clone.id,
|
||||
productCodeName
|
||||
}
|
||||
|
||||
await removeBotMutation(context.authorization, newEcosystemBot)
|
||||
}
|
||||
|
||||
const query = {
|
||||
_id: id,
|
||||
authId: context.userId
|
||||
|
||||
@@ -14,7 +14,7 @@ describe('Admin clones Clones', function () {
|
||||
assert.isOk('everything', 'everything is ok')
|
||||
})
|
||||
// it('Add COSS Live Indicator Clones', async function () {
|
||||
// this.timeout(300000)
|
||||
// this.timeout(1000000)
|
||||
// var error
|
||||
// var clones = activeCloneList("Coss")
|
||||
// try {
|
||||
@@ -28,7 +28,7 @@ describe('Admin clones Clones', function () {
|
||||
// assert.equal(error, undefined)
|
||||
// })
|
||||
// it('Add POLONIEX Live Indicator Clones', async function () {
|
||||
// this.timeout(300000)
|
||||
// this.timeout(1000000)
|
||||
// var error
|
||||
// var clones = activeCloneList("Poloniex")
|
||||
// try {
|
||||
@@ -43,36 +43,36 @@ describe('Admin clones Clones', function () {
|
||||
// })
|
||||
describe('Poloniex clones', function () {
|
||||
it('Add Charly', async function () {
|
||||
this.timeout(3000)
|
||||
this.timeout(10000)
|
||||
await createClone(cloneList[0])
|
||||
await createClone(cloneList[1])
|
||||
assert.isOk('everything', 'everything is ok')
|
||||
})
|
||||
it('Add Bruce', async function () {
|
||||
this.timeout(3000)
|
||||
this.timeout(10000)
|
||||
await createClone(cloneList[2])
|
||||
assert.isOk('everything', 'everything is ok')
|
||||
})
|
||||
it('Add Olivia', async function () {
|
||||
this.timeout(3000)
|
||||
this.timeout(10000)
|
||||
await createClone(cloneList[3])
|
||||
await createClone(cloneList[4])
|
||||
assert.isOk('everything', 'everything is ok')
|
||||
})
|
||||
it('Add Tom', async function () {
|
||||
this.timeout(3000)
|
||||
this.timeout(10000)
|
||||
await createClone(cloneList[5])
|
||||
await createClone(cloneList[6])
|
||||
assert.isOk('everything', 'everything is ok')
|
||||
})
|
||||
it('Add Chris', async function () {
|
||||
this.timeout(3000)
|
||||
this.timeout(10000)
|
||||
await createClone(cloneList[7])
|
||||
await createClone(cloneList[8])
|
||||
assert.isOk('everything', 'everything is ok')
|
||||
})
|
||||
it('Add Paula', async function () {
|
||||
this.timeout(3000)
|
||||
this.timeout(10000)
|
||||
await createClone(cloneList[9])
|
||||
await createClone(cloneList[10])
|
||||
assert.isOk('everything', 'everything is ok')
|
||||
|
||||
Reference in new issue
Block a user