-
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.
* model renaming and use of current_year in views * added InterviewAssignment model/table, (and added index on ApplicationReview.submitted) * complete support for interview reviews ** interview assignments are listed on dashboard ** and link to interview review page resolves #18 resolves #19 part of #20
- Loading branch information
Showing
12 changed files
with
492 additions
and
86 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 2.0 on 2018-02-15 18:29 | ||
import django.db.models.deletion | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('review', '0011_auto_20180214_2043'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel('Review', 'ApplicationReview'), | ||
migrations.AlterModelOptions( | ||
name='applicationreview', | ||
options={'ordering': ('-submitted',)}, | ||
), | ||
migrations.AlterField( | ||
model_name='applicationreview', | ||
name='application', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='application_reviews', to='review.Application'), | ||
), | ||
migrations.AlterField( | ||
model_name='applicationreview', | ||
name='reviewer', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='application_reviews', to=settings.AUTH_USER_MODEL), | ||
), | ||
] |
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,40 @@ | ||
# Generated by Django 2.0 on 2018-02-15 19:24 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import review.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('review', '0012_auto_20180215_1829'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='InterviewAssignment', | ||
fields=[ | ||
('interview_assignment_id', models.AutoField(primary_key=True, serialize=False)), | ||
('application', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='interview_assignments', to='review.Application')), | ||
('reviewer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='interview_assignments', to=settings.AUTH_USER_MODEL)), | ||
('interview_round', review.models.EnumIntegerField([('round_one', '1'), ('round_two', '2')])), # FIXME | ||
('assigned', models.DateTimeField(auto_now_add=True, db_index=True)), | ||
('notified', models.DateTimeField(db_index=True, null=True)), | ||
], | ||
options={ | ||
'db_table': 'interview_assignment', | ||
'ordering': ('-assigned',), | ||
}, | ||
), | ||
migrations.AlterField( | ||
model_name='applicationreview', | ||
name='submitted', | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='interviewassignment', | ||
unique_together={('application', 'reviewer', 'interview_round')}, | ||
), | ||
] |
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,17 @@ | ||
# Generated by Django 2.0 on 2018-02-16 01:16 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('review', '0013_auto_20180215_1924'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='application', | ||
options={'ordering': ('-created',)}, | ||
), | ||
] |
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,35 @@ | ||
# Generated by Django 2.0 on 2018-02-16 02:57 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import review.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('review', '0014_auto_20180216_0116'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='InterviewReview', | ||
fields=[ | ||
('interview_assignment', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='review.InterviewAssignment')), | ||
('programming_rating', models.IntegerField(null=True, verbose_name='Programming')), | ||
('machine_learning_rating', models.IntegerField(null=True, verbose_name='Stats & Machine Learning')), | ||
('data_handling_rating', models.IntegerField(null=True, verbose_name='Data Handling & Manipulation')), | ||
('social_science', models.IntegerField(null=True, verbose_name='Social Science')), | ||
('interest_in_good_rating', models.IntegerField(null=True, verbose_name='Interest in Social Good')), | ||
('communication_rating', models.IntegerField(null=True, verbose_name='Communication Ability')), | ||
('teamwork_rating', models.IntegerField(null=True, verbose_name='Teamwork and Collaboration')), | ||
('overall_recommendation', review.models.EnumCharField([('accept', 'Accept'), ('reject', 'Reject'), ('only_if', 'Accept <em>only</em> if you need a certain type of fellow (explain below)')], help_text='Overall recommendation')), | ||
('comments', models.TextField(blank=True, help_text='Any comments?')), | ||
('submitted', models.DateTimeField(auto_now_add=True, db_index=True)), | ||
], | ||
options={ | ||
'db_table': 'interview_review', | ||
'ordering': ('-submitted',), | ||
}, | ||
), | ||
] |
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.