Skip to content
Snippets Groups Projects
Commit c1e9ba96 authored by Moritz Staudinger's avatar Moritz Staudinger
Browse files

Merge branch 'dev' of gitlab.phaidra.org:fair-data-austria-db-repository/fda-services into dev

 Conflicts:
	docker-compose.prod.yml
	fda-ui/components/dialogs/PersistQuery.vue
	fda-ui/components/query/Results.vue
	fda-ui/pages/container/_container_id/database/_database_id/query/_query_id/index.vue
	fda-ui/pages/container/_container_id/database/_database_id/table/_table_id/index.vue
parents f6f0b194 1a1ce343
No related branches found
No related tags found
1 merge request!81New stable release
...@@ -28,7 +28,7 @@ services: ...@@ -28,7 +28,7 @@ services:
image: fda-metadata-db image: fda-metadata-db
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.5 # ipv4_address: 172.29.0.5
volumes: volumes:
- fda-metadata-db-data:/var/lib/postgresql/data - fda-metadata-db-data:/var/lib/postgresql/data
ports: ports:
...@@ -49,7 +49,7 @@ services: ...@@ -49,7 +49,7 @@ services:
image: fda-discovery-service image: fda-discovery-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.4 # ipv4_address: 172.29.0.4
environment: environment:
SPRING_PROFILES_ACTIVE: docker SPRING_PROFILES_ACTIVE: docker
TZ: Europe/Vienna TZ: Europe/Vienna
...@@ -69,7 +69,7 @@ services: ...@@ -69,7 +69,7 @@ services:
image: fda-gateway-service image: fda-gateway-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.2 # ipv4_address: 172.29.0.2
environment: environment:
SPRING_PROFILES_ACTIVE: docker SPRING_PROFILES_ACTIVE: docker
TZ: Europe/Vienna TZ: Europe/Vienna
...@@ -87,9 +87,9 @@ services: ...@@ -87,9 +87,9 @@ services:
networks: networks:
fda-userdb: fda-userdb:
fda-public: fda-public:
ipv4_address: 172.29.0.9 # ipv4_address: 172.29.0.9
environment: environment:
SPRING_PROFILES_ACTIVE: docker,seeder SPRING_PROFILES_ACTIVE: docker
TZ: Europe/Vienna TZ: Europe/Vienna
ports: ports:
- "9092:9092" - "9092:9092"
...@@ -109,9 +109,9 @@ services: ...@@ -109,9 +109,9 @@ services:
image: fda-container-service image: fda-container-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.8 # ipv4_address: 172.29.0.8
environment: environment:
SPRING_PROFILES_ACTIVE: docker,seeder SPRING_PROFILES_ACTIVE: docker
TZ: Europe/Vienna TZ: Europe/Vienna
ports: ports:
- "9091:9091" - "9091:9091"
...@@ -131,7 +131,7 @@ services: ...@@ -131,7 +131,7 @@ services:
build: fda-authentication-service build: fda-authentication-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.14 # ipv4_address: 172.29.0.14
environment: environment:
SPRING_PROFILES_ACTIVE: docker SPRING_PROFILES_ACTIVE: docker
TZ: Europe/Vienna TZ: Europe/Vienna
...@@ -151,10 +151,10 @@ services: ...@@ -151,10 +151,10 @@ services:
image: fda-query-service image: fda-query-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.12 # ipv4_address: 172.29.0.12
fda-userdb: fda-userdb:
environment: environment:
SPRING_PROFILES_ACTIVE: docker,seeder SPRING_PROFILES_ACTIVE: docker
TZ: Europe/Vienna TZ: Europe/Vienna
ports: ports:
- "9093:9093" - "9093:9093"
...@@ -174,7 +174,7 @@ services: ...@@ -174,7 +174,7 @@ services:
image: fda-table-service image: fda-table-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.11 # ipv4_address: 172.29.0.11
fda-userdb: fda-userdb:
environment: environment:
SPRING_PROFILES_ACTIVE: docker SPRING_PROFILES_ACTIVE: docker
...@@ -199,7 +199,7 @@ services: ...@@ -199,7 +199,7 @@ services:
image: fda-identifier-service image: fda-identifier-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.13 # ipv4_address: 172.29.0.13
environment: environment:
SPRING_PROFILES_ACTIVE: docker SPRING_PROFILES_ACTIVE: docker
TZ: Europe/Vienna TZ: Europe/Vienna
...@@ -217,7 +217,7 @@ services: ...@@ -217,7 +217,7 @@ services:
image: fda-analyse-service image: fda-analyse-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.10 # ipv4_address: 172.29.0.10
fda-userdb: fda-userdb:
command: sh -c "/wait && flask run" # docker-compose should not test the implementation command: sh -c "/wait && flask run" # docker-compose should not test the implementation
environment: environment:
...@@ -241,7 +241,7 @@ services: ...@@ -241,7 +241,7 @@ services:
image: fda-units-service image: fda-units-service
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.7 # ipv4_address: 172.29.0.7
environment: environment:
EUREKA_SERVER: http://fda-discovery-service:9090/eureka/ EUREKA_SERVER: http://fda-discovery-service:9090/eureka/
TZ: Europe/Vienna TZ: Europe/Vienna
...@@ -266,7 +266,7 @@ services: ...@@ -266,7 +266,7 @@ services:
TZ: Europe/Vienna TZ: Europe/Vienna
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.3 # ipv4_address: 172.29.0.3
ports: ports:
- "5672:5672" - "5672:5672"
- "15672:15672" - "15672:15672"
...@@ -286,7 +286,7 @@ services: ...@@ -286,7 +286,7 @@ services:
command: [ "elasticsearch" ] command: [ "elasticsearch" ]
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.6 # ipv4_address: 172.29.0.6
environment: environment:
- discovery.type=single-node - discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
...@@ -308,7 +308,7 @@ services: ...@@ -308,7 +308,7 @@ services:
image: fda-ui image: fda-ui
networks: networks:
fda-public: fda-public:
ipv4_address: 172.29.0.15 # ipv4_address: 172.29.0.15
ports: ports:
- "443:3000" - "443:3000"
volumes: volumes:
...@@ -325,22 +325,3 @@ services: ...@@ -325,22 +325,3 @@ services:
TZ: Europe/Vienna TZ: Europe/Vienna
logging: logging:
driver: json-file driver: json-file
fda-vienna-lines:
restart: on-failure
container_name: fda-vienna-lines
hostname: fda-vienna-lines
build: ./fda-vienna-lines
image: fda-vienna-lines
networks:
fda-public:
ipv4_address: 172.29.0.16
depends_on:
fda-query-service:
condition: service_healthy
environment:
TZ: Europe/Vienna
EXCHANGE: foo
KEY: vienna_public_transport_delays
logging:
driver: json-file
\ No newline at end of file
...@@ -130,6 +130,7 @@ export default { ...@@ -130,6 +130,7 @@ export default {
} }
this.$toast.success('Query persisted.') this.$toast.success('Query persisted.')
this.$emit('close') this.$emit('close')
this.loading = false
}, },
async loadUser () { async loadUser () {
this.loading = true this.loading = true
...@@ -143,6 +144,7 @@ export default { ...@@ -143,6 +144,7 @@ export default {
this.$toast.error('Failed load user data') this.$toast.error('Failed load user data')
console.error('load user data failed', err) console.error('load user data failed', err)
} }
this.loading = false
} }
} }
} }
......
...@@ -98,6 +98,13 @@ ${this.parent.queryId ? `/${this.parent.queryId}` : ''} ...@@ -98,6 +98,13 @@ ${this.parent.queryId ? `/${this.parent.queryId}` : ''}
this.loading = false this.loading = false
} }
}, },
buildHeaders (firstLine) {
return Object.keys(firstLine).map(k => ({
text: k,
value: k,
sortable: false
}))
},
async execute () { async execute () {
this.loading = true this.loading = true
try { try {
...@@ -110,10 +117,9 @@ ${this.$route.params.container_id}/database/${this.$route.params.database_id}/qu ...@@ -110,10 +117,9 @@ ${this.$route.params.container_id}/database/${this.$route.params.database_id}/qu
headers: this.headers headers: this.headers
}) })
this.loading = false this.loading = false
// Can't display headers yet if (res.data.result.length) {
// this.result.headers = this.parent.select.map((s) => { this.result.headers = this.buildHeaders(res.data.result[0])
// return { text: s.name, value: s.name, sortable: false } }
// })
this.result.rows = res.data.result this.result.rows = res.data.result
this.total = res.data.resultNumber this.total = res.data.resultNumber
} catch (err) { } catch (err) {
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
<v-toolbar-title>{{ identifier.title }}</v-toolbar-title> <v-toolbar-title>{{ identifier.title }}</v-toolbar-title>
<v-spacer /> <v-spacer />
<v-toolbar-title> <v-toolbar-title>
<v-btn color="blue-grey white--text" class="mr-2" :disabled="!query.execution || identifier.id || !token" @click.stop="persistQueryDialog = true"> <v-btn color="blue-grey white--text" class="mr-2" :disabled="!query.execution || !!identifier.id || !token" @click.stop="persistQueryDialog = true">
<v-icon left>mdi-fingerprint</v-icon> Persist <v-icon left>mdi-fingerprint</v-icon> Persist
</v-btn> </v-btn>
<v-btn color="primary" :disabled="!token" @click.stop="reExecute"> <v-btn v-if="false" color="primary" :disabled="!token" @click.stop="reExecute">
<v-icon left>mdi-run</v-icon> Re-Execute <v-icon left>mdi-run</v-icon> Re-Execute
</v-btn> </v-btn>
</v-toolbar-title> </v-toolbar-title>
</v-toolbar> </v-toolbar>
<v-card v-if="!loading" flat> <v-card v-if="!loading" class="pb-2" flat>
<v-card-title> <v-card-title>
Query Information Query Information
</v-card-title> </v-card-title>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
Username: <code v-if="query.username">{{ query.username }}</code><span v-if="!query.username">(empty)</span> Username: <code v-if="query.username">{{ query.username }}</code><span v-if="!query.username">(empty)</span>
</p> </p>
</v-card-text> </v-card-text>
<QueryResults v-if="false" ref="queryResults" v-model="query.id" /> <QueryResults ref="queryResults" v-model="query.id" class="ml-2 mr-2 mt-0" />
</v-card> </v-card>
<v-breadcrumbs :items="items" class="pa-0 mt-2" /> <v-breadcrumbs :items="items" class="pa-0 mt-2" />
<v-dialog <v-dialog
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
// refresh QueryResults table // refresh QueryResults table
setTimeout(() => { setTimeout(() => {
// this.$refs.queryResults.execute() this.$refs.queryResults.execute()
}, 200) }, 200)
}, },
async reExecute () { async reExecute () {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<v-btn class="mr-2" :disabled="!token" :to="`/container/${$route.params.container_id}/database/${$route.params.database_id}/table/${$route.params.table_id}/import`"> <v-btn class="mr-2" :disabled="!token" :to="`/container/${$route.params.container_id}/database/${$route.params.database_id}/table/${$route.params.table_id}/import`">
<v-icon left>mdi-cloud-upload</v-icon> Import csv <v-icon left>mdi-cloud-upload</v-icon> Import csv
</v-btn> </v-btn>
<v-btn color="primary" :disabled="!token" :href="`/api/container/${$route.params.container_id}/database/${$route.params.database_id}/table/${$route.params.table_id}/data/export`" target="_blank"> <v-btn v-if="false" color="primary" :disabled="!token" :href="`/api/container/${$route.params.container_id}/database/${$route.params.database_id}/table/${$route.params.table_id}/data/export`" target="_blank">
<v-icon left>mdi-download</v-icon> Download <v-icon left>mdi-download</v-icon> Download
</v-btn> </v-btn>
</v-toolbar-title> </v-toolbar-title>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment