Skip to content

Instantly share code, notes, and snippets.

@seejee
Last active May 24, 2016 20:26
Show Gist options
  • Save seejee/32cb330c0675566bff199b36e51edc59 to your computer and use it in GitHub Desktop.
Save seejee/32cb330c0675566bff199b36e51edc59 to your computer and use it in GitHub Desktop.
[#<SyncBatchEntry:0x007fec3af73888
id: 1,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::SchoolActions::Create",
"attributes"=>
{"name"=>"Jeffs Clever School",
"active"=>true,
"clever_id"=>"517ee6377544cb7513000002",
"time_zone"=>"Central Time (US & Canada)",
"customer_id"=>1,
"district_id"=>1},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000002"}],
"type"=>"School",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af73748
id: 2,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::SchoolActions::Create",
"attributes"=>
{"name"=>"Jeffs Clever School Number 2",
"active"=>true,
"clever_id"=>"51a627ac208ed2135c017cbd",
"time_zone"=>"Central Time (US & Canada)",
"customer_id"=>1,
"district_id"=>1},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51a627ac208ed2135c017cbd"}],
"type"=>"School",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af73608
id: 3,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::StudentActions::Create",
"attributes"=>
{"password"=>"jgrunts",
"username"=>"jgrunts",
"clever_id"=>"51800157996bcb332a003c20",
"last_name"=>"Grunts",
"first_name"=>"John",
"grade_level_id"=>4,
"second_language"=>"es",
"cleartext_password"=>"jgrunts",
"student_information_number"=>"124567354",
"alt_student_information_number"=>"712345"},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51800157996bcb332a003c20"}],
"type"=>"Student",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af734c8
id: 4,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::StudentActions::ReassignSchool",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51800157996bcb332a003c20"}],
"type"=>"Student",
"_class"=>"TTM::Sync::EntityReference"},
"school_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000002"}],
"type"=>"School",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af73388
id: 5,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::Errors::ValidationError",
"messages"=>{"password"=>["is too short (minimum is 4 characters)"]},
"attributes"=>
{"password"=>"ts",
"username"=>"tstanly",
"clever_id"=>"51a62ca8632cc0771a20c5b3",
"last_name"=>"Stanly",
"first_name"=>"Tracy",
"grade_level_id"=>4,
"second_language"=>"es",
"cleartext_password"=>"ts",
"student_information_number"=>"134567355",
"alt_student_information_number"=>"712345"},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51a62ca8632cc0771a20c5b3"}],
"type"=>"Student",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af73248
id: 6,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::StudentActions::Create",
"attributes"=>
{"password"=>"!!!!",
"username"=>"bunderhill",
"clever_id"=>"51a62ca8632cc0771a20c5b4",
"last_name"=>"Underhill",
"first_name"=>"Bryan",
"grade_level_id"=>4,
"second_language"=>"es",
"cleartext_password"=>"!!!!",
"student_information_number"=>"144567356",
"alt_student_information_number"=>"712345"},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51a62ca8632cc0771a20c5b4"}],
"type"=>"Student",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af73108
id: 7,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::StudentActions::ReassignSchool",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51a62ca8632cc0771a20c5b4"}],
"type"=>"Student",
"_class"=>"TTM::Sync::EntityReference"},
"school_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51a627ac208ed2135c017cbd"}],
"type"=>"School",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af72fc8
id: 16,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::TeacherActions::Create",
"attributes"=>
{"role"=>"teacher",
"email"=>"braeden_glover@example.net",
"password"=>"zieWaex5coe",
"clever_id"=>"517ee6377544cb7513000005",
"last_name"=>"Glover",
"first_name"=>"Braeden"},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000005"}],
"type"=>"User",
"_class"=>"TTM::Sync::EntityReference"},
"school_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000002"}],
"type"=>"School",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af72e88
id: 18,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::ClassroomActions::Create",
"attributes"=>
{"name"=>"Jeffs First Class",
"clever_id"=>"5187d41a4617f9dd580004f0",
"school_id"=>1,
"allow_ttm_managed_enrollments"=>true},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"5187d41a4617f9dd580004f0"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af72d48
id: 19,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::TeacherActions::AddToClassrooms",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000005"}],
"type"=>"User",
"_class"=>"TTM::Sync::EntityReference"},
"classroom_refs"=>
[{"ids"=>[{"field"=>"clever_id", "value"=>"5187d41a4617f9dd580004f0"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"},
{"ids"=>[{"field"=>"clever_id", "value"=>"558b0a3d16cb1b0f004a3915"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"}]}>,
#<SyncBatchEntry:0x007fec3af72c08
id: 20,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::Errors::WontAssignClassrooms",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000005"}],
"type"=>"User",
"_class"=>"TTM::Sync::EntityReference"},
"school_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000002"}],
"type"=>"School",
"_class"=>"TTM::Sync::EntityReference"},
"disallowed_classroom_ids"=>["51a62caf632cc0771a20c5c0"]}>,
#<SyncBatchEntry:0x007fec3af72ac8
id: 21,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::StudentActions::AddToClassrooms",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51800157996bcb332a003c20"}],
"type"=>"Student",
"_class"=>"TTM::Sync::EntityReference"},
"classroom_refs"=>
[{"ids"=>[{"field"=>"clever_id", "value"=>"5187d41a4617f9dd580004f0"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"}]}>,
#<SyncBatchEntry:0x007fec3af72988
id: 28,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::ClassroomActions::Create",
"attributes"=>
{"name"=>"Class in another school",
"clever_id"=>"51a62caf632cc0771a20c5c0",
"school_id"=>2,
"allow_ttm_managed_enrollments"=>true},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51a62caf632cc0771a20c5c0"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af72848
id: 29,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::TeacherActions::AddToClassrooms",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000005"}],
"type"=>"User",
"_class"=>"TTM::Sync::EntityReference"},
"classroom_refs"=>
[{"ids"=>[{"field"=>"clever_id", "value"=>"5187d41a4617f9dd580004f0"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"},
{"ids"=>[{"field"=>"clever_id", "value"=>"558b0a3d16cb1b0f004a3915"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"}]}>,
#<SyncBatchEntry:0x007fec3af72708
id: 30,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::Errors::WontAssignClassrooms",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000005"}],
"type"=>"User",
"_class"=>"TTM::Sync::EntityReference"},
"school_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000002"}],
"type"=>"School",
"_class"=>"TTM::Sync::EntityReference"},
"disallowed_classroom_ids"=>["51a62caf632cc0771a20c5c0"]}>,
#<SyncBatchEntry:0x007fec3af725c8
id: 31,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:12 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::StudentActions::AddToClassrooms",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"51a62ca8632cc0771a20c5b4"}],
"type"=>"Student",
"_class"=>"TTM::Sync::EntityReference"},
"classroom_refs"=>
[{"ids"=>[{"field"=>"clever_id", "value"=>"51a62caf632cc0771a20c5c0"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"}]}>,
#<SyncBatchEntry:0x007fec3af72488
id: 38,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::ClassroomActions::Create",
"attributes"=>
{"name"=>"Jeffs Second Class",
"clever_id"=>"558b0a3d16cb1b0f004a3915",
"school_id"=>1,
"allow_ttm_managed_enrollments"=>true},
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"558b0a3d16cb1b0f004a3915"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"}}>,
#<SyncBatchEntry:0x007fec3af72348
id: 39,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::TeacherActions::AddToClassrooms",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000005"}],
"type"=>"User",
"_class"=>"TTM::Sync::EntityReference"},
"classroom_refs"=>
[{"ids"=>[{"field"=>"clever_id", "value"=>"5187d41a4617f9dd580004f0"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"},
{"ids"=>[{"field"=>"clever_id", "value"=>"558b0a3d16cb1b0f004a3915"}],
"type"=>"Classroom",
"_class"=>"TTM::Sync::EntityReference"}]}>,
#<SyncBatchEntry:0x007fec3af72208
id: 40,
sync_batch_id: 1,
entry_type: "action",
associated_entities: nil,
created_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
updated_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
started_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
finished_at: Tue, 24 May 2016 20:18:13 UTC +00:00,
entry:
{"_class"=>"TTM::Sync::Errors::WontAssignClassrooms",
"entity_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000005"}],
"type"=>"User",
"_class"=>"TTM::Sync::EntityReference"},
"school_ref"=>
{"ids"=>[{"field"=>"clever_id", "value"=>"517ee6377544cb7513000002"}],
"type"=>"School",
"_class"=>"TTM::Sync::EntityReference"},
"disallowed_classroom_ids"=>["51a62caf632cc0771a20c5c0"]}>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment