Commit graph

47 commits

Author SHA1 Message Date
7fff0a6dbf Bump schema version for constraint migration 2026-09-04 21:57:48 +02:00
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
784d646047 rubocop reformatting 2026-02-03 00:02:25 +01:00
52777edb65 Several changes to adapt Rails 8 2025-04-04 00:58:27 +02:00
5b624e6c30 Merge branch 'prod' 2023-12-26 01:21:15 +01:00
07d48b6ad9 Migrations applied 2021-05-28 21:22:56 +02:00
9635b3968c Added per-user counter of approved/rejected screenshots 2021-03-21 23:06:51 +01:00
5d0e4a520e Allow hiding and un-hiding of screenshot by moderators 2021-03-10 01:04:37 +01:00
2fef9c7043 Audit logging improved. References users, screenshots, packages 2021-03-03 23:21:24 +01:00
7a3b65fe50 Authorisation management using CanCanCan added 2021-02-28 21:36:46 +01:00
3f2928e737 Recreate ipaddress field as PostgreSQL's inet type 2021-02-22 11:31:41 +01:00
16b14b1650 Extend uploaderip field to cope with IPv6 addresses 2021-02-22 11:25:13 +01:00
bc84a022fe Fixed database column for Shrinerb 2020-11-12 19:36:30 +01:00
c4f5741b0c Migration to Shrine attachment handling 2020-11-01 15:07:16 +01:00
7ac69a1d8a Rails update. Fancybox update. Migrations from Paperclip. 2020-10-19 18:49:47 +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
020a864736 Added welcome and profile actions to the my controller 2017-04-23 13:37:48 +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
464fc0de95 Renamed realname to name in users table
We do not necessarily need the real name. A nickname would be
sufficient.
2017-04-05 16:42:10 +02:00
3af455103e New database schema after db:migrate 2016-10-29 17:41:56 +02:00
c0dbfd9038 Updated schema 2016-08-12 17:06:52 +02:00
5227c8d1fa Setting default visit counter to 0 2016-08-10 18:59:33 +02:00
5df0a96b1d Column 'visits' added to packages
Preparation for processing web server access logs to count visits of
packages.
2016-08-10 08:45:25 +02:00
9024833921 Enlarged screenshot description field to 80 chars 2016-07-15 20:10:34 +02:00
59e5ac8eca Schema fixed 2016-05-16 23:48:05 +02:00
79d16b1ce0 Approved field is now false by default 2016-04-08 16:42:46 +02:00
3eeb9a63dc Using created_at instead of legacy 'uploaddatetime' field 2016-03-04 15:41:50 +01:00
b1bd655998 Fixed database schema and migrations for Devise 2016-03-02 15:30:32 +01:00
a7c8f08972 Migrations cleaned up 2016-03-01 17:57:32 +01:00
9853af43de Enable lockable feature of Devise to lock out users after brute force attempts 2015-07-15 17:30:47 +02:00
35eb83448e Added "devise" for authentication. 2015-07-15 17:06:32 +02:00
737ff62cfc Trying to get authlogic running 2015-07-13 18:42:36 +02:00
56f38bcdcf Make sure that a package has a valid name
If this contraint had been there I would have found a bug
in the import_debian Rake task much sooner.
2015-06-28 15:08:16 +02:00
3b056a2db8 Added authlogic and user schema 2015-06-15 13:04:29 +02:00
239a4758c0 Dropping old "admins" table in favor of new User model. 2015-05-03 15:08:23 +02:00
a2acb87cfc Devise schema removed 2015-05-03 13:30:07 +02:00
3988c7ddf3 Devise authentication added - no registration though 2015-05-02 16:16:29 +02:00
bdd2753c96 Added logs table to database schema 2015-04-27 00:18:09 +02:00
f741112818 Added migration to make package.long_description a longer text field 2015-04-23 17:19:11 +02:00
7aca36e46b Added Paperclip attachment handler 2015-01-04 14:19:19 +01:00
15411e9c61 Schema updated. (Reason unknown.) 2014-12-30 16:56:55 +01:00
b70d2e6701 Schema updated after dropping debtags tables 2014-12-07 22:47:49 +01:00
110cd16d6e Adding database index on full-text search for better performance. 2013-08-08 22:32:41 +02:00
3c03445f45 Added 'admins' database table 2013-08-06 22:33:03 +02:00
8df03296e9 Schema and basic migraton for "package" table added 2013-07-27 01:23:51 +02:00