Merge branch 'main' of github.com:cisagov/manage.get.gov into es/1378-availability-bugfix

This commit is contained in:
Erin 2023-12-01 10:05:08 -08:00
commit c3a23c23fa
No known key found for this signature in database
GPG key ID: 1CAD275313C62460
8 changed files with 46 additions and 2 deletions

View file

@ -78,3 +78,9 @@
font-weight: font-weight('semibold');
margin-bottom: units(0.5);
}
.review__step__subheading {
color: color('primary-dark');
font-weight: font-weight('semibold');
margin-bottom: units(0.5);
}

View file

@ -176,6 +176,7 @@ class Command(BaseCommand):
"clienthold": TransitionDomain.StatusChoices.ON_HOLD,
"created": TransitionDomain.StatusChoices.READY,
"ok": TransitionDomain.StatusChoices.READY,
"unknown": TransitionDomain.StatusChoices.UNKNOWN,
}
mapped_status = status_maps.get(status_to_map)
return mapped_status

View file

@ -0,0 +1,24 @@
# Generated by Django 4.2.7 on 2023-12-01 17:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("registrar", "0047_transitiondomain_address_line_transitiondomain_city_and_more"),
]
operations = [
migrations.AlterField(
model_name="transitiondomain",
name="status",
field=models.CharField(
blank=True,
choices=[("ready", "Ready"), ("on hold", "On Hold"), ("unknown", "Unknown")],
default="ready",
help_text="domain status during the transfer",
max_length=255,
verbose_name="Status",
),
),
]

View file

@ -5,6 +5,7 @@ from .utility.time_stamped_model import TimeStampedModel
class StatusChoices(models.TextChoices):
READY = "ready", "Ready"
ON_HOLD = "on hold", "On Hold"
UNKNOWN = "unknown", "Unknown"
class TransitionDomain(TimeStampedModel):

View file

@ -99,6 +99,7 @@
{% if step == Step.OTHER_CONTACTS %}
{% for other in application.other_contacts.all %}
<div class="margin-bottom-105">
<div class="review__step__subheading">Contact {{ forloop.counter }}</div>
{% include "includes/contact.html" with contact=other %}
</div>
{% empty %}

View file

@ -2,4 +2,4 @@ Anomaly.gov|muahaha|
TestDomain.gov|ok|
FakeWebsite1.gov|serverHold|
FakeWebsite2.gov|Hold|
FakeWebsite3.gov|ok|
FakeWebsite3.gov|unknown|

View file

@ -193,6 +193,17 @@ class TestOrganizationMigration(TestCase):
self.assertEqual(transition, expected_transition_domain)
def test_transition_domain_status_unknown(self):
"""
Test that a domain in unknown status can be loaded
""" # noqa - E501 (harder to read)
# == First, parse all existing data == #
self.run_load_domains()
self.run_transfer_domains()
domain_object = Domain.objects.get(name="fakewebsite3.gov")
self.assertEqual(domain_object.state, Domain.State.UNKNOWN)
def test_load_organization_data_domain_information(self):
"""
This test verifies the functionality of the load_organization_data method.

View file

@ -8,7 +8,7 @@ certifi==2023.7.22; python_version >= '3.6'
cfenv==0.5.3
cffi==1.16.0; python_version >= '3.8'
charset-normalizer==3.3.2; python_full_version >= '3.7.0'
cryptography==41.0.5; python_version >= '3.7'
cryptography==41.0.6; python_version >= '3.7'
defusedxml==0.7.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
dj-database-url==2.1.0
dj-email-url==1.0.6