Skip to content

Commit 13cd7a1

Browse files
committed
keep aggregator_association app minimally, add delete migration
1 parent 22284eb commit 13cd7a1

File tree

7 files changed

+113
-0
lines changed

7 files changed

+113
-0
lines changed

server/aggregator_association/__init__.py

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class AggregatorAssociationConfig(AppConfig):
5+
default_auto_field = 'django.db.models.BigAutoField'
6+
name = 'aggregator_association'
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Generated by Django 4.2.11 on 2024-04-29 13:21
2+
3+
from django.conf import settings
4+
from django.db import migrations, models
5+
import django.db.models.deletion
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
initial = True
11+
12+
dependencies = [
13+
("aggregator", "0001_initial"),
14+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
15+
]
16+
17+
operations = [
18+
migrations.CreateModel(
19+
name="ExperimentAggregator",
20+
fields=[
21+
(
22+
"id",
23+
models.BigAutoField(
24+
auto_created=True,
25+
primary_key=True,
26+
serialize=False,
27+
verbose_name="ID",
28+
),
29+
),
30+
("metadata", models.JSONField(default=dict)),
31+
(
32+
"approval_status",
33+
models.CharField(
34+
choices=[
35+
("PENDING", "PENDING"),
36+
("APPROVED", "APPROVED"),
37+
("REJECTED", "REJECTED"),
38+
],
39+
default="PENDING",
40+
max_length=100,
41+
),
42+
),
43+
("approved_at", models.DateTimeField(blank=True, null=True)),
44+
("created_at", models.DateTimeField(auto_now_add=True)),
45+
("modified_at", models.DateTimeField(auto_now=True)),
46+
(
47+
"aggregator",
48+
models.ForeignKey(
49+
on_delete=django.db.models.deletion.PROTECT,
50+
to="aggregator.aggregator",
51+
),
52+
),
53+
(
54+
"initiated_by",
55+
models.ForeignKey(
56+
on_delete=django.db.models.deletion.PROTECT,
57+
to=settings.AUTH_USER_MODEL,
58+
),
59+
),
60+
],
61+
options={
62+
"ordering": ["created_at"],
63+
},
64+
),
65+
]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated by Django 4.2.11 on 2024-04-29 13:21
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
initial = True
10+
11+
dependencies = [
12+
("training", "0001_initial"),
13+
("aggregator_association", "0001_initial"),
14+
]
15+
16+
operations = [
17+
migrations.AddField(
18+
model_name="experimentaggregator",
19+
name="training_exp",
20+
field=models.ForeignKey(
21+
on_delete=django.db.models.deletion.CASCADE,
22+
to="training.trainingexperiment",
23+
),
24+
),
25+
]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Generated by Django 4.2.23 on 2026-03-15 20:12
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('aggregator_association', '0002_initial'),
10+
]
11+
12+
operations = [
13+
migrations.DeleteModel(
14+
name='ExperimentAggregator',
15+
),
16+
]

server/aggregator_association/migrations/__init__.py

Whitespace-only changes.

server/medperf/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"aggregator",
111111
"ca",
112112
"traindataset_association",
113+
"aggregator_association",
113114
"ca_association",
114115
"trainingevent",
115116
"rest_framework",

0 commit comments

Comments
 (0)