Explicitly define sep program and needle exchange service with slug in seed

Open Beginner friendly
#508 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript, python
Domain
backend

Research direction

Open seed.py and find the loop that creates programs; compare the SEP slug with the value in the frontend constants directory. Move the needle exchange service to an explicit seed entry with slug 'sep-needle-exchange', and verify the other programs still seed correctly.

Written by the indexing model from the issue text.

Description

since the service slug becomes a hardcoded value, we should not rely on programmatic creation of the slug in the loop, but instead create them explicitly in seed.py

slug is 'sep-needle-exchange' (see constants directory in front end)

Probably just remove that program from the loop entirely and create it as a one-off after the other programs are created

Dominant language
JavaScript
Stars
30
Forks
14
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeForPhilly/prevention-point

All issues in CodeForPhilly/prevention-point

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.