-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking pull request to merge release-1.5.0 to main (#205)
* update to 1.5.0 * itvr-353 (#206) * -migration/model for constraints, is_legacy, allow nulls if legacy -script for import -excludes is_legacy from serializer -adds is_legacy to console details * -adds files that were missed in last commit * -fixes migration * itvr-362--schedule-ncda-job (#207) * Itvr 335 (#208) * add searchable fields in django admin * add status field searchable * adds logout button (#210) * itvr-337--spouse-login-validation (#211) * itvr-337--spouse-login-validation * retry update * itvr-338--cancel-household-application (#213) * itvr-360--legacy-applications-console-fix (#214) * itvr-365--cancel-from-login-page--backend (#215) * add-run-jobs-env-var (#216) * snowplow-analytics (#217) * household-login-error--logout-redirect-change (#218) * loop db inserts (#219) * cleanup (#220) * cancel initiated applications (#221) * cancel initiated applications * fix sonar bug * PR suggestions * remove change_form * add migration file (#222) * -adds user and password arguments for connecting to db (#223) * reduce duplicate code (#224) * More cleanup (#226) * initial commit * more cleanup * remove missing import * add NCDA vars to task-q (#227) Co-authored-by: Emily <[email protected]> Co-authored-by: tim738745 <[email protected]> Co-authored-by: vibhiquartech <[email protected]>
- Loading branch information
1 parent
ab51113
commit 7bcfc26
Showing
47 changed files
with
1,143 additions
and
301 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
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
127 changes: 127 additions & 0 deletions
127
django/api/migrations/0003_goelectricrebateapplication_is_legacy_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,127 @@ | ||
# Generated by Django 4.0.1 on 2022-06-30 15:56 | ||
|
||
import api.validators | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import encrypted_fields.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('api', '0002_alter_goelectricrebate_ncda_id'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='goelectricrebateapplication', | ||
name='is_legacy', | ||
field=models.BooleanField(default=False, editable=False), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='address', | ||
field=models.CharField(max_length=250, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='application_type', | ||
field=models.CharField(max_length=25, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='city', | ||
field=models.CharField(max_length=250, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='consent_personal', | ||
field=models.BooleanField(null=True, validators=[api.validators.validate_consent]), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='consent_tax', | ||
field=models.BooleanField(null=True, validators=[api.validators.validate_consent]), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='date_of_birth', | ||
field=models.DateField(null=True, validators=[api.validators.validate_driving_age]), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='email', | ||
field=models.EmailField(max_length=250, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='first_name', | ||
field=models.CharField(max_length=250, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='last_name', | ||
field=models.CharField(max_length=250, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='sin', | ||
field=encrypted_fields.fields.EncryptedCharField(max_length=9, null=True, validators=[api.validators.validate_sin]), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='tax_year', | ||
field=models.IntegerField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='user', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('user__isnull', False), _connector='OR'), name='user_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('sin__isnull', False), _connector='OR'), name='sin_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('last_name__isnull', False), _connector='OR'), name='last_name_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('first_name__isnull', False), _connector='OR'), name='first_name_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('email__isnull', False), _connector='OR'), name='email_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('address__isnull', False), _connector='OR'), name='address_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('city__isnull', False), _connector='OR'), name='city_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('date_of_birth__isnull', False), _connector='OR'), name='date_of_birth_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('tax_year__isnull', False), _connector='OR'), name='tax_year_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('consent_personal__isnull', False), _connector='OR'), name='consent_personal_null_constraint'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('consent_tax__isnull', False), _connector='OR'), name='consent_tax_null_constraint'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
django/api/migrations/0004_alter_goelectricrebateapplication_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,18 @@ | ||
# Generated by Django 4.0.1 on 2022-07-06 20:33 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0003_goelectricrebateapplication_is_legacy_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='status', | ||
field=models.CharField(choices=[('household_initiated', 'Household Initiated'), ('submitted', 'Submitted'), ('verified', 'Verified'), ('declined', 'Declined'), ('approved', 'Approved'), ('not_approved', 'Not Approved'), ('redeemed', 'Redeemed'), ('expired', 'Expired'), ('cancelled', 'Cancelled')], max_length=250), | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
django/api/migrations/0005_goelectricrebateapplication_application_type_null_constraint.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,17 @@ | ||
# Generated by Django 4.0.1 on 2022-07-11 18:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0004_alter_goelectricrebateapplication_status'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddConstraint( | ||
model_name='goelectricrebateapplication', | ||
constraint=models.CheckConstraint(check=models.Q(('is_legacy__exact', True), ('application_type__isnull', False), _connector='OR'), name='application_type_null_constraint'), | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
django/api/migrations/0006_initiatedgoelectricrebateapplication.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,24 @@ | ||
# Generated by Django 4.0.1 on 2022-07-12 17:24 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0005_goelectricrebateapplication_application_type_null_constraint'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='InitiatedGoElectricRebateApplication', | ||
fields=[ | ||
], | ||
options={ | ||
'proxy': True, | ||
'indexes': [], | ||
'constraints': [], | ||
}, | ||
bases=('api.goelectricrebateapplication',), | ||
), | ||
] |
42 changes: 42 additions & 0 deletions
42
django/api/migrations/0007_alter_goelectricrebate_options_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,42 @@ | ||
# Generated by Django 4.0.1 on 2022-07-12 21:56 | ||
|
||
import api.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0006_initiatedgoelectricrebateapplication'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='goelectricrebate', | ||
options={}, | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='doc1', | ||
field=models.ImageField(blank=True, null=True, upload_to='docs', validators=[api.validators.validate_file_size]), | ||
), | ||
migrations.AlterField( | ||
model_name='goelectricrebateapplication', | ||
name='doc2', | ||
field=models.ImageField(blank=True, null=True, upload_to='docs', validators=[api.validators.validate_file_size]), | ||
), | ||
migrations.AlterField( | ||
model_name='householdmember', | ||
name='doc1', | ||
field=models.ImageField(blank=True, null=True, upload_to='docs', validators=[api.validators.validate_file_size]), | ||
), | ||
migrations.AlterField( | ||
model_name='householdmember', | ||
name='doc2', | ||
field=models.ImageField(blank=True, null=True, upload_to='docs', validators=[api.validators.validate_file_size]), | ||
), | ||
migrations.AlterModelTable( | ||
name='goelectricrebate', | ||
table='go_electric_rebate', | ||
), | ||
] |
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.