Skip to content

Commit

Permalink
#21 add automatic update for results
Browse files Browse the repository at this point in the history
  • Loading branch information
uly55e5 committed May 10, 2023
1 parent d72e23f commit ce6f5d4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-svelte-debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:19-alpine AS build
FROM docker.io/node:19-alpine AS build

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PWD}
healthcheck:
test: ["CMD","mongosh", "--eval", "db.adminCommand('ping')"]
test: ["CMD","mongosh", "--eval", "\"db.adminCommand('ping')\""]
interval: 30s
timeout: 60s
retries: 5
Expand Down
5 changes: 5 additions & 0 deletions pkg/database/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ type PostgresSQLDB struct {
database *sql.DB
}

func (p *PostgresSQLDB) GetMetaData() (*MB3MetaData, error) {
//TODO implement me
panic("implement me")
}

// NewPostgresSQLDb creates a postgres database handle implementing [MB3Database] from the configuration.
// It does test the connection or connect to the database. This should be done by [Connect()].
//
Expand Down
2 changes: 2 additions & 0 deletions web-frontend/src/routes/contents/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
</div>
<div class="pure-u-4-5">
<h2>Results</h2>
{#key ionMode,msType,contribuors,instrumentType}
{#await getResults(page)}
<div class="info">Loading results...</div>
{:then records}
Expand All @@ -83,6 +84,7 @@
{:catch error}
<div class="error">Error while loading results</div>
{/await}
{/key}
</div>
</div>

Expand Down

0 comments on commit ce6f5d4

Please sign in to comment.