-
Notifications
You must be signed in to change notification settings - Fork 6
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 #168 from stanfordnmbl/dev
Subject tags and subject refactoring
- Loading branch information
Showing
10 changed files
with
414 additions
and
12 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
96 changes: 96 additions & 0 deletions
96
mcserver/migrations/0029_subject_tags_alter_analysisresult_status.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,96 @@ | ||
# Generated by Django 4.2 on 2024-02-08 19:20 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("mcserver", "0028_user_institutional_use"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="subject", | ||
name="tags", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[("unimpaired", "Unimpaired")], | ||
max_length=20, | ||
null=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="analysisresult", | ||
name="status", | ||
field=models.IntegerField( | ||
choices=[ | ||
(100, "Continue"), | ||
(101, "Switching Protocols"), | ||
(102, "Processing"), | ||
(103, "Early Hints"), | ||
(200, "OK"), | ||
(201, "Created"), | ||
(202, "Accepted"), | ||
(203, "Non-Authoritative Information"), | ||
(204, "No Content"), | ||
(205, "Reset Content"), | ||
(206, "Partial Content"), | ||
(207, "Multi-Status"), | ||
(208, "Already Reported"), | ||
(226, "IM Used"), | ||
(300, "Multiple Choices"), | ||
(301, "Moved Permanently"), | ||
(302, "Found"), | ||
(303, "See Other"), | ||
(304, "Not Modified"), | ||
(305, "Use Proxy"), | ||
(307, "Temporary Redirect"), | ||
(308, "Permanent Redirect"), | ||
(400, "Bad Request"), | ||
(401, "Unauthorized"), | ||
(402, "Payment Required"), | ||
(403, "Forbidden"), | ||
(404, "Not Found"), | ||
(405, "Method Not Allowed"), | ||
(406, "Not Acceptable"), | ||
(407, "Proxy Authentication Required"), | ||
(408, "Request Timeout"), | ||
(409, "Conflict"), | ||
(410, "Gone"), | ||
(411, "Length Required"), | ||
(412, "Precondition Failed"), | ||
(413, "Request Entity Too Large"), | ||
(414, "Request-URI Too Long"), | ||
(415, "Unsupported Media Type"), | ||
(416, "Requested Range Not Satisfiable"), | ||
(417, "Expectation Failed"), | ||
(418, "I'm a Teapot"), | ||
(421, "Misdirected Request"), | ||
(422, "Unprocessable Entity"), | ||
(423, "Locked"), | ||
(424, "Failed Dependency"), | ||
(425, "Too Early"), | ||
(426, "Upgrade Required"), | ||
(428, "Precondition Required"), | ||
(429, "Too Many Requests"), | ||
(431, "Request Header Fields Too Large"), | ||
(451, "Unavailable For Legal Reasons"), | ||
(500, "Internal Server Error"), | ||
(501, "Not Implemented"), | ||
(502, "Bad Gateway"), | ||
(503, "Service Unavailable"), | ||
(504, "Gateway Timeout"), | ||
(505, "HTTP Version Not Supported"), | ||
(506, "Variant Also Negotiates"), | ||
(507, "Insufficient Storage"), | ||
(508, "Loop Detected"), | ||
(510, "Not Extended"), | ||
(511, "Network Authentication Required"), | ||
], | ||
default=200, | ||
help_text="Status code function responsed with.", | ||
verbose_name="Status", | ||
), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
mcserver/migrations/0030_rename_tags_subject_subject_tags.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 on 2024-02-08 19:21 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("mcserver", "0029_subject_tags_alter_analysisresult_status"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="subject", | ||
old_name="tags", | ||
new_name="subject_tags", | ||
), | ||
] |
43 changes: 43 additions & 0 deletions
43
mcserver/migrations/0031_remove_subject_subject_tags_subjecttags.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,43 @@ | ||
# Generated by Django 4.2 on 2024-02-08 19:28 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("mcserver", "0030_rename_tags_subject_subject_tags"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="subject", | ||
name="subject_tags", | ||
), | ||
migrations.CreateModel( | ||
name="SubjectTags", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("tag", models.TextField()), | ||
( | ||
"subject", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="mcserver.subject", | ||
), | ||
), | ||
], | ||
options={ | ||
"ordering": ["subject", "tag"], | ||
}, | ||
), | ||
] |
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,14 @@ | ||
# Generated by Django 3.1.14 on 2024-03-19 20:39 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mcserver', '0029_analysisfunction_info'), | ||
('mcserver', '0031_remove_subject_subject_tags_subjecttags'), | ||
] | ||
|
||
operations = [ | ||
] |
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 3.1.14 on 2024-03-19 20:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mcserver', '0032_merge_20240319_1339'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='analysisresult', | ||
name='status', | ||
field=models.IntegerField(choices=[(100, 'Continue'), (101, 'Switching Protocols'), (102, 'Processing'), (200, 'OK'), (201, 'Created'), (202, 'Accepted'), (203, 'Non-Authoritative Information'), (204, 'No Content'), (205, 'Reset Content'), (206, 'Partial Content'), (207, 'Multi-Status'), (208, 'Already Reported'), (226, 'IM Used'), (300, 'Multiple Choices'), (301, 'Moved Permanently'), (302, 'Found'), (303, 'See Other'), (304, 'Not Modified'), (305, 'Use Proxy'), (307, 'Temporary Redirect'), (308, 'Permanent Redirect'), (400, 'Bad Request'), (401, 'Unauthorized'), (402, 'Payment Required'), (403, 'Forbidden'), (404, 'Not Found'), (405, 'Method Not Allowed'), (406, 'Not Acceptable'), (407, 'Proxy Authentication Required'), (408, 'Request Timeout'), (409, 'Conflict'), (410, 'Gone'), (411, 'Length Required'), (412, 'Precondition Failed'), (413, 'Request Entity Too Large'), (414, 'Request-URI Too Long'), (415, 'Unsupported Media Type'), (416, 'Requested Range Not Satisfiable'), (417, 'Expectation Failed'), (421, 'Misdirected Request'), (422, 'Unprocessable Entity'), (423, 'Locked'), (424, 'Failed Dependency'), (426, 'Upgrade Required'), (428, 'Precondition Required'), (429, 'Too Many Requests'), (431, 'Request Header Fields Too Large'), (500, 'Internal Server Error'), (501, 'Not Implemented'), (502, 'Bad Gateway'), (503, 'Service Unavailable'), (504, 'Gateway Timeout'), (505, 'HTTP Version Not Supported'), (506, 'Variant Also Negotiates'), (507, 'Insufficient Storage'), (508, 'Loop Detected'), (510, 'Not Extended'), (511, 'Network Authentication Required')], default=200, help_text='Status code function responsed with.', verbose_name='Status'), | ||
), | ||
] |
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.