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

Database seeds should include Events #2268

Closed
2 tasks done
sandbergja opened this issue Oct 27, 2023 · 0 comments · Fixed by #2272
Closed
2 tasks done

Database seeds should include Events #2268

sandbergja opened this issue Oct 27, 2023 · 0 comments · Fixed by #2272
Assignees
Labels
maintenance Ticket related to maintenance that needs to be done newdev Tickets that would help a new dev to become familiar with the project

Comments

@sandbergja
Copy link
Member

sandbergja commented Oct 27, 2023

User story

As a developer making a change to the events page, I would like to have some Events already existing in the database, so that the events page isn't totally empty.

Success criteria

  • When I run rake servers:start, it adds 10 events to the database if they don't already exist
  • I can confirm that the 10 events display on the events page

Implementation notes

You can add a single event if it doesn't yet exist with something like this:

Event.find_or_create_by(id: 12, start: '2020-10-10', finish: '2020-10-11', success: true)
@sandbergja sandbergja added maintenance Ticket related to maintenance that needs to be done newdev Tickets that would help a new dev to become familiar with the project labels Oct 27, 2023
@lizgarciao lizgarciao self-assigned this Nov 26, 2023
@lizgarciao lizgarciao moved this from Todo to In Progress in DACS - student software dev board Nov 26, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in DACS - student software dev board Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Ticket related to maintenance that needs to be done newdev Tickets that would help a new dev to become familiar with the project
Development

Successfully merging a pull request may close this issue.

2 participants