-
Notifications
You must be signed in to change notification settings - Fork 232
Fixed Issue #1782, which was changing how the search bar looks in Autolab #2292
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
base: master
Are you sure you want to change the base?
Changes from all commits
184e4c2
d738445
8ba0731
6ccf22b
e4e8175
67d83ed
c8fc38f
4ecf608
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,13 +10,13 @@ | |
| # | ||
| # It's strongly recommended that you check this file into your version control system. | ||
|
|
||
| ActiveRecord::Schema.define(version: 2024_04_06_174050) do | ||
| ActiveRecord::Schema.define(version: 2025_04_26_203028) do | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify schema version timestamp The schema version is set to 🏁 Script executed: #!/bin/bash
# Check other migration files to see if this timestamp pattern is consistent
echo "Checking migration file timestamps:"
fd -e rb -p "db/migrate/.*\.rb" | sort | tail -5Length of output: 425 🏁 Script executed: #!/bin/bash
# Search for migrations with 2025 prefix
echo "Migrations with 2025 prefix:"
fd -e rb db/migrate | grep 'db/migrate/2025_' || echo 'None found'Length of output: 489 🏁 Script executed: #!/bin/bash
echo "Searching for migration file matching schema version 2025_04_26_203028..."
find db/migrate -maxdepth 1 -type f -name "2025_04_26_203028*.rb" || echo "No matching migration file found."Length of output: 224 Migration Timestamp Mismatch in db/schema.rb The schema version in • File: ActiveRecord::Schema.define(version: 2025_04_26_203028) do• Verification: Please ensure one of the following:
🤖 Prompt for AI Agents (early access) |
||
|
|
||
| create_table "active_storage_attachments", force: :cascade do |t| | ||
| t.string "name", null: false | ||
| t.string "record_type", null: false | ||
| t.bigint "record_id", null: false | ||
| t.bigint "blob_id", null: false | ||
| t.integer "record_id", null: false | ||
| t.integer "blob_id", null: false | ||
|
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConsider implications of changing from Several columns in Active Storage tables have been changed from
This reduces the maximum value that can be stored (from ~9.2 quintillion to ~2.1 billion). Ensure this won't cause issues with large files or in systems with many records. Also applies to: 30-30, 38-38 🏁 Script executed: #!/bin/bash
# Check if there are any migrations that explicitly change these column types
echo "Checking for migrations that modify Active Storage column types:"
rg -A 3 -B 3 "change_column.*active_storage" --glob="db/migrate/*.rb"Length of output: 992 Let’s verify the original Active Storage migrations to see what column types were defined there: 🏁 Script executed: #!/bin/bash
echo "Inspecting the Active Storage attachments migration:"
rg -A5 -B5 "create_table :active_storage_attachments" --glob="db/migrate/*.rb"
echo -e "\nInspecting the Active Storage blobs migration:"
rg -A5 -B5 "create_table :active_storage_blobs" --glob="db/migrate/*.rb"
echo -e "\nInspecting the Active Storage variant records migration:"
rg -A5 -B5 "create_table :active_storage_variant_records" --glob="db/migrate/*.rb"Length of output: 4277 Action Required: Address Active Storage column type mismatch The schema dump now shows these columns as Locations needing attention:
🤖 Prompt for AI Agents (early access) |
||
| t.datetime "created_at", null: false | ||
| t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" | ||
| t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true | ||
|
|
@@ -27,15 +27,15 @@ | |
| t.string "filename", null: false | ||
| t.string "content_type" | ||
| t.text "metadata" | ||
| t.bigint "byte_size", null: false | ||
| t.integer "byte_size", null: false | ||
| t.string "checksum", null: false | ||
| t.datetime "created_at", null: false | ||
| t.string "service_name", null: false | ||
| t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true | ||
| end | ||
|
|
||
| create_table "active_storage_variant_records", force: :cascade do |t| | ||
| t.bigint "blob_id", null: false | ||
| t.integer "blob_id", null: false | ||
| t.string "variation_digest", null: false | ||
| t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true | ||
| end | ||
|
|
@@ -54,6 +54,8 @@ | |
| t.string "coordinate" | ||
| t.boolean "shared_comment", default: false | ||
| t.boolean "global_comment", default: false | ||
| t.integer "rubric_item_id" | ||
| t.index ["rubric_item_id"], name: "index_annotations_on_rubric_item_id" | ||
| end | ||
|
|
||
| create_table "announcements", force: :cascade do |t| | ||
|
|
@@ -130,7 +132,7 @@ | |
| t.integer "course_id" | ||
| t.integer "assessment_id" | ||
| t.string "category_name", default: "General" | ||
| t.datetime "release_at", default: -> { "CURRENT_TIMESTAMP" } | ||
| t.datetime "release_at" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify removal of default value for release_at The 🏁 Script executed: #!/bin/bash
# Check the migration that modified this column
echo "Checking for migrations that modify the release_at column:"
rg -A 3 -B 3 "release_at" --glob="db/migrate/*.rb"Length of output: 1455 Action Required: Confirm and Formalize Removal of The schema now shows: but the original migration default: -> { 'CURRENT_TIMESTAMP' }I did not find any subsequent migration using
🤖 Prompt for AI Agents (early access) |
||
| t.string "slug" | ||
| t.index ["assessment_id"], name: "index_attachments_on_assessment_id" | ||
| t.index ["slug"], name: "index_attachments_on_slug", unique: true | ||
|
|
@@ -194,14 +196,14 @@ | |
| t.boolean "infinite", default: false, null: false | ||
| end | ||
|
|
||
| create_table "friendly_id_slugs", charset: "utf8mb3", force: :cascade do |t| | ||
| create_table "friendly_id_slugs", force: :cascade do |t| | ||
| t.string "slug", null: false | ||
| t.integer "sluggable_id", null: false | ||
| t.string "sluggable_type", limit: 50 | ||
| t.string "scope" | ||
| t.datetime "created_at" | ||
| t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true, length: { slug: 70, scope: 70 } | ||
| t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type", length: { slug: 140 } | ||
| t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true | ||
| t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type" | ||
| t.index ["sluggable_type", "sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_type_and_sluggable_id" | ||
| end | ||
|
|
||
|
|
@@ -225,8 +227,8 @@ | |
| t.string "context_id" | ||
| t.integer "course_id" | ||
| t.datetime "last_synced" | ||
| t.datetime "created_at", null: false | ||
| t.datetime "updated_at", null: false | ||
| t.datetime "created_at", precision: 6, null: false | ||
| t.datetime "updated_at", precision: 6, null: false | ||
| t.string "membership_url" | ||
| t.string "platform" | ||
| t.boolean "auto_sync", default: false | ||
|
|
@@ -319,14 +321,36 @@ | |
| t.integer "course_id" | ||
| end | ||
|
|
||
| create_table "rubric_item_assignments", force: :cascade do |t| | ||
| t.integer "rubric_item_id", null: false | ||
| t.integer "submission_id", null: false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be from the rubric PR, these should be removed |
||
| t.boolean "assigned", default: false | ||
| t.datetime "created_at", precision: 6, null: false | ||
| t.datetime "updated_at", precision: 6, null: false | ||
| t.index ["rubric_item_id", "submission_id"], name: "index_ria_on_rubric_item_id_and_submission_id", unique: true | ||
| t.index ["rubric_item_id"], name: "index_rubric_item_assignments_on_rubric_item_id" | ||
| t.index ["submission_id"], name: "index_rubric_item_assignments_on_submission_id" | ||
| end | ||
|
|
||
| create_table "rubric_items", force: :cascade do |t| | ||
| t.integer "problem_id", null: false | ||
| t.string "description", null: false | ||
| t.float "points", null: false | ||
| t.integer "order", null: false | ||
| t.datetime "created_at", precision: 6, null: false | ||
| t.datetime "updated_at", precision: 6, null: false | ||
| t.index ["problem_id", "order"], name: "index_rubric_items_on_problem_id_and_order", unique: true | ||
| t.index ["problem_id"], name: "index_rubric_items_on_problem_id" | ||
| end | ||
|
|
||
| create_table "scheduler", force: :cascade do |t| | ||
| t.string "action" | ||
| t.datetime "next" | ||
| t.integer "interval" | ||
| t.integer "course_id" | ||
| t.datetime "created_at" | ||
| t.datetime "updated_at" | ||
| t.datetime "until", default: -> { "CURRENT_TIMESTAMP" } | ||
| t.datetime "until" | ||
| t.boolean "disabled", default: false | ||
| end | ||
|
|
||
|
|
@@ -338,15 +362,15 @@ | |
|
|
||
| create_table "scoreboards", force: :cascade do |t| | ||
| t.integer "assessment_id" | ||
| t.text "banner" | ||
| t.text "colspec" | ||
| t.text "banner", limit: 65535 | ||
| t.text "colspec", limit: 65535 | ||
|
Comment on lines
+365
to
+366
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify text field limit changes Several text fields have had their limits specified or modified:
Ensure that existing data fits within these limits and that the application logic accounts for these constraints. Also applies to: 373-373, 399-399 🏁 Script executed: #!/bin/bash
# Check the migrations that modified these text field limits
echo "Checking for migrations that modify text field limits:"
rg -A 3 -B 3 "limit:" --glob="db/migrate/*.rb" | grep -E "banner|colspec|feedback|dave"Length of output: 1338 Ensure text field limits are enforced and existing data fits Although the migrations setting these limits are already in place (see 20150127210917, 20150406221712, 20150119232050), you should: • Run queries against your production data to verify no rows exceed the new limits (e.g. • Add or update ActiveRecord validations to mirror the DB constraints: • Augment or add model-level tests to assert these validations fire when limits are exceeded. This will prevent runtime errors and data truncation when new records are created or updated. 🤖 Prompt for AI Agents (early access) |
||
| t.boolean "include_instructors", default: false | ||
| end | ||
|
|
||
| create_table "scores", force: :cascade do |t| | ||
| t.integer "submission_id" | ||
| t.float "score" | ||
| t.text "feedback", size: :medium | ||
| t.text "feedback", limit: 16777215 | ||
| t.integer "problem_id" | ||
| t.datetime "created_at" | ||
| t.datetime "updated_at" | ||
|
|
@@ -372,7 +396,7 @@ | |
| t.string "submitter_ip", limit: 40 | ||
| t.integer "tweak_id" | ||
| t.boolean "ignored", default: false, null: false | ||
| t.string "dave" | ||
| t.string "dave", limit: 255 | ||
| t.text "embedded_quiz_form_answer" | ||
| t.integer "submitted_by_app_id" | ||
| t.string "group_key", default: "" | ||
|
|
@@ -437,4 +461,12 @@ | |
|
|
||
| add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" | ||
| add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" | ||
| add_foreign_key "annotations", "rubric_items" | ||
| add_foreign_key "github_integrations", "users" | ||
| add_foreign_key "oauth_access_grants", "oauth_applications", column: "application_id" | ||
| add_foreign_key "oauth_access_tokens", "oauth_applications", column: "application_id" | ||
| add_foreign_key "oauth_device_flow_requests", "oauth_applications", column: "application_id" | ||
| add_foreign_key "rubric_item_assignments", "rubric_items" | ||
| add_foreign_key "rubric_item_assignments", "submissions" | ||
| add_foreign_key "rubric_items", "problems" | ||
| end | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?