-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
316b123 OS-7200: Fixed broken Selector component 942964a OS-7187: Fixed community docs route mismatches c4437f1 OS-7199. Check alembic down revisions 6534d77 OS-7188: Fixed false error blink in docs panel when switching pages 95d2bb4 Merge feature/ml_leaderboard into integration 291d87d OS-7196. Fixed migration tree in restapi 030be74 OS-6765: Add Learn panel 461af7b OS-7138. Replace pep8 with pycodestyle and pylint upgrade 2e767d4 OS-7099. Make pylint tests work: pharos_backend 3b341a1 OS-7100. Make pylint tests work: rest_api 70d8d9d OS-7179: Updated TS and packages 37d10f2 OS-7097. Make pylint tests work: keeper f470c67 OS-7095. Make pylint tests work: jira_bus b0ed4ec OS-7069. Bulldozer pylint 713379f OS-7093. Make pylint tests work: herald
- Loading branch information
Showing
554 changed files
with
20,146 additions
and
4,023 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,20 @@ | ||
name: Build layout_cleaner test image and run tests on it | ||
run-name: Build layout_cleaner test image and run tests on it - started by ${{ github.actor }} | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
paths: | ||
- 'docker_images/layout_cleaner/**' | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build_image: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Build image | ||
run: bash -x build.sh layout_cleaner build | ||
- name: Build test image and run tests | ||
run: bash -x docker_images/layout_cleaner/run_test.sh |
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
9 changes: 9 additions & 0 deletions
9
arcee/arcee_receiver/migrations/20231016161400_added_decription_to_applications.py
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,9 @@ | ||
from mongodb_migrations.base import BaseMigration | ||
|
||
|
||
class Migration(BaseMigration): | ||
def upgrade(self): | ||
self.db.application.update_many({}, {"$set": {"description": None}}) | ||
|
||
def downgrade(self): | ||
self.db.application.update_many({}, {"$unset": {"description": ""}}) |
28 changes: 28 additions & 0 deletions
28
arcee/arcee_receiver/migrations/20231024174700_changed_runs_datasets.py
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,28 @@ | ||
from mongodb_migrations.base import BaseMigration | ||
from pymongo import UpdateOne | ||
|
||
BULK_SIZE = 5000 | ||
|
||
|
||
class Migration(BaseMigration): | ||
def upgrade(self): | ||
run_dataset_map = {} | ||
for run in self.db.run.find({'dataset_ids': {'$exists': True}}): | ||
run_dataset_map[run['_id']] = run['dataset_ids'][-1] | ||
update_operations = [] | ||
for run_id, dataset_id in run_dataset_map.items(): | ||
update_operations.append(UpdateOne( | ||
filter={ | ||
'_id': run_id | ||
}, | ||
update={'$set': {'dataset_id': dataset_id}}, | ||
)) | ||
if update_operations: | ||
self.db.run.update_many({}, {'$unset': {'dataset_ids': ""}}) | ||
for i in range(0, len(update_operations), BULK_SIZE): | ||
bulk = update_operations[i:i + BULK_SIZE] | ||
self.db.run.bulk_write(bulk) | ||
|
||
def downgrade(self): | ||
# there is no need to revert dataset_ids -> dataset_id transition | ||
pass |
19 changes: 19 additions & 0 deletions
19
arcee/arcee_receiver/migrations/20231031154932_added_dataset_optional_fields.py
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,19 @@ | ||
from mongodb_migrations.base import BaseMigration | ||
|
||
|
||
class Migration(BaseMigration): | ||
def upgrade(self): | ||
self.db.dataset.update_many({}, {"$set": { | ||
"training_set": None, | ||
"validation_set": None, | ||
"timespan_from": None, | ||
"timespan_to": None | ||
}}) | ||
|
||
def downgrade(self): | ||
self.db.dataset.update_many({}, {"$unset": { | ||
"training_set": "", | ||
"validation_set": "", | ||
"timespan_from": "", | ||
"timespan_to": "" | ||
}}) |
Empty file.
Oops, something went wrong.