-
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 #1103 from NASA-IMPACT/1093-write-tests-for-two-co…
…lumn-tags-functionality Refactor Two Column to work with Delta Urls
- Loading branch information
Showing
15 changed files
with
1,575 additions
and
18 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
128 changes: 128 additions & 0 deletions
128
sde_collections/migrations/0059_candidateurl_tdamm_tag_manual_and_more.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,128 @@ | ||
# Generated by Django 4.2.9 on 2024-11-20 06:39 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("sde_collections", "0058_candidateurl_division_collection_is_multi_division_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="candidateurl", | ||
name="tdamm_tag_manual", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.CharField( | ||
choices=[ | ||
("MMA_M_EM", "Messenger - EM Radiation"), | ||
("MMA_M_EM_G", "Messenger - EM Radiation - Gamma rays"), | ||
("MMA_M_EM_X", "Messenger - EM Radiation - X-rays"), | ||
("MMA_M_EM_U", "Messenger - EM Radiation - Ultraviolet"), | ||
("MMA_M_EM_O", "Messenger - EM Radiation - Optical"), | ||
("MMA_M_EM_I", "Messenger - EM Radiation - Infrared"), | ||
("MMA_M_EM_M", "Messenger - EM Radiation - Microwave"), | ||
("MMA_M_EM_R", "Messenger - EM Radiation - Radio"), | ||
("MMA_M_G", "Messenger - Gravitational Waves"), | ||
("MMA_M_G_CBI", "Messenger - Gravitational Waves - Compact Binary Inspiral"), | ||
("MMA_M_G_S", "Messenger - Gravitational Waves - Stochastic"), | ||
("MMA_M_G_CON", "Messenger - Gravitational Waves - Continuous"), | ||
("MMA_M_G_B", "Messenger - Gravitational Waves - Burst"), | ||
("MMA_M_C", "Messenger - Cosmic Rays"), | ||
("MMA_M_N", "Messenger - Neutrinos"), | ||
("MMA_O_BI", "Objects - Binaries"), | ||
("MMA_O_BI_BBH", "Objects - Binaries - Binary Black Holes"), | ||
("MMA_O_BI_BNS", "Objects - Binaries - Binary Neutron Stars"), | ||
("MMA_O_BI_C", "Objects - Binaries - Cataclysmic Variables"), | ||
("MMA_O_BI_N", "Objects - Binaries - Neutron Star-Black Hole"), | ||
("MMA_O_BI_B", "Objects - Binaries - Binary Pulsars"), | ||
("MMA_O_BI_W", "Objects - Binaries - White Dwarf Binaries"), | ||
("MMA_O_BH", "Objects - Black Holes"), | ||
("MMA_O_BH_AGN", "Objects - Black Holes - Active Galactic Nuclei"), | ||
("MMA_O_BH_IM", "Objects - Black Holes - Intermediate mass"), | ||
("MMA_O_BH_STM", "Objects - Black Holes - Stellar mass"), | ||
("MMA_O_BH_SUM", "Objects - Black Holes - Supermassive"), | ||
("MMA_O_E", "Objects - Exoplanets"), | ||
("MMA_O_N", "Objects - Neutron Stars"), | ||
("MMA_O_N_M", "Objects - Neutron Stars - Magnetars"), | ||
("MMA_O_N_P", "Objects - Neutron Stars - Pulsars"), | ||
("MMA_O_N_PWN", "Objects - Neutron Stars - Pulsar Wind Nebula"), | ||
("MMA_O_S", "Objects - Supernova Remnants"), | ||
("MMA_S_F", "Signals - Fast Radio Bursts"), | ||
("MMA_S_G", "Signals - Gamma-ray Bursts"), | ||
("MMA_S_K", "Signals - Kilonovae"), | ||
("MMA_S_N", "Signals - Novae"), | ||
("MMA_S_P", "Signals - Pevatrons"), | ||
("MMA_S_ST", "Signals - Stellar flares"), | ||
("MMA_S_SU", "Signals - Supernovae"), | ||
], | ||
max_length=255, | ||
), | ||
blank=True, | ||
db_column="tdamm_tag_manual", | ||
null=True, | ||
size=None, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="candidateurl", | ||
name="tdamm_tag_ml", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.CharField( | ||
choices=[ | ||
("MMA_M_EM", "Messenger - EM Radiation"), | ||
("MMA_M_EM_G", "Messenger - EM Radiation - Gamma rays"), | ||
("MMA_M_EM_X", "Messenger - EM Radiation - X-rays"), | ||
("MMA_M_EM_U", "Messenger - EM Radiation - Ultraviolet"), | ||
("MMA_M_EM_O", "Messenger - EM Radiation - Optical"), | ||
("MMA_M_EM_I", "Messenger - EM Radiation - Infrared"), | ||
("MMA_M_EM_M", "Messenger - EM Radiation - Microwave"), | ||
("MMA_M_EM_R", "Messenger - EM Radiation - Radio"), | ||
("MMA_M_G", "Messenger - Gravitational Waves"), | ||
("MMA_M_G_CBI", "Messenger - Gravitational Waves - Compact Binary Inspiral"), | ||
("MMA_M_G_S", "Messenger - Gravitational Waves - Stochastic"), | ||
("MMA_M_G_CON", "Messenger - Gravitational Waves - Continuous"), | ||
("MMA_M_G_B", "Messenger - Gravitational Waves - Burst"), | ||
("MMA_M_C", "Messenger - Cosmic Rays"), | ||
("MMA_M_N", "Messenger - Neutrinos"), | ||
("MMA_O_BI", "Objects - Binaries"), | ||
("MMA_O_BI_BBH", "Objects - Binaries - Binary Black Holes"), | ||
("MMA_O_BI_BNS", "Objects - Binaries - Binary Neutron Stars"), | ||
("MMA_O_BI_C", "Objects - Binaries - Cataclysmic Variables"), | ||
("MMA_O_BI_N", "Objects - Binaries - Neutron Star-Black Hole"), | ||
("MMA_O_BI_B", "Objects - Binaries - Binary Pulsars"), | ||
("MMA_O_BI_W", "Objects - Binaries - White Dwarf Binaries"), | ||
("MMA_O_BH", "Objects - Black Holes"), | ||
("MMA_O_BH_AGN", "Objects - Black Holes - Active Galactic Nuclei"), | ||
("MMA_O_BH_IM", "Objects - Black Holes - Intermediate mass"), | ||
("MMA_O_BH_STM", "Objects - Black Holes - Stellar mass"), | ||
("MMA_O_BH_SUM", "Objects - Black Holes - Supermassive"), | ||
("MMA_O_E", "Objects - Exoplanets"), | ||
("MMA_O_N", "Objects - Neutron Stars"), | ||
("MMA_O_N_M", "Objects - Neutron Stars - Magnetars"), | ||
("MMA_O_N_P", "Objects - Neutron Stars - Pulsars"), | ||
("MMA_O_N_PWN", "Objects - Neutron Stars - Pulsar Wind Nebula"), | ||
("MMA_O_S", "Objects - Supernova Remnants"), | ||
("MMA_S_F", "Signals - Fast Radio Bursts"), | ||
("MMA_S_G", "Signals - Gamma-ray Bursts"), | ||
("MMA_S_K", "Signals - Kilonovae"), | ||
("MMA_S_N", "Signals - Novae"), | ||
("MMA_S_P", "Signals - Pevatrons"), | ||
("MMA_S_ST", "Signals - Stellar flares"), | ||
("MMA_S_SU", "Signals - Supernovae"), | ||
], | ||
max_length=255, | ||
), | ||
blank=True, | ||
db_column="tdamm_tag_ml", | ||
null=True, | ||
size=None, | ||
), | ||
), | ||
migrations.AlterModelTable( | ||
name="candidateurl", | ||
table="sde_collections_candidateurl", | ||
), | ||
] |
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,13 @@ | ||
# Generated by Django 4.2.9 on 2024-11-20 07:58 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("sde_collections", "0059_candidateurl_tdamm_tag_manual_and_more"), | ||
("sde_collections", "0065_rename_delete_deltaurl_to_delete_and_more"), | ||
] | ||
|
||
operations = [] |
21 changes: 21 additions & 0 deletions
21
sde_collections/migrations/0067_remove_candidateurl_tdamm_tag_manual_and_more.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,21 @@ | ||
# Generated by Django 4.2.9 on 2024-11-20 16:12 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("sde_collections", "0066_merge_20241120_0158"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="candidateurl", | ||
name="tdamm_tag_manual", | ||
), | ||
migrations.RemoveField( | ||
model_name="candidateurl", | ||
name="tdamm_tag_ml", | ||
), | ||
] |
Oops, something went wrong.