1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00

Stock filter (#1376)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

* Initial pass at stock filtering

* Rough in filter

* Cleaning up security listing

* Tweak to search function

* Combobox tweaks

* Clean up search query

* Update trades test with combobox

* Update securities.yml
This commit is contained in:
Josh Pigford 2024-10-28 15:49:19 -04:00 committed by GitHub
parent c2561b5fb4
commit 7d8028b505
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 104 additions and 7 deletions

4
db/schema.rb generated
View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2024_10_25_174650) do
ActiveRecord::Schema[7.2].define(version: 2024_10_25_182612) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@ -481,7 +481,9 @@ ActiveRecord::Schema[7.2].define(version: 2024_10_25_174650) do
t.string "country_code"
t.string "exchange_mic"
t.string "exchange_acronym"
t.virtual "search_vector", type: :tsvector, as: "(setweight(to_tsvector('simple'::regconfig, (COALESCE(ticker, ''::character varying))::text), 'B'::\"char\") || to_tsvector('simple'::regconfig, (COALESCE(name, ''::character varying))::text))", stored: true
t.index ["country_code"], name: "index_securities_on_country_code"
t.index ["search_vector"], name: "index_securities_on_search_vector", using: :gin
t.index ["ticker", "exchange_mic"], name: "index_securities_on_ticker_and_exchange_mic", unique: true
end