notmd
7025b174d2
Merge branch 'main' into 766_admin_enhancement
2023-01-22 17:22:31 +07:00
James Melvin Ebenezer
c0391a6df9
fix: redundant row updates with no Task id in text_labels table ( #876 )
...
* 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 >
2023-01-22 11:08:02 +01:00
Andreas Köpf
28089d9ecf
fix username+auth combo check
2023-01-22 09:29:21 +01:00
notmd
d9205bec52
Merge branch 'main' into 766_admin_enhancement
2023-01-22 14:58:15 +07:00
Andreas Köpf
3b5b6669a5
move lt-desc order to users-cursor function
2023-01-22 08:42:38 +01:00
notmd
101f2c536a
revert change in user_repository
2023-01-22 14:20:39 +07:00
notmd
6945cc5fe7
remove reverse method
2023-01-22 14:14:41 +07:00
notmd
fa5702ac9e
Merge branch 'main' into 766_admin_enhancement
2023-01-22 14:07:19 +07:00
Andreas Köpf
76b5bdc5d7
fix cursor queries query_users_ordered_by_username/query_users_ordered_by_display_name
2023-01-22 00:58:03 +01:00
Ori Yonay
cec49614c2
added message size limit of 2000 characters (issue 822) ( #880 )
...
* added message size limit (issue 822)
2023-01-21 22:37:42 +01:00
notmd
0cc6b3b8ae
Merge branch 'main' into 766_admin_enhancement
2023-01-21 22:10:15 +07:00
Andreas Köpf
e08b36e675
imporve prev/next status for user cursor
2023-01-21 16:04:43 +01:00
notmd
27e1e549c4
fix query in backward direction
2023-01-21 20:10:19 +07:00
Andreas Köpf
186aabe3a5
improve prev,next cursor values
2023-01-21 12:19:45 +01:00
Andreas Köpf
94e5d50537
add users/cursor keyset_pagination endpoint ( #866 )
...
* add users/cursor endpoint
* add messages/cursor endpoint
* add user/{user_id}/messages/cursor, frontend_user/{auth_method}/{username}/messages/cursor
* user regex to parse cursor value
2023-01-21 00:29:53 +01:00
Andreas Köpf
2d21b65ed0
Add lang-tag based task selection (lang-separation) ( #863 )
...
* lang based task selection
* use BCP 47 instead of ISO 639-1
* add Field(None, nullable=True)
* update migration script down_revision
2023-01-20 19:58:33 +01:00
Andreas Köpf
70fc80aa08
Add keyset pagination for users ordered by username / display_name ( #851 )
...
* 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
2023-01-20 16:32:13 +01:00
Andreas Köpf
038d1cc004
last_uddated for user_stats, swtich to timestamptz
2023-01-19 22:07:08 +01:00
Andreas Köpf
7a1a8c8b54
fetch whole message tree for purge (including non-reviewed & deleted)
2023-01-19 16:42:13 +01:00
Andreas Köpf
1a93c21f94
add logging
2023-01-19 16:28:03 +01:00
Andreas Köpf
2d4e38a272
remove ensure_user_is_enabled() from ACK/NACK
2023-01-19 15:36:34 +01:00
Andreas Köpf
488842c3cb
purge -> purge_user in path
2023-01-19 15:12:37 +01:00
Andreas Köpf
547e355e27
add update_leaderboard..(), admin/purge/{user-id}/messages, ban param for purge_user()
2023-01-19 15:10:22 +01:00
Andreas Köpf
ef8a00e682
add GET /api/v1/admin/backend_settings/{full/public} endpoint for api-clients ( #830 )
...
* add GET /api/v1/admin/backend_settings endpoint for trusted api-clients
* add backend_settings/public for untrusted api_clients
2023-01-19 11:48:26 +00:00
Andreas Köpf
335af5d641
add admin purge user function ( #834 )
...
* 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()
2023-01-19 12:33:55 +01:00
Andreas Köpf
7e8d4f5a6e
fix only_active condition of tree_message_count_stats()
2023-01-18 22:02:35 +01:00
MattAlexMiracle
530194de08
Fix to ranking algorithm ( #826 )
...
* fixed ranking
* fix index error
Co-authored-by: Alexander Mattick <alex.mattick@fau.de >
2023-01-18 21:27:16 +01:00
Vechtomov
9b98056001
change leaderboard ordering ( #825 )
2023-01-18 21:17:16 +01:00
Andreas Köpf
718faa098e
Add combined TreeManager stats endpoint ( #816 )
2023-01-18 00:54:19 +01:00
Andreas Köpf
acaa56ebb0
fix ranking assert for 1st level children
2023-01-18 00:49:28 +01:00
dhug
6b82b2cd13
Add api auth to user stat repo ( #805 )
...
* added api_auth to user_stats_repository
* pre_commit changes
* Remove call with dev uuid
Co-authored-by: Andreas Köpf <andreas.koepf@xamla.com >
2023-01-17 20:07:39 +00:00
Andreas Koepf
0f896d910e
make sure we enter READY_FOR_EXPORT after ranking
2023-01-17 17:50:17 +00:00
Andreas Köpf
9b6dc6bae2
fix join types in TreeManager
2023-01-17 11:01:36 +01:00
Andreas Köpf
2ee01d1224
fix query in TreeManager.query_extendible_parents()
2023-01-17 10:45:52 +01:00
Andreas Köpf
d85cec3d2f
extensible -> extendible
2023-01-17 10:21:57 +01:00
Andreas Köpf
6e4d8097b6
fix availability for label_prompter_reply
2023-01-17 10:15:30 +01:00
Andreas Köpf
988913943f
use '.value' of str-enums in db queries
2023-01-17 09:54:20 +01:00
dhug
8b30c7b68e
add changes for auto_main, tree_manager, and utils/ranking ( #786 )
...
* add changes for auto_main, tree_manager, and utils/ranking
* pre-commit changes
Co-authored-by: Alexander Mattick <alex.mattick@fau.de >
2023-01-17 08:27:21 +01:00
Andreas Köpf
2d4e39cf5d
use sqlalchemy for query_reviews_for_message() in TreeManager
2023-01-16 20:31:29 +01:00
Andreas Köpf
ead51ff423
770 tree manager allow to specify desired task_type no prompter ranking ( #775 )
...
* only ranking assistant replies by default
* add tasks/availability endpoint allow to specify desired task
* move rank_prompter_replies option to TreeManagerConfiguration
* fix type annotation
* remove desired_task_type from _random_task_selection()
* fix typo
* Convert query_tree_size to sqlachemy, return 'full' text-labeling tasks if they were explicitly requested
2023-01-16 20:05:40 +01:00
Andreas Köpf
7f562fbbae
add managed_tx_function() decorator and use it for startup db-calls
2023-01-16 09:16:28 +01:00
Andreas Köpf
a42f2cd3ed
add new debug option 'DEBUG_DATABASE_ECHO' (default False)
2023-01-16 08:46:45 +01:00
James Melvin Ebenezer
c6fbf5543b
599 add row versioning to backend tables ( #710 )
...
* fix: isolation level and nested db.commit() with retry wrappers on concurrent update errors
* refactor: incorporated review comments
changes decorator methods to managed_tx_method and async_managed_tx_method
new enum CommitMode
removed commented commit() from the previous commits
* fix: merge pre-commit errors
* fix: merge pre-commit changes
* fix: conflict in existing OasstErrorCode
* refactor: Added a refresh just to be sure that the select command is triggered on the mapped object
* fix: added refresh for async decorator
Co-authored-by: James Melvin <melvin@gameface.ai >
2023-01-16 08:43:07 +01:00
Andreas Köpf
72a58ca2d3
add 'cache_ok = True' to PayloadJSONBType type decorator
2023-01-16 08:37:24 +01:00
Keith Stevens
5e814eaa4c
Merge pull request #732 from LAION-AI/673-admin-page-pagination
...
Supporting user pagination on the web admin view
2023-01-16 08:39:15 +09:00
Andreas Köpf
bf80820d34
fix realistic seed data (remove 'Assistant: ' prefixes)
2023-01-16 00:26:27 +01:00
Andreas Köpf
de28d67031
infer role from task in store_text_reply()
2023-01-16 00:19:30 +01:00
Yannic Kilcher
c0cb15bbb0
fixing text frontend and startup creation
2023-01-16 00:11:20 +01:00
Yannic Kilcher
5d441b1570
prepared playbook for prod
2023-01-15 23:30:16 +01:00
Yannic Kilcher
cc03376d86
added root tokens and endpoint for adding api keys ( #742 )
...
* added root tokens and endpoint for adding api keys
* Change down revision to current alembic head
* removed added_by_root_token
* refactored description
* fixed jinja errors
Co-authored-by: Andreas Köpf <andreas.koepf@provisio.com >
2023-01-15 21:24:25 +00:00