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

jcohen/APPEALS-37561: Adjust Seed Data and Factories to Include Timezones #20599

Merged
merged 18 commits into from
Feb 15, 2024

Conversation

JCohDev
Copy link
Contributor

@JCohDev JCohDev commented Jan 24, 2024

Merge pull request #20509 from department-of-veterans-affairs/jcohen/APPEALS-37561

Resolves APPEALS-37095

Description

As a Caseflow software developer I need for the mechanisms I utilize to stage data for testing to include updates made to how hearing time information is being persisted so that I can quickly and accurately test our work.

Acceptance Criteria

  • Factories are updated to generate "scheduled_in_timezone" values:

  • These factories are located in spec/factories

  • Some of the factories that will need to be updated (not necessarily a comprehensive list):
    hearing
    legacy_hearing

  • Factories should produce a default "scheduled_in_timezone" value that will likely correspond with US/Eastern Time.

  • Factories that generate records with an association to any hearings table should be tested also.
    Example: The :held_hearing trait on the Appeal factory.

  • Seed data configurations are altered to ensure that hearings and legacy hearings include the following information:

  • "scheduled_in_timezone" values
    These values should represent a variety of timezones, and hearings should be spread out over a number of regional offices.
    The RO-to-time zone pairings should make sense geographically.

  • Any RSpec test failures that stem from these updates are resolved.

  • Code compiles correctly

Testing Plan

  1. Go to Jira Issue/Test Plan Link

Best practices

Code Documentation Updates

  • Add or update code comments at the top of the class, module, and/or component.

Tests

Test Coverage

Did you include any test coverage for your code? Check below:

  • RSpec
  • Jest
  • Other

Code Climate

Your code does not add any new code climate offenses? If so why?

  • No new code climate issues added

@JCohDev JCohDev changed the base branch from feature/APPEALS-32376 to master February 13, 2024 23:48
Copy link

codeclimate bot commented Feb 14, 2024

Code Climate has analyzed commit 29a7da4 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@JCohDev JCohDev changed the base branch from master to feature/APPEALS-32376 February 14, 2024 17:01
@JCohDev JCohDev changed the base branch from feature/APPEALS-32376 to master February 14, 2024 17:16
@JCohDev JCohDev marked this pull request as ready for review February 14, 2024 17:17
@ThorntonMatthew ThorntonMatthew changed the base branch from master to feature/APPEALS-32376 February 14, 2024 21:18
@@ -90,7 +90,7 @@ class LegacyHearing < CaseflowRecord
allow_nil: true
delegate :external_id, to: :appeal, prefix: true

delegate :timezone, :name, to: :regional_office, prefix: true
delegate :timezone, :name, to: :regional_office, prefix: true, allow_nil: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this still required?

@ThorntonMatthew ThorntonMatthew changed the title Merge pull request #20558 from department-of-veterans-affairs/jcohen/APPEALS-37561 /jcohen/APPEALS-37561: Adjust Seed Data and Factories to Include Timezones Feb 15, 2024
@ThorntonMatthew ThorntonMatthew changed the title /jcohen/APPEALS-37561: Adjust Seed Data and Factories to Include Timezones jcohen/APPEALS-37561: Adjust Seed Data and Factories to Include Timezones Feb 15, 2024
@ThorntonMatthew ThorntonMatthew merged commit 9697263 into feature/APPEALS-32376 Feb 15, 2024
2 checks passed
@ThorntonMatthew ThorntonMatthew deleted the jcohen/APPEALS-37095 branch February 15, 2024 16:25
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.

3 participants