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

Set up seed data #105

Open
10 of 14 tasks
raehart opened this issue Jan 15, 2018 · 2 comments
Open
10 of 14 tasks

Set up seed data #105

raehart opened this issue Jan 15, 2018 · 2 comments
Assignees

Comments

@raehart
Copy link
Collaborator

raehart commented Jan 15, 2018

The Following Models have existing, static seed data and should be populated:

Freegeek App
  • Program
  • Roster
Schedules App
  • VolunteerTaskType
  • AttendanceType
  • CallStatusType
  • Weekday
  • CommunityServiceType
  • VolunteerDefaultEvent (possibly, 200+ instances)
  • VolunteerDefaultShift (possibly, 200+ instances)

The Following Models should have random data created for testing based on existing data:

Freegeek App
  • Contact
Schedules App
  • VolunteerEvent
  • VolunteerShift
  • VolunteerTask
  • Assignment

See Free Geek Google Drive for Examples

@Lawlheart
Copy link
Contributor

So, we need to convert the csvs to this format:

  {
    "pk": 21,
    "model": "scheduling.VolunteerTaskType",
    "fields": {
      "name": "quality_control",
      "description": "quality control",
      "program_id": 2,
      "hours_multiplier": 1,
      "instantiable": false,
      "lock_version": 3,
      "effective_on": null,
      "ineffective_on": "2013-01-01 00:00:00",
      "adoption_credit": null
    }
  },

@Lawlheart
Copy link
Contributor

We want a full copy of both of the default sets and some seed data based on the other four

jasonleonhard added a commit to jasonleonhard/free-geek that referenced this issue Oct 21, 2018
Lawlheart pushed a commit that referenced this issue Oct 21, 2018
#105 create data shaping fixture util, add fixtures for volunteer default events and shifts
Lawlheart pushed a commit that referenced this issue Oct 21, 2018
raehart pushed a commit that referenced this issue Oct 21, 2018
#105 fix fixtures, add migrations for volunteer default events, shift…
jasonleonhard added a commit to jasonleonhard/free-geek that referenced this issue Oct 21, 2018
Lawlheart pushed a commit that referenced this issue Oct 21, 2018
#105 make convert_json_to_fixture.js general, now accepts cl args
@raehart raehart self-assigned this Oct 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants