Skip to content

Commit

Permalink
Merge pull request #2187 from cisagov/dk/2178-remove-your-contact-fro…
Browse files Browse the repository at this point in the history
…m-requests

Issue 2178: Remove your contact from requests [DK]
  • Loading branch information
rachidatecs authored May 28, 2024
2 parents 1457c3a + 2a6f172 commit 85fe89a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/registrar/templates/domain_request_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2 class="text-primary-darker"> Summary of your domain request </h2>
{% include "includes/summary_item.html" with title='Purpose of your domain' value=DomainRequest.purpose heading_level=heading_level %}
{% endif %}

{% if DomainRequest.submitter %}
{% if DomainRequest.submitter and not has_profile_feature_flag %}
{% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.submitter contact='true' heading_level=heading_level %}
{% endif %}

Expand Down
10 changes: 9 additions & 1 deletion src/registrar/views/domain_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
DomainRequestWizardPermissionView,
)

from waffle.decorators import flag_is_active
from waffle.decorators import flag_is_active, waffle_flag

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -406,6 +406,10 @@ def get_step_list(self) -> list:
condition = condition(self)
if condition:
step_list.append(step)

if flag_is_active(self.request, "profile_feature"):
step_list.remove(Step.YOUR_CONTACT)

return step_list

def goto(self, step):
Expand Down Expand Up @@ -540,6 +544,10 @@ class YourContact(DomainRequestWizard):
template_name = "domain_request_your_contact.html"
forms = [forms.YourContactForm]

@waffle_flag("!profile_feature") # type: ignore
def dispatch(self, request, *args, **kwargs): # type: ignore
return super().dispatch(request, *args, **kwargs)


class OtherContacts(DomainRequestWizard):
template_name = "domain_request_other_contacts.html"
Expand Down

0 comments on commit 85fe89a

Please sign in to comment.