-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into etag-prepro
- Loading branch information
Showing
72 changed files
with
4,915 additions
and
2,985 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: ena-submission-tests | ||
on: | ||
# test | ||
pull_request: | ||
paths: | ||
- "ena-submission/**" | ||
- ".github/workflows/ena-submission-tests.yml" | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
concurrency: | ||
group: ci-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}-ena-submission-tests | ||
cancel-in-progress: true | ||
jobs: | ||
unitTests: | ||
name: Unit Tests | ||
runs-on: codebuild-loculus-ci-${{ github.run_id }}-${{ github.run_attempt }} | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: ena-submission/environment.yml | ||
micromamba-version: 'latest' | ||
init-shell: >- | ||
bash | ||
powershell | ||
cache-environment: true | ||
post-cleanup: 'all' | ||
- name: Run tests | ||
run: | | ||
micromamba activate loculus-ena-submission | ||
python3 scripts/test_ena_submission.py | ||
shell: micromamba-shell {0} | ||
working-directory: ena-submission |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
backend/src/main/kotlin/org/loculus/backend/service/submission/UpdateTrackerTable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
package org.loculus.backend.service.submission | ||
|
||
import org.jetbrains.exposed.sql.Table | ||
|
||
const val UPDATE_TRACKER_TABLE_NAME = "table_update_tracker" | ||
|
||
object UpdateTrackerTable : Table(UPDATE_TRACKER_TABLE_NAME) { | ||
val lastTimeUpdatedDbColumn = varchar("last_time_updated", 255).nullable() | ||
val tableNameColumn = varchar("table_name", 255) | ||
val tableNameColumn = text("table_name") | ||
val lastTimeUpdatedDbColumn = text("last_time_updated") | ||
|
||
override val primaryKey = PrimaryKey(tableNameColumn) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.