Skip to content

More flexible policy configuration #3

@dichro

Description

@dichro

Currently policies are firm-coded (the rules are fixed, but they reference parameters tweakable via the config file). Changing the code is the ultimate in configurability, of course, and DSLs are terrible, but maybe IOS-ACL style rules wouldn't be too bad?

ephemera policy create foo
ephemera policy append foo replies 10+ keep
ephemera policy append foo age 7d+ favs 0 replies 0 rts 0 drop
ephemera policy append foo age 30d+ favs 10- replies 0 drop

That would translate into:

  • regardless of anything else, if a tweet has 10 or more replies, keep it
  • if a tweet is 7d or older and has no interaction, delete it
  • if a tweet is 30d or older and has no replies and fewer than 10 stars, delete it
  • otherwise keep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions