4d07f43a2e
Show related packages based on description embeddings
...
Package pages get a "Related packages" section: a nearest neighbor
query against the package's own stored embedding (no external service
call), excluding the package itself. Packages without an embedding
render no section.
2026-08-22 23:47:42 +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
8a13c92028
allow all Salsa users to be moderators
2026-02-09 01:34:34 +01:00
9d0009b129
return approved screenshots only in public json. fixes #96
2026-02-04 00:10:26 +01:00
8d354785dc
rubocop
2025-06-16 00:24:21 +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
3f4266d19b
rubocop
2025-05-02 00:38:59 +02:00
36984ff1d4
lab
2025-04-11 09:39:33 +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
7fe26d471e
Do not return unapproved screenshots
2024-07-21 23:59:54 +02:00
9635b3968c
Added per-user counter of approved/rejected screenshots
2021-03-21 23:06:51 +01:00
cc76ebcc28
Show abilities to hide/unhide properly
2021-03-21 22:02:56 +01:00
4e07bf00fd
Add gravatar to profile page. Attempt to make profile look nicer.
2021-03-10 02:33:40 +01:00
95223e3ba7
Shorter status text
2021-03-10 01:18:17 +01:00
ee24f99df4
Only allow hiding/un-hiding for approved screenshots
2021-03-10 01:13:12 +01:00
f9130c6972
Cruft
2021-03-10 01:04:43 +01:00
5d0e4a520e
Allow hiding and un-hiding of screenshot by moderators
2021-03-10 01:04:37 +01:00
c922723a9e
Admins can hide/unhide screenshots
2021-03-09 22:55:32 +01:00
632939cfa4
Moderators can only hide screenshots - not delete them
2021-03-09 22:55:22 +01:00
43e6e6c028
Minor visual improvement
2021-03-09 22:44:09 +01:00
2fef9c7043
Audit logging improved. References users, screenshots, packages
2021-03-03 23:21:24 +01:00
b6dee6b93c
Logging fixed. Debugging finished.
2021-03-03 01:29:26 +01:00
fe5655e6d5
Add mandatory new parameter for remote_ip to Log.log
2021-03-03 01:06:08 +01:00
150bd5df3e
Local admins can view audit logs
2021-03-03 01:05:48 +01:00
2b24083653
SQL optimisation rolled back. It lead to access problems.
2021-03-01 02:07:55 +01:00
b36a49a6cd
Avoid N+1 SQL queries with CanCanCan accessibility checks
2021-03-01 00:49:25 +01:00
f154c1838c
Add ability to view approved screenshots for anonymous users
2021-02-28 22:42:28 +01:00
7a3b65fe50
Authorisation management using CanCanCan added
2021-02-28 21:36:46 +01:00
bc507cbe39
Salsa login works
2021-02-27 23:50:51 +01:00
ae597a6235
Paperclip cruft removed
2021-02-25 00:14:17 +01:00
5ce1df07f3
Add default search order for screenshots
2021-02-24 23:50:31 +01:00
ec43f47f92
Show Moderate link in topbar. Add menu icons.
2021-02-24 19:18:19 +01:00
24718c14b7
Added missing dependency
2021-02-21 17:08:35 +01:00
f68482f850
Simplification
2021-02-21 11:12:35 +01:00
443f898ffd
Cruft
2021-02-20 21:19:24 +01:00
ecbc30cb6e
Fixed selection criterion for newest upload
2021-02-20 16:41:41 +01:00
0571617ea7
Cruft
2021-02-18 01:58:38 +01:00
09fc6e0113
Added to_param to refer to packages by /:name
2021-02-18 01:57:33 +01:00
ce7198b713
Added simple moderate feature in My page
2021-02-14 18:48:48 +01:00
427cdf87d7
Moved Screenshot.adminstatus to status_text helper
...
This change allows the use of fa_icon helpers
2020-11-23 00:21:17 +01:00
d74d507a3f
Cruft
2020-11-01 23:27:57 +01:00
c4f5741b0c
Migration to Shrine attachment handling
2020-11-01 15:07:16 +01:00
8b11a77817
Fixed wrong docstring
2020-10-30 21:53:00 +01:00
c23cfbbba2
Watermark now on east. New method for medium-sized images
2020-10-20 21:24:23 +02:00
fa080dca01
Forward deprecation of watermark processing
2020-10-20 19:49:38 +02:00
8021c81d53
Better docstrings
2020-10-20 19:42:21 +02:00
7ac69a1d8a
Rails update. Fancybox update. Migrations from Paperclip.
2020-10-19 18:49:47 +02:00
771ca41240
Added helper methods for screenshots
2020-08-21 19:11:21 +02:00
cfe6790179
Future features commented out
2020-08-21 19:11:03 +02:00