-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from MetaCell/develop
Release 1.1.0
- Loading branch information
Showing
57 changed files
with
1,899 additions
and
2,671 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
harness: | ||
env: | ||
- name: SENTRY_DSN | ||
value: https://[email protected]/9 | ||
value: https://57b1ca8a70634782bd6c90dd119eeab5@o4506739169951744.ingest.sentry.io/4506758817382404 | ||
|
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
18 changes: 18 additions & 0 deletions
18
applications/portal/backend/api/migrations/0008_auto_20240215_0459.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,18 @@ | ||
# Generated by Django 4.2.9 on 2024-02-15 12:59 | ||
|
||
from django.db import migrations, connection | ||
from cloudharness import log | ||
from api.repositories.maintainance import rechunk_catalog_number | ||
|
||
def chunk_catalog_number(apps, schema_editor): | ||
Antibody = apps.get_model('api', 'Antibody') | ||
rechunk_catalog_number(Antibody) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("api", "0007_alter_antibody_comments"), | ||
] | ||
operations = [ | ||
migrations.RunPython(chunk_catalog_number) | ||
] |
72 changes: 72 additions & 0 deletions
72
applications/portal/backend/api/migrations/0009_auto_20240220_0451.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,72 @@ | ||
# Generated by Django 4.2.10 on 2024-02-20 12:51 | ||
|
||
import api.models | ||
import django.contrib.postgres.indexes | ||
import django.contrib.postgres.search | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("api", "0008_auto_20240215_0459"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunSQL( | ||
sql=""" | ||
DROP MATERIALIZED VIEW IF EXISTS antibody_search; | ||
CREATE MATERIALIZED VIEW antibody_search AS | ||
SELECT ix, | ||
( | ||
setweight(to_tsvector('english'::regconfig, ((( | ||
COALESCE(ab_name, ''::text) || ' '::text) || | ||
COALESCE(clone_id, ''::text) || ' '::text)) | ||
), 'A'::"char") || | ||
setweight(to_tsvector('english'::regconfig, ((((((((((((((((((((((((( | ||
COALESCE(api_vendor.vendor, ''::text) || ' '::text) || | ||
COALESCE(api_specie.name, ''::text) || ' '::text) || | ||
COALESCE(target_subregion, ''::text) || ' '::text) || | ||
COALESCE(clonality, ''::text)) || ' '::text) || | ||
COALESCE(target_modification, ''::text)) || ' '::text) || | ||
COALESCE(epitope, ''::character varying)::text) || ' '::text) || | ||
COALESCE(product_isotype, ''::character varying)::text) || ' '::text) || | ||
COALESCE(ab_target, ''::character varying)::text) || ' '::text) || | ||
COALESCE(ab_target_entrez_gid, ''::character varying)::text) || ' '::text) || | ||
COALESCE(uniprot_id, ''::character varying)::text) || ' '::text) || | ||
COALESCE(product_isotype, ''::character varying)::text) || ' '::text) || | ||
COALESCE(product_conjugate, ''::text) || | ||
COALESCE(product_form, ''::character varying)::text) || ' '::text) || | ||
COALESCE(target_species_raw, ''::character varying)::text) || ' '::text) || | ||
COALESCE(kit_contents, ''::character varying)::text) || ' '::text)), 'C'::"char") || | ||
setweight(to_tsvector('english'::regconfig, ((( | ||
COALESCE(comments, ''::text) || ' '::text) || | ||
COALESCE(curator_comment, ''::text) || ' '::text)) | ||
), 'D'::"char") | ||
) AS search_vector, | ||
defining_citation, | ||
disc_date, | ||
status | ||
FROM api_antibody | ||
LEFT JOIN api_vendor ON api_vendor.id = api_antibody.vendor_id | ||
LEFT JOIN api_specie ON api_specie.id = api_antibody.source_organism_id | ||
""", | ||
reverse_sql = ''' | ||
DROP MATERIALIZED VIEW antibody_search; | ||
''' | ||
), | ||
migrations.RunSQL( | ||
sql="""CREATE UNIQUE INDEX IF NOT EXISTS antibody_search_idx | ||
ON antibody_search | ||
(ix); | ||
""", | ||
), | ||
migrations.AddIndex( | ||
model_name="antibodysearch", | ||
index=django.contrib.postgres.indexes.GinIndex( | ||
fields=["search_vector"], name="antibody_search_fts_idx" | ||
), | ||
) | ||
] |
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
Oops, something went wrong.