Commit graph

51 commits

Author SHA1 Message Date
4948fe50e3 Add semantic package search via pgvector embeddings
Package text search now combines several strategies: exact name match,
name prefix promotion, compound word splitting ("sqlite browser" finds
"sqlitebrowser") and semantic nearest neighbor search over description
embeddings computed by an external embedding service (all-MiniLM-L6-v2,
384 dims) stored with the pgvector extension. Classic PostgreSQL
full-text search remains as fallback when the vector service is
unreachable. Gibberish queries without lexical overlap with the package
data return empty results instead of random matches.

Embeddings can be backfilled with bin/rails debshots:compute_vectors.

Also drops the unused lograge gem from the Gemfile.
2026-08-22 22:07:56 +02:00
9236af0712 rails 8.0.2 to 8.1. lograte for logging. 2026-02-25 00:09:25 +01:00
296e2d3f19 align icons properly with text 2025-06-18 02:06:50 +02:00
b601b2bbb6 move shrine files out of public. use x-sendfile to send files for security. 2025-06-16 00:24:11 +02:00
587baf0e7b use APP_BASE_URL to create oauth callback URLs 2025-06-08 20:23:18 +02:00
522cd56807 disable turbo. unwanted side effects. 2025-05-13 01:19:03 +02:00
d76bf164f1 lucene icons added, styling fixed 2025-05-09 00:41:11 +02:00
7cd9c68a10 trying to get JS and cssbundling to work 2025-04-09 22:47:05 +02:00
b5534b1900 Massive revamping for Rails 8 and Zurb 2025-03-16 00:44:43 +01:00
25672aabb0 Update to Rails 7.2 2025-02-25 21:57:16 +01:00
e32b6bb0ed framework defaults tidied up for rails 7 2024-07-15 00:06:08 +02:00
5b624e6c30 Merge branch 'prod' 2023-12-26 01:21:15 +01:00
0ba2ded4a2 Gems updated 2021-11-24 22:22:05 +01:00
92aca77cdb General Rails and Ruby updates 2021-05-28 21:07:45 +02:00
ea4e04dd33 Trying to fix healthchecks again that suddenly fail 2021-04-26 23:54:37 +02:00
51c297c107 Making healthchecks during deployment more relaxed 2021-04-26 23:50:41 +02:00
d0612d25ea Improved error message for healthcheck 2021-04-26 23:25:38 +02:00
31b19f3a2c Check for necessary ENV variables in healthcheck 2021-03-21 22:25:28 +01:00
d504e5e914 Increase session timeout from 30 minutes to 6 hours 2021-03-10 01:20:10 +01:00
e9eb680aed ENV variables renamed for clarity 2021-02-28 02:03:49 +01:00
afa90e3927 OAuth2 callback URL is now configurable 2021-02-28 01:59:53 +01:00
bc507cbe39 Salsa login works 2021-02-27 23:50:51 +01:00
72225e32ef Docs 2021-02-21 19:41:04 +01:00
eb2a5c6e19 Healthcheck added
https://github.com/linqueta/rails-healthcheck
2021-02-14 16:41:29 +01:00
6d0ed8c8f8 Adding prefix /shrine for static images
Otherwise /screenshot/:name might get confused with
/screenshot/simage/123/small-123.png
2021-02-13 22:16:37 +01:00
ac13cf10c0 Make BetterErrors open vscode 2021-02-07 14:14:03 +01:00
3a4f40b7e3 Cruft 2020-11-01 23:25:34 +01:00
c4f5741b0c Migration to Shrine attachment handling 2020-11-01 15:07:16 +01:00
8adf682a0b Migrations and helpers to move from Paperclip to ActiveStorage
To migrate the application as of April 2020:

• leave models/screenshot.rb with “has_attached_file”
• bundle exec rake db:migrate
• bin/move_paperclip_to_activestorage
• set models/screenshot.rb to “has_one_attached”
2020-04-20 20:24:59 +02:00
186a7d91c9 Upgrade Rails 5.2 -> 6.0 2020-04-14 02:26:43 +02:00
d130f68172 Upgrade from Rails 5.0 to 5.2 2020-04-14 02:16:25 +02:00
1c3f692ec0 Fix logging with with Javascript disabled 2018-05-28 16:57:01 +02:00
1d5b8568f3 Beautification 2017-04-19 00:15:42 +02:00
b24abd7328 Github SSO added 2017-04-19 00:15:29 +02:00
65723d3063 Amazon SSO added 2017-04-17 13:11:44 +02:00
2a7491edcd Google authentication added 2017-04-17 00:42:03 +02:00
f7258370a0 Further updates to Rails 5.0.2 2017-04-17 00:16:32 +02:00
26a2f44ff1 Updated Rails version to 5.0.2 2017-04-16 23:59:05 +02:00
4bad4d3a36 OpenID auth using Launchpad and Stackexchange works 2017-04-16 23:58:08 +02:00
898dd81c6b Playing with OmniAuth
However OmniAuth is mainly used for authorization. So let's try a more
lightweight approach with just OpenID.
2017-04-15 23:08:25 +02:00
909be1c8ae SSO using Amazon added 2017-04-06 20:19:14 +02:00
63634f00df Allow same email address with different SSO providers 2017-04-06 18:32:20 +02:00
9a5ddb5e13 Experimental authentication for Launchpad and Google added 2017-04-06 12:56:06 +02:00
72ccc986a4 Google's recaptcha removed. Avoid external dependencies. 2017-04-05 16:26:23 +02:00
ff0b93380a Recaptcha support added when reporting screenshots
There's lots of spam recently. We need to do something against it.
2016-07-21 11:29:25 +02:00
927fa71266 Configured Devise to lock accounts for a certain time 2016-03-02 15:42:13 +01:00
a9e0669657 Devise updated 2016-03-01 17:27:21 +01:00
35eb83448e Added "devise" for authentication. 2015-07-15 17:06:32 +02:00
5c31a94aef Devise removed. Broke tests. Trying another auth gem. 2015-05-03 13:31:13 +02:00
3988c7ddf3 Devise authentication added - no registration though 2015-05-02 16:16:29 +02:00