Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add full name field to access and submission page #1797

Merged
merged 6 commits into from
Aug 16, 2023
Merged

Conversation

danswick
Copy link
Contributor

Closes #1761

Adds several new "full name" fields to the access and submission page and updates Cypress tests.

Preview:
image

@danswick danswick requested a review from jperson1 August 11, 2023 23:26
@danswick danswick temporarily deployed to dev August 11, 2023 23:26 — with GitHub Actions Inactive
@danswick danswick temporarily deployed to meta August 11, 2023 23:26 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 2023

Terraform plan for meta

Plan: 4 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # module.environments["dev"].local_file.cf_org will be created
  + resource "local_file" "cf_org" {
      + content              = <<-EOT
            cf_org_name = "gsa-tts-oros-fac"
        EOT
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0644"
      + filename             = "./../dev/orgname.auto.tfvars"
      + id                   = (known after apply)
    }

  # module.environments["preview"].local_file.cf_org will be created
  + resource "local_file" "cf_org" {
      + content              = <<-EOT
            cf_org_name = "gsa-tts-oros-fac"
        EOT
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0644"
      + filename             = "./../preview/orgname.auto.tfvars"
      + id                   = (known after apply)
    }

  # module.environments["production"].local_file.cf_org will be created
  + resource "local_file" "cf_org" {
      + content              = <<-EOT
            cf_org_name = "gsa-tts-oros-fac"
        EOT
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0644"
      + filename             = "./../production/orgname.auto.tfvars"
      + id                   = (known after apply)
    }

  # module.environments["staging"].local_file.cf_org will be created
  + resource "local_file" "cf_org" {
      + content              = <<-EOT
            cf_org_name = "gsa-tts-oros-fac"
        EOT
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0644"
      + filename             = "./../staging/orgname.auto.tfvars"
      + id                   = (known after apply)
    }

Plan: 4 to add, 0 to change, 0 to destroy.

✅ Plan applied in Deploy to Development and Management Environment #110

@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 2023

Terraform plan for dev

No changes. Your infrastructure matches the configuration.
No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

❌ Plan not applied in Deploy to Development and Management Environment #110 (Plan has changed)

@danswick danswick temporarily deployed to meta August 11, 2023 23:32 — with GitHub Actions Inactive
@danswick danswick temporarily deployed to dev August 11, 2023 23:32 — with GitHub Actions Inactive
@@ -247,13 +326,13 @@ describe('Create New Audit', () => {
});

cy.get('.auditee_contacts .delete-contact').click();
cy.get('.auditee_contacts .grid-row').should('have.length', 1);
cy.get('.auditee_contacts .grid-row').should('have.length', 3);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the new full name fields in their own row, which means two new rows are added each time you add a new contact.

@danswick danswick temporarily deployed to dev August 11, 2023 23:38 — with GitHub Actions Inactive
@danswick danswick temporarily deployed to meta August 11, 2023 23:38 — with GitHub Actions Inactive
@danswick danswick temporarily deployed to dev August 11, 2023 23:44 — with GitHub Actions Inactive
@danswick danswick temporarily deployed to meta August 11, 2023 23:44 — with GitHub Actions Inactive
export function testValidAccess() {
completeFormWithValidInfo();
cy.wrap(accessFields).each((field) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cy.wrap() might not be necessary (or used correctly here), but I was having some trouble with the cypress commands executing in the right order. My understanding is that Cypress commands have their own special queueing system that kinda looks and feels like promises but isn't exactly the same and can cause issues with sequencing. This helped tests pass consistently, but I'm not committed to the idea!

@jadudm
Copy link
Contributor

jadudm commented Aug 14, 2023

Just checking: this adds the field to the front-end, but does not yet percolate it back? It makes sense to bring it in this way, from my point of view, and we can do the backend work as a separate ticket (if that's your intent).

@danswick
Copy link
Contributor Author

@jadudm The original ticket says to implement in the form "*first*", so that's where I started! But I agree that it makes sense to keep them as separate PRs to make each one more reviewable.

@Leighdiddy
Copy link

@danswick @jperson1 @lauraherring little correction - Could we update this name field to say something like "First name, last name" instead of "Full name"? I could see that causing confusion.

Copy link
Contributor

@jadudm jadudm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jadudm jadudm merged commit f2ea255 into main Aug 16, 2023
13 checks passed
@jadudm jadudm deleted the ds-auditor-fullname branch August 16, 2023 13:59
@danswick
Copy link
Contributor Author

@Leighdiddy saw your suggestion too late for this PR but added it to the backend follow-up here: 8337cc2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the Full name field in the form *first*.
3 participants