feat: cache the suggestions in a JSON payload #378

Merged
RaitoBezarius merged 6 commits from cache-suggestions into main 2024-11-21 08:33:04 +00:00
RaitoBezarius commented 2024-11-20 15:20:37 +00:00 (Migrated from github.com)

which can be pulled back, paginated, etc.

This will run automatically upon every new insertion of pending proposal.

which can be pulled back, paginated, etc. This will run automatically upon every new insertion of pending proposal.
fricklerhandwerk (Migrated from github.com) reviewed 2024-11-20 21:17:20 +00:00
@ -0,0 +53,4 @@
if not relevant_piece:
# No package name.
return
relevant_piece = relevant_piece[0]
fricklerhandwerk (Migrated from github.com) commented 2024-11-20 21:17:20 +00:00

@erictapen I guess we're already using more than just the first random package name, at least in https://github.com/Nix-Security-WG/nix-security-tracker/pull/365? I fear that one will need rebasing

@erictapen I guess we're already using more than just the first random package name, at least in https://github.com/Nix-Security-WG/nix-security-tracker/pull/365? I fear that one will need rebasing
fricklerhandwerk (Migrated from github.com) reviewed 2024-11-20 21:17:40 +00:00
@ -0,0 +56,4 @@
relevant_piece = relevant_piece[0]
# This is not a suggestion we want to show.
if suggestion.derivations.count() > 1_000:
fricklerhandwerk (Migrated from github.com) commented 2024-11-20 21:17:39 +00:00

More like

    if suggestion.derivations.count() > 100:
More like ```suggestion if suggestion.derivations.count() > 100: ```
fricklerhandwerk (Migrated from github.com) approved these changes 2024-11-21 08:32:12 +00:00
fricklerhandwerk (Migrated from github.com) left a comment

Nice, this does the trick

Nice, this does the trick
Sign in to join this conversation.
No description provided.