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

Add bug report templates for Active Storage #37888

Merged

Conversation

r7kamura
Copy link
Contributor

@r7kamura r7kamura commented Dec 5, 2019

Summary

I added bug report templates for Active Storage. I hope this will make it easier to provide executable test case on Active Storage issues.

Other Information

$ ruby guides/bug_report_templates/active_storage_gem.rb
Fetching gem metadata from https://rubygems.org/.............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 13.0.1 (was 13.0.0)
Using concurrent-ruby 1.1.5
Using i18n 1.7.0
Using minitest 5.13.0 (was 5.12.2)
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using zeitwerk 2.2.2
Using activesupport 6.0.0 (was 6.1.0.alpha)
Using builder 3.2.3
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.7 (was 1.10.4)
Using rails-dom-testing 2.0.3
Using crass 1.0.5 (was 1.0.4)
Using loofah 2.4.0 (was 2.3.0)
Using rails-html-sanitizer 1.3.0
Using actionview 6.0.0 (was 6.1.0.alpha)
Using rack 2.0.7
Using rack-test 1.1.0
Using actionpack 6.0.0 (was 6.1.0.alpha)
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using websocket-driver 0.7.1
Using actioncable 6.0.0 (was 6.1.0.alpha)
Using globalid 0.4.2
Using activejob 6.0.0 (was 6.1.0.alpha)
Using activemodel 6.0.0 (was 6.1.0.alpha)
Using activerecord 6.0.0 (was 6.1.0.alpha)
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 6.0.0 (was 6.1.0.alpha)
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailbox 6.0.0 (was 6.1.0.alpha)
Using actionmailer 6.0.0 (was 6.1.0.alpha)
Using actiontext 6.0.0 (was 6.1.0.alpha)
Using bundler 1.17.3
Using method_source 0.9.2
Using thor 0.20.3
Using railties 6.0.0 (was 6.1.0.alpha)
Using sprockets 4.0.0
Using sprockets-rails 3.2.1
Using rails 6.0.0 (was 6.1.0.alpha)
Using sqlite3 1.4.1
-- create_table(:active_storage_blobs, {})
D, [2019-12-05T09:59:44.307492 #71446] DEBUG -- :    (0.8ms)  SELECT sqlite_version(*)
D, [2019-12-05T09:59:44.308370 #71446] DEBUG -- :    (0.3ms)  CREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)
D, [2019-12-05T09:59:44.308909 #71446] DEBUG -- :    (0.1ms)  CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
   -> 0.0893s
-- create_table(:active_storage_attachments, {})
D, [2019-12-05T09:59:44.309464 #71446] DEBUG -- :    (0.1ms)  CREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL, CONSTRAINT "fk_rails_c3b3935057"
FOREIGN KEY ("blob_id")
  REFERENCES "active_storage_blobs" ("id")
)
D, [2019-12-05T09:59:44.309850 #71446] DEBUG -- :    (0.1ms)  CREATE  INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
D, [2019-12-05T09:59:44.310553 #71446] DEBUG -- :    (0.2ms)  CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
   -> 0.0016s
-- create_table(:users, {:force=>true})
D, [2019-12-05T09:59:44.310846 #71446] DEBUG -- :    (0.0ms)  DROP TABLE IF EXISTS "users"
D, [2019-12-05T09:59:44.311078 #71446] DEBUG -- :    (0.1ms)  CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)
   -> 0.0005s
D, [2019-12-05T09:59:44.331185 #71446] DEBUG -- :    (0.1ms)  CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
D, [2019-12-05T09:59:44.338438 #71446] DEBUG -- :   ActiveRecord::InternalMetadata Load (0.1ms)  SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?  [["key", "environment"], ["LIMIT", 1]]
D, [2019-12-05T09:59:44.342639 #71446] DEBUG -- :    (0.0ms)  begin transaction
D, [2019-12-05T09:59:44.342919 #71446] DEBUG -- :   ActiveRecord::InternalMetadata Create (0.1ms)  INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)  [["key", "environment"], ["value", "development"], ["created_at", "2019-12-05 00:59:44.342239"], ["updated_at", "2019-12-05 00:59:44.342239"]]
D, [2019-12-05T09:59:44.343112 #71446] DEBUG -- :    (0.1ms)  commit transaction
Run options: --seed 55600

# Running:

D, [2019-12-05T09:59:44.394111 #71446] DEBUG -- :    (0.0ms)  begin transaction
D, [2019-12-05T09:59:44.394279 #71446] DEBUG -- :   User Create (0.1ms)  INSERT INTO "users" DEFAULT VALUES
D, [2019-12-05T09:59:44.412614 #71446] DEBUG -- :   ActiveStorage::Blob Load (0.1ms)  SELECT "active_storage_blobs".* FROM "active_storage_blobs" INNER JOIN "active_storage_attachments" ON "active_storage_blobs"."id" = "active_storage_attachments"."blob_id" WHERE "active_storage_attachments"."record_id" = ? AND "active_storage_attachments"."record_type" = ? AND "active_storage_attachments"."name" = ? LIMIT ?  [["record_id", 1], ["record_type", "User"], ["name", "profile"], ["LIMIT", 1]]
D, [2019-12-05T09:59:44.434987 #71446] DEBUG -- :   ActiveStorage::Attachment Load (0.1ms)  SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = ? AND "active_storage_attachments"."record_type" = ? AND "active_storage_attachments"."name" = ? LIMIT ?  [["record_id", 1], ["record_type", "User"], ["name", "profile"], ["LIMIT", 1]]
D, [2019-12-05T09:59:44.435971 #71446] DEBUG -- :   ActiveStorage::Blob Create (0.1ms)  INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["key", "hu38pl4sgabhlhhg1jnr1qm8egpo"], ["filename", "dummy.txt"], ["content_type", "text/plain"], ["metadata", "{\"identified\":true}"], ["byte_size", 5], ["checksum", "J1h240z2CdsRjz2Et5mnkA=="], ["created_at", "2019-12-05 00:59:44.435415"]]
D, [2019-12-05T09:59:44.436516 #71446] DEBUG -- :   ActiveStorage::Attachment Create (0.1ms)  INSERT INTO "active_storage_attachments" ("name", "record_type", "record_id", "blob_id", "created_at") VALUES (?, ?, ?, ?, ?)  [["name", "profile"], ["record_type", "User"], ["record_id", 1], ["blob_id", 1], ["created_at", "2019-12-05 00:59:44.436202"]]
D, [2019-12-05T09:59:44.437185 #71446] DEBUG -- :    (0.0ms)  commit transaction
I, [2019-12-05T09:59:44.439392 #71446]  INFO -- :   Disk Storage (2.0ms) Uploaded file to key: hu38pl4sgabhlhhg1jnr1qm8egpo (checksum: J1h240z2CdsRjz2Et5mnkA==)
I, [2019-12-05T09:59:44.460777 #71446]  INFO -- : Enqueued ActiveStorage::AnalyzeJob (Job ID: 90b56681-d8a7-4022-8ccd-af598a883be5) to Async(default) with arguments: #<GlobalID:0x00007ffb36f2ace0 @uri=#<URI::GID gid://test-app/ActiveStorage::Blob/1>>
I, [2019-12-05T09:59:44.461413 #71446]  INFO -- :   Disk Storage (0.1ms) Downloaded file from key: hu38pl4sgabhlhhg1jnr1qm8egpo
.

Finished in 0.070695s, 14.1453 runs/s, 14.1453 assertions/s.
1 runs, 1 assertions, 0 failures, 0 errors, 0 skips

@rails-bot rails-bot bot added the docs label Dec 5, 2019
@r7kamura r7kamura force-pushed the feature/active-storage-template branch from 6fd1deb to 739246f Compare December 5, 2019 01:08
@georgeclaghorn georgeclaghorn merged commit c12997f into rails:master Dec 5, 2019
@georgeclaghorn
Copy link
Contributor

Thank you!

@r7kamura r7kamura deleted the feature/active-storage-template branch December 5, 2019 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants