Private
Public Access
Implements FilterRule (one condition -> action, scoped to a feed and/or folder or global) with an evaluation engine applied at ingest time: after the fetch pipeline commits new/updated articles, each affected subscriber's enabled rules run in priority order against them, with tag/star/mark_read actions stacking and hide short-circuiting further evaluation for that article. Adds rule management (create/edit/delete) and a "Re-apply" action that re-evaluates a user's full ruleset against their unread backlog, scoped by the triggering rule's own feed/folder — so a newly added rule can retroactively affect already-ingested articles, not just future ones. Verified live in-browser: created a "title contains 'Show HN' -> star" rule scoped to the subscribed Hacker News feed, re-applied it against the existing unread backlog, and confirmed both matching articles were starred. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
14 lines
444 B
Python
14 lines
444 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "rules"
|
|
|
|
urlpatterns = [
|
|
path("rules/", views.rule_list, name="rule_list"),
|
|
path("rules/new/", views.create_rule, name="create_rule"),
|
|
path("rules/<int:rule_id>/edit/", views.edit_rule, name="edit_rule"),
|
|
path("rules/<int:rule_id>/delete/", views.delete_rule, name="delete_rule"),
|
|
path("rules/<int:rule_id>/reapply/", views.reapply_rule, name="reapply_rule"),
|
|
]
|