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

Fyst 1516 add email validation step to prior year access flow #5300

Merged

Conversation

DrewProebstel
Copy link
Contributor

@DrewProebstel DrewProebstel commented Dec 30, 2024

Link to pivotal/JIRA issue

-https://codeforamerica.atlassian.net/browse/FYST-1516

Is PM acceptance required? (delete one)

  • Yes - don't merge until JIRA issue is accepted!

Reminder: merge main into this branch and get green tests before merging to main

What was done?

  • adds the State_File_Archive_Intake State_File_Archive_Access_Log and State_File_Archive_Request models
  • adds a link in the about page for the get your pdf flow
  • adds feature flags for the new flow
  • adds email address page
  • adds verification code page

How to test?

  • Describe the testing approach taken to verify the changes, including:
    • Hop on demo and test out the flow
  • Specify any relevant testing environments used (e.g., development, staging, demo, Heroku).
  • Risk Assessment
    • Risks or side effects associated with the changes and how they were mitigated.
    • Highlight areas that may need extra attention during code review or testing.
    • Paste SQL queries or output where relevant

Screenshots (for visual changes)

Screenshot 2025-01-10 at 4 28 40 PM
Screenshot 2025-01-10 at 4 28 51 PM
Screenshot 2025-01-10 at 4 29 33 PM

TODO:
Make something more beautiful than this in app/jobs/archived_intake_email_verification_code_job.rb

def priority
    PRIORITY_HIGH - 1
end

Copy link

Heroku app: https://gyr-review-app-5300-d758a122588b.herokuapp.com/
View logs: heroku logs --app gyr-review-app-5300 (optionally add --tail)

@anisharamnani anisharamnani changed the base branch from main to FYST-1466-prior-year-access-mvp January 6, 2025 20:30
DrewProebstel and others added 5 commits January 6, 2025 13:03
…" (#5317)

This reverts commit f1e5246.

Co-authored-by: Drew Proebstel <dproebstel@codeforamerica.org>
… into FYST-1516-add-email-validation-step-to-prior-year-access-flow
db/schema.rb Outdated Show resolved Hide resolved
squanto and others added 3 commits January 7, 2025 16:04
* Add last year verification email

Co-authored-by: Em Barnard-Shao <ebarnard@codeforamerica.org>
Co-authored-by: Hugo Melo <hmelo@codeforamerica.org>

* Rename previous year to archived intake

Co-authored-by: Hugo Melo <hmelo@codeforamerica.org>

* normalize

Co-authored-by: Hugo Melo <hmelo@codeforamerica.org>

---------

Co-authored-by: Em Barnard-Shao <ebarnard@codeforamerica.org>
…il-validation-step-to-prior-year-access-flow
db/schema.rb Outdated Show resolved Hide resolved
end

def perform(email_address:, locale:)
ArchivedIntakeEmailVerificationCodeService.request_code(email_address: email_address, locale: locale)
Copy link
Contributor

Choose a reason for hiding this comment

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

[pebble] also i wanted to point out here, if you're renaming this file in your PR, you'd want to delete the old one too. i don't see that happening in the PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed this!

config/routes.rb Outdated Show resolved Hide resolved
expect(result).to be_a(StateFileArchivedIntakeAccessLog)
expect(result.event_type).to eq event_type
expect(result.state_file_archived_intake_request).to eq request_instance
end
Copy link
Contributor

@arinchoi03 arinchoi03 Jan 14, 2025

Choose a reason for hiding this comment

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

[pebble] can we add an expectation testing what would happen if current_request is nil since that's a potential outcome? I'm guessing it creates an access log the same way with nil as the state_file_archived_intake_request_id on that record, since there's no NOT NULL constraint

Copy link
Contributor

@arinchoi03 arinchoi03 left a comment

Choose a reason for hiding this comment

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

lgtm! just a small nitpicks/pebble

Copy link
Contributor

@jenny-heath jenny-heath left a comment

Choose a reason for hiding this comment

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

great job!

anisharamnani and others added 5 commits January 14, 2025 14:08
@DrewProebstel DrewProebstel merged commit 02db115 into main Jan 14, 2025
7 checks passed
@DrewProebstel DrewProebstel deleted the FYST-1516-add-email-validation-step-to-prior-year-access-flow branch January 14, 2025 22:23
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.

7 participants