module

Xerp::Feedback

Constants

VALID_KINDS = ["promising", "useful", "not_useful"]

Valid feedback kinds.

Class methods

get_events(db : DB::Database, result_id : String) : Array(Store::FeedbackEventRow)

Gets all feedback events for a result.

Source
get_stats(db : DB::Database, result_id : String) : Store::FeedbackStatsRow | Nil

Gets feedback stats for a result.

Source
mark(db : DB::Database, result_id : String, kind : String, query_hash : String | Nil = nil, note : String | Nil = nil) : Int64

Marks a result with feedback.

Source