canvas_sync 0.17.38 → 0.17.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_sync/jobs/begin_sync_chain_job.rb +3 -3
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/processors/provisioning_report_processor_spec.rb +22 -3
- data/spec/dummy/db/migrate/{20190702203620_create_users.rb → 20220926221926_create_users.rb} +0 -1
- data/spec/dummy/db/schema.rb +1 -2
- data/spec/dummy/log/development.log +193 -0
- data/spec/dummy/log/test.log +24507 -0
- data/spec/factories/user_factory.rb +0 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ef78b16e293747a076116fc6107034f969beef1f60163e356bcaabf623352fd
|
4
|
+
data.tar.gz: f77eba73d730eae8270ab64eb99fd8f2785c5a182cafc3152e67fae464a9edb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 534cfa9023985dcdd388fbd5b6c6c1867137b99ec9c76e2f190a8c5111e977c971aaecad2387feca9418fa36c862bae91488b7bd82023ea5881cc8eff44434a3
|
7
|
+
data.tar.gz: 4acc5e317dba064f022125d8aa46eac1ae585c4ef640f1980ed97bfe5fae2f19eee8496684eaea287fa9a3857fae46e240e2daef10f2a7810c1de1e08919cd12
|
@@ -57,13 +57,13 @@ module CanvasSync
|
|
57
57
|
day = m[1]
|
58
58
|
skip = m[2] || "1"
|
59
59
|
DateTime.now.send(:"#{day}?") && last_full_sync.end_of_day <= (skip.to_i.weeks.ago.end_of_day)
|
60
|
-
when
|
60
|
+
when %r{^(\d+)\%$}
|
61
61
|
m = Regexp.last_match
|
62
62
|
rand(100) < m[1].to_i
|
63
|
-
when
|
63
|
+
when %r{^(\d+) ?days$}
|
64
64
|
m = Regexp.last_match
|
65
65
|
last_full_sync.end_of_day <= m[1].to_i.days.ago.end_of_day
|
66
|
-
when
|
66
|
+
when %r{^(\d+)$} # N.days is converted to a string of seconds
|
67
67
|
m = Regexp.last_match
|
68
68
|
last_full_sync.end_of_day <= m[1].to_i.seconds.ago.end_of_day
|
69
69
|
else
|
data/lib/canvas_sync/version.rb
CHANGED
@@ -10,9 +10,28 @@ RSpec.describe CanvasSync::Processors::ProvisioningReportProcessor do
|
|
10
10
|
}.to change { User.count }.by(2)
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
context "with User#sis_id column" do
|
14
|
+
before do
|
15
|
+
self.use_transactional_tests = false
|
16
|
+
ActiveRecord::Migration.add_column :users, :sis_id, :string
|
17
|
+
User.reset_column_information
|
18
|
+
end
|
19
|
+
|
20
|
+
after do
|
21
|
+
ActiveRecord::Migration.remove_column :users, :sis_id
|
22
|
+
User.reset_column_information
|
23
|
+
self.use_transactional_tests = true
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'uses keeps support with old installations' do
|
27
|
+
subject.process('spec/support/fixtures/reports/users.csv', { models: ['users'] }, 1)
|
28
|
+
expect(User.find_by(canvas_id: 2).sis_id).to eq 'sis_id_2'
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'uses a User row with a sis_id' do
|
32
|
+
subject.process('spec/support/fixtures/reports/users.csv', { models: ['users'] }, 1)
|
33
|
+
expect(User.find_by(canvas_id: 2).sis_id).to eq 'sis_id_2'
|
34
|
+
end
|
16
35
|
end
|
17
36
|
|
18
37
|
it 'processes courses' do
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2022_09_26_221926) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
@@ -356,7 +356,6 @@ ActiveRecord::Schema.define(version: 2022_07_12_210559) do
|
|
356
356
|
|
357
357
|
create_table "users", force: :cascade do |t|
|
358
358
|
t.bigint "canvas_id", null: false
|
359
|
-
t.string "sis_id"
|
360
359
|
t.string "email"
|
361
360
|
t.string "first_name"
|
362
361
|
t.string "last_name"
|
@@ -2067,3 +2067,196 @@ Migrating to CreateGradingPeriodGroups (20211001184920)
|
|
2067
2067
|
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2068
2068
|
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
2069
2069
|
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2070
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2071
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2072
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2073
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2074
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2075
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2076
|
+
[1m[35m (36.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
2077
|
+
[1m[35m (35.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
2078
|
+
[1m[35m (162.3ms)[0m [1m[35mCREATE DATABASE "canvas_sync_development" ENCODING = 'unicode'[0m
|
2079
|
+
[1m[35m (86.0ms)[0m [1m[35mCREATE DATABASE "canvas_sync_test" ENCODING = 'unicode'[0m
|
2080
|
+
[1m[35m (28.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2081
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2082
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
2083
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2084
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
2085
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2086
|
+
[1m[35m (8.8ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" serial NOT NULL PRIMARY KEY, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp, "updated_at" timestamp)[0m
|
2087
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
2088
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2089
|
+
Migrating to AddJobIdToCanvasSyncJobLogs (20180725155729)
|
2090
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2091
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "canvas_sync_job_logs" ADD "job_id" character varying[0m
|
2092
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE INDEX "index_canvas_sync_job_logs_on_job_id" ON "canvas_sync_job_logs" ("job_id")[0m
|
2093
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180725155729"]]
|
2094
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2095
|
+
Migrating to CreateCourses (20190702203621)
|
2096
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2097
|
+
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "course_code" character varying, "name" character varying, "workflow_state" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "start_at" timestamp, "end_at" timestamp, "grading_standard_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2098
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_id" ON "courses" ("canvas_id")[0m
|
2099
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203621"]]
|
2100
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2101
|
+
Migrating to CreateAccounts (20190702203622)
|
2102
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2103
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_parent_account_id" bigint, "sis_parent_account_id" character varying, "name" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2104
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_id" ON "accounts" ("canvas_id")[0m
|
2105
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203622"]]
|
2106
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2107
|
+
Migrating to CreateTerms (20190702203623)
|
2108
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2109
|
+
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2110
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_id" ON "terms" ("canvas_id")[0m
|
2111
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203623"]]
|
2112
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2113
|
+
Migrating to CreateEnrollments (20190702203624)
|
2114
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2115
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "canvas_role_id" integer, "canvas_section_id" bigint, "workflow_state" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2116
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_id" ON "enrollments" ("canvas_id")[0m
|
2117
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
2118
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
2119
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203624"]]
|
2120
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2121
|
+
Migrating to CreateSections (20190702203625)
|
2122
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2123
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "workflow_state" character varying, "start_at" timestamp, "end_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2124
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_id" ON "sections" ("canvas_id")[0m
|
2125
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
2126
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203625"]]
|
2127
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2128
|
+
Migrating to CreateAssignments (20190702203626)
|
2129
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2130
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" float, "min_score" float, "max_score" float, "mastery_score" float, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "canvas_context_id" integer, "canvas_context_type" character varying, "canvas_assignment_group_id" integer, "canvas_grading_scheme_id" integer, "canvas_grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2131
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_id" ON "assignments" ("canvas_id")[0m
|
2132
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "index_assignments_on_canvas_context_id_and_canvas_context_type" ON "assignments" ("canvas_context_id", "canvas_context_type")[0m
|
2133
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203626"]]
|
2134
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2135
|
+
Migrating to CreateSubmissions (20190702203627)
|
2136
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2137
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "due_at" timestamp, "graded_at" timestamp, "score" float, "points_possible" float, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2138
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_id" ON "submissions" ("canvas_id")[0m
|
2139
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
2140
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
2141
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
2142
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203627"]]
|
2143
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2144
|
+
Migrating to CreateAssignmentGroups (20190702203630)
|
2145
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2146
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2147
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_id" ON "assignment_groups" ("canvas_id")[0m
|
2148
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
2149
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203630"]]
|
2150
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2151
|
+
Migrating to CreateContextModules (20190702203631)
|
2152
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2153
|
+
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2154
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_id" ON "context_modules" ("canvas_id")[0m
|
2155
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
2156
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203631"]]
|
2157
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2158
|
+
Migrating to CreateContextModuleItems (20190702203632)
|
2159
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2160
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_id" bigint, "canvas_context_module_id" bigint, "position" integer, "canvas_content_id" bigint, "canvas_content_type" character varying, "canvas_assignment_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2161
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_module_items_on_canvas_id" ON "context_module_items" ("canvas_id")[0m
|
2162
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
2163
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203632"]]
|
2164
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2165
|
+
Migrating to AddForkCountToCanvasSyncJobLogs (20190916154829)
|
2166
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2167
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "canvas_sync_job_logs" ADD "fork_count" integer[0m
|
2168
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190916154829"]]
|
2169
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2170
|
+
Migrating to CreateRoles (20190927204545)
|
2171
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2172
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_id" integer NOT NULL, "label" character varying, "base_role_type" character varying, "canvas_account_id" integer, "workflow_state" character varying, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2173
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_id" ON "roles" ("canvas_id")[0m
|
2174
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE INDEX "index_roles_on_canvas_account_id" ON "roles" ("canvas_account_id")[0m
|
2175
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190927204545"]]
|
2176
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2177
|
+
Migrating to CreateAdmins (20190927204546)
|
2178
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2179
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "role_name" character varying, "canvas_account_id" bigint, "canvas_role_id" bigint, "canvas_user_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2180
|
+
[1m[35m (5.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_id" ON "admins" ("canvas_id")[0m
|
2181
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_role_id" ON "admins" ("canvas_role_id")[0m
|
2182
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_user_id" ON "admins" ("canvas_user_id")[0m
|
2183
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_account_id" ON "admins" ("canvas_account_id")[0m
|
2184
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190927204546"]]
|
2185
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2186
|
+
Migrating to CreateGroups (20200415171620)
|
2187
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2188
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE "groups" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_group_category_id" bigint, "group_category_sis_id" character varying, "canvas_account_id" bigint, "canvas_course_id" bigint, "name" character varying, "workflow_state" character varying, "context_id" bigint, "context_type" character varying, "max_membership" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2189
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_groups_on_canvas_id" ON "groups" ("canvas_id")[0m
|
2190
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200415171620"]]
|
2191
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2192
|
+
Migrating to CreateGroupMemberships (20200416214248)
|
2193
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2194
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE "group_memberships" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_user_id" bigint NOT NULL, "canvas_group_id" bigint NOT NULL, "group_sis_id" character varying, "user_sis_id" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2195
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_group_memberships_on_canvas_id" ON "group_memberships" ("canvas_id")[0m
|
2196
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200416214248"]]
|
2197
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2198
|
+
Migrating to CreatePseudonyms (20201016181346)
|
2199
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2200
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE TABLE "pseudonyms" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_user_id" bigint, "sis_id" character varying, "unique_id" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2201
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pseudonyms_on_canvas_id" ON "pseudonyms" ("canvas_id")[0m
|
2202
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_canvas_user_id" ON "pseudonyms" ("canvas_user_id")[0m
|
2203
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201016181346"]]
|
2204
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2205
|
+
Migrating to CreateCanvasSyncSyncBatches (20201018210836)
|
2206
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2207
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE "canvas_sync_sync_batches" ("id" serial NOT NULL PRIMARY KEY, "started_at" timestamp, "completed_at" timestamp, "status" character varying, "created_at" timestamp, "updated_at" timestamp)[0m
|
2208
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201018210836"]]
|
2209
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2210
|
+
Migrating to AddFullSyncToCanvasSyncSyncBatch (20201030210836)
|
2211
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2212
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "canvas_sync_sync_batches" ADD "full_sync" boolean DEFAULT FALSE[0m
|
2213
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "canvas_sync_sync_batches" ADD "batch_genre" character varying[0m
|
2214
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "canvas_sync_sync_batches" ADD "batch_bid" character varying[0m
|
2215
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201030210836"]]
|
2216
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
2217
|
+
Migrating to CreateUserObservers (20210907233329)
|
2218
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2219
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE "user_observers" ("id" bigserial primary key, "observing_user_id" bigint, "observed_user_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2220
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_observers_on_observed_user_id_and_observing_user_id" ON "user_observers" ("observed_user_id", "observing_user_id")[0m
|
2221
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "index_user_observers_on_observing_user_id" ON "user_observers" ("observing_user_id")[0m
|
2222
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_user_observers_on_observed_user_id" ON "user_observers" ("observed_user_id")[0m
|
2223
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20210907233329"]]
|
2224
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2225
|
+
Migrating to CreateGradingPeriods (20210907233330)
|
2226
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2227
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE TABLE "grading_periods" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "title" character varying, "weight" float, "start_date" timestamp, "end_date" timestamp, "close_date" timestamp, "canvas_grading_period_group_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2228
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_grading_periods_on_canvas_id" ON "grading_periods" ("canvas_id")[0m
|
2229
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE INDEX "index_grading_periods_on_canvas_grading_period_group_id" ON "grading_periods" ("canvas_grading_period_group_id")[0m
|
2230
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20210907233330"]]
|
2231
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2232
|
+
Migrating to CreateGradingPeriodGroups (20211001184920)
|
2233
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2234
|
+
[1m[35m (10.0ms)[0m [1m[35mCREATE TABLE "grading_period_groups" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "title" character varying, "weighted" boolean, "display_totals_for_all_grading_periods" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2235
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_grading_period_groups_on_canvas_id" ON "grading_period_groups" ("canvas_id")[0m
|
2236
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20211001184920"]]
|
2237
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2238
|
+
Migrating to CreateContentMigrations (20220308072643)
|
2239
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2240
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE TABLE "content_migrations" ("id" bigserial primary key, "canvas_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "workflow_state" character varying, "migration_settings" text, "started_at" timestamp, "finished_at" timestamp, "progress" float, "canvas_source_course_id" bigint, "migration_type" character varying, "canvas_child_subscription_id" bigint, "canvas_root_account_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2241
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_content_migrations_on_canvas_id" ON "content_migrations" ("canvas_id")[0m
|
2242
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20220308072643"]]
|
2243
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2244
|
+
Migrating to CreateLearningOutcomes (20220712210559)
|
2245
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2246
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE TABLE "learning_outcomes" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_context_id" integer, "canvas_context_type" character varying, "name" character varying, "friendly_name" character varying, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "migration_id" character varying, "vendor_guid" character varying, "low_grade" character varying, "high_grade" character varying, "calculation_method" character varying, "calculation_int" character varying, "outcome_import_id" integer, "root_account_ids" integer[] DEFAULT '{}', "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2247
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_learning_outcomes_on_canvas_id" ON "learning_outcomes" ("canvas_id")[0m
|
2248
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE INDEX "index_learning_outcomes_on_context" ON "learning_outcomes" ("canvas_context_id", "canvas_context_type")[0m
|
2249
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20220712210559"]]
|
2250
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2251
|
+
Migrating to CreateUsers (20220926221926)
|
2252
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2253
|
+
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "email" character varying, "first_name" character varying, "last_name" character varying, "workflow_state" character varying, "login_id" character varying, "name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2254
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_id" ON "users" ("canvas_id")[0m
|
2255
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20220926221926"]]
|
2256
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2257
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2258
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2259
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-09-26 22:19:36.350215"], ["updated_at", "2022-09-26 22:19:36.350215"]]
|
2260
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2261
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
2262
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|