Skip to content

Add seeding for hearing types#1559

Merged
compwron merged 2 commits into
rubyforgood:mainfrom
rpolley:Add-seeding-for-hearing-types
Jan 7, 2021
Merged

Add seeding for hearing types#1559
compwron merged 2 commits into
rubyforgood:mainfrom
rpolley:Add-seeding-for-hearing-types

Conversation

@rpolley

@rpolley rpolley commented Jan 6, 2021

Copy link
Copy Markdown
Contributor

What github issue is this PR for, if any?

Resolves #1048

What changed, and why?

rails db:seed now creates hearing types for each organization. For each organization it will create the following active hearing types (per this discussion)

  • emergency hearing
  • trial on the merits
  • scheduling conference
  • uncontested hearing
  • pendente lite hearing
  • pretrial conference

Along with an inactive hearing type titled "deprecated hearing".

How will this affect user permissions?

  • Volunteer permissions:
  • Supervisor permissions:
  • Admin permissions:

How is this tested? (please write tests!) 💖💪

Ran rails db:seed and checked that seeds were created. Added HearingType to list of models tests expect to be seeded.

@compwron compwron left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Very nice!
ruby lint is failing - remember to run standardrb --fix
(erb lint is... currently broken :/ )

@compwron compwron merged commit 742a168 into rubyforgood:main Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ruby Touches Ruby code 🧪 Tests Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add seeding for hearing types

2 participants