-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update deps and Vite * remove warning message * replace litestack by rails defaults * lint * fix tests
- Loading branch information
1 parent
6a2fadc
commit 7f82994
Showing
25 changed files
with
431 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
development: | ||
adapter: litecable | ||
adapter: async | ||
|
||
test: | ||
adapter: litecable | ||
adapter: async | ||
|
||
production: | ||
adapter: litecable | ||
adapter: async |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
default: &default | ||
database: cache | ||
store_options: | ||
max_age: <%= 1.week.to_i %> | ||
max_size: <%= 512.megabytes %> | ||
namespace: <%= Rails.env %> | ||
|
||
development: | ||
<<: *default | ||
|
||
test: | ||
<<: *default | ||
|
||
production: | ||
<<: *default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
default: &default | ||
dispatchers: | ||
- polling_interval: 1 | ||
batch_size: 500 | ||
recurring_tasks: | ||
# periodic_litestream_backup_verfication_job: | ||
# class: Litestream::VerificationJob | ||
# args: [] | ||
# schedule: every day at 1am EST | ||
workers: | ||
- queues: "*" | ||
threads: 3 | ||
processes: 1 | ||
polling_interval: 0.1 | ||
|
||
development: | ||
<<: *default | ||
|
||
test: | ||
<<: *default | ||
|
||
production: | ||
<<: *default |
12 changes: 12 additions & 0 deletions
12
db/cache_migrate/20240516085648_create_solid_cache_entries.solid_cache.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This migration comes from solid_cache (originally 20230724121448) | ||
class CreateSolidCacheEntries < ActiveRecord::Migration[7.0] | ||
def change | ||
create_table :solid_cache_entries do |t| | ||
t.binary :key, null: false, limit: 1024 | ||
t.binary :value, null: false, limit: 512.megabytes | ||
t.datetime :created_at, null: false | ||
|
||
t.index :key, unique: true | ||
end | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
...e_migrate/20240516085649_add_key_hash_and_byte_size_to_solid_cache_entries.solid_cache.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This migration comes from solid_cache (originally 20240108155507) | ||
class AddKeyHashAndByteSizeToSolidCacheEntries < ActiveRecord::Migration[7.0] | ||
def change | ||
change_table :solid_cache_entries do |t| | ||
t.column :key_hash, :integer, null: true, limit: 8 | ||
t.column :byte_size, :integer, null: true, limit: 4 | ||
end | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
...key_hash_and_byte_size_indexes_and_null_constraints_to_solid_cache_entries.solid_cache.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This migration comes from solid_cache (originally 20240110111600) | ||
class AddKeyHashAndByteSizeIndexesAndNullConstraintsToSolidCacheEntries < ActiveRecord::Migration[7.0] | ||
def change | ||
change_table :solid_cache_entries, bulk: true do |t| | ||
t.change_null :key_hash, false | ||
t.change_null :byte_size, false | ||
t.index :key_hash, unique: true | ||
t.index [:key_hash, :byte_size] | ||
t.index :byte_size | ||
end | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
db/cache_migrate/20240516085651_remove_key_index_from_solid_cache_entries.solid_cache.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This migration comes from solid_cache (originally 20240110111702) | ||
class RemoveKeyIndexFromSolidCacheEntries < ActiveRecord::Migration[7.0] | ||
def change | ||
change_table :solid_cache_entries do |t| | ||
t.remove_index :key, unique: true | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file is auto-generated from the current state of the database. Instead | ||
# of editing this file, please use the migrations feature of Active Record to | ||
# incrementally modify your database, and then regenerate this schema definition. | ||
# | ||
# This file is the source Rails uses to define your schema when running `bin/rails | ||
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to | ||
# be faster and is potentially less error prone than running all of your | ||
# migrations from scratch. Old migrations may fail to apply correctly if those | ||
# migrations use external dependencies or application code. | ||
# | ||
# It's strongly recommended that you check this file into your version control system. | ||
|
||
ActiveRecord::Schema[7.1].define(version: 2024_05_16_085651) do | ||
create_table "solid_cache_entries", force: :cascade do |t| | ||
t.binary "key", limit: 1024, null: false | ||
t.binary "value", limit: 536870912, null: false | ||
t.datetime "created_at", null: false | ||
t.integer "key_hash", limit: 8, null: false | ||
t.integer "byte_size", limit: 4, null: false | ||
t.index ["byte_size"], name: "index_solid_cache_entries_on_byte_size" | ||
t.index ["key_hash", "byte_size"], name: "index_solid_cache_entries_on_key_hash_and_byte_size" | ||
t.index ["key_hash"], name: "index_solid_cache_entries_on_key_hash", unique: true | ||
end | ||
end |
Oops, something went wrong.