Skip to content

How do I create specific demo data for Queue?

Matt Wagner edited this page Apr 28, 2021 · 6 revisions

Oftentimes, developers, product, and training alike will find themselves needing something specific to test—maybe a case to dispatch, or an AOD appeal? Fear not: this document seeks to answer those questions!

Some features you may want to use:

An appeal which has been dispatched

In the UI

  1. Log in as a BVA Dispatch user like BVAGWHITE
  2. Go to their queue and click on the "Completed" tab. CaseflowDemo.com link
  3. Pick a case and copy the link

In the Rails console

original_appeal = FactoryBot.create(:appeal, :dispatched,
  associated_judge: JudgeTeam.first.judge,
  associated_attorney: JudgeTeam.first.attorneys.first);
FactoryBot.create_list(:request_issue, 2, :rating, :with_rating_decision_issue,
  decision_review: original_appeal,
  veteran_participant_id: Veteran.first.participant_id
);
# Then go to /queue/appeals/THIS_UUID_BELOW
original_appeal.uuid
Clone this wiki locally