* add LabelDescription list to labeling tasks
* make +1 & -1 emoji exclusive (only one of both or none)
* add red_flag emoji to message when reported
* fix task's valid labels
* fix typo
* add preferred lonely_children extension
* simplify sampling process, lower the probability to 25%
* exclude parents for replies that were recently used
* lonely children := count > 0
* consider only tasks not done for parent exclusion
* increase lonely child sampling probability
* add disposition to text labeling tasks
* add emoji stats to ConversationMessage
* add user emoji augmentation for message queries
* add auth_method,username to message queries (query emoji status)
* add auth_method+username for single message
* fix param name typo
* only join rows when message.emojis != JSON.NULL
* formatting
* make sure emojis and user_emojis default to {}, []
* remove init_user(), use fresh empty default collections
* Added - Basic functions to export trees for users, export-ready trees and specific tree ids to files
* Added print to logger by default for no file specified
* linting to remove extra imports
* Added cli for exporting trees which are ready to export
Fixed some accidental removal
Updated message lookup to use dict for better perf
* removed unused imports
* changed export flag for including deleted prompts back to include_deleted for better understandability
* Use native collection types list, tuple, dict
* pre-commit fix
Co-authored-by: Andreas Köpf <andreas.koepf@provisio.com>
* store message_id in message_reactions and task_id in text_labels
* exclude tasks to which users already responded to
* remove test code
* fix join in find_incomplete_rankings_ex
* add lang filter option to message endpoints
* add lang filter option to frontend_users endpoints
* move lang param before api_client
Co-authored-by: Andreas Köpf <andreas.koepf@xamla.com>
* fix: redundant row updates with no Task id in text_labels table
* fix: review comments incorporated
* fix: better error handling and function name
* fix: review comments
Co-authored-by: James Melvin <melvin@gameface.ai>
* add keyset pagination for user ordered by username or display_name
* add index on display-name for user table
* update down_revision in migration script
* add admin purge user function
* improve comments
* minor naming changes
* ensuer user is enabled for tasks api requests
* add preview with stats to /admin/purge_user/{id} endpoint
* add update_children_counts()