Generic constraint contexts for queries #55
Labels
No labels
admin tools
api
bug
documentation
duplicate
enhancement
feature
help wanted
in progress
internals
invalid
packaging
question
testing
trivial
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: MensBeam/Arsse#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Article-related methods such as
articleList
andeditionLatest
and well assubscriptionList
are starting to have significantly complex input; using method parameters would be a mess, and using a data array as update methods do would be fraught with bugs, not to mention awkward syntax.The best way to address this may be to introduce a
Context
class which the caller can build and the called method then inspect with less pain than an associative array. Building the context might go something like this:Obviously not all constraints will make sense for a given query. The method in question would probably have to handle each constraint separately regardless because the query would need to be constructed differently for different selection aims; the
Context
class should make this handling as painless as possible, however.