Commit Graph

2006 Commits

Author SHA1 Message Date
notmd 2d2ea2039c Merge branch 'main' into 911_control_email_signin 2023-02-03 13:31:18 +07:00
Andreas Köpf d5c0adba5f fix typo SERCERT -> SECRET 2023-02-02 22:10:50 +00:00
Andreas Köpf 776584503f add new cfg env vars 2023-02-02 22:10:14 +01:00
Andreas Köpf 4886626904 fix alembic migration script 2023-02-02 19:41:34 +01:00
Oliver Stanley 652b7bff04 857: Implement backend Discord authentication (#943)
* Initial code for backend auth

* Remove outdated check

* Initial separation of AuthenticatedUser

* AuthenticatedUser -> Account

* Rework for Account

* Initial code for Discord OAuth

* Remove now redundant methods

* Remove incorrect response model, add requests dep for backend

* Create Settings fields for Discord values

* Cleanup get account from Discord function

* Cleanup

* Cleanup

* Generate alembic upgrade script

* Remove unused error codes

* Update alembic script to correct down revision

* Use aiohttp over requests

* Update alembic script to latest down revision
2023-02-02 19:33:21 +01:00
Alex Ott dfd2c35276 Feat/task handler (#1056)
* move task logic to task handlers

* rename command

* remove test code

* rename classes and add missing handler creations

* switch task back to random and fetch log_channel_id from db
2023-02-02 17:28:00 +01:00
Andreas Köpf 2db3450e9a add trollboards 2023-02-02 16:10:38 +01:00
Keith Stevens fa53505369 Merge pull request #1069 from LAION-AI/flag-label-desciptions
website: show descriptions for label flags
2023-02-02 21:09:53 +09:00
Keith Stevens 242a1e6f3d Merge pull request #1066 from LAION-AI/hide_system_emojis
hide system emojis starting with '_'
2023-02-02 21:06:27 +09:00
AbdBarho 2d10c9f72b Merge pull request #1067 from notmd/side_menu_regression
fix side menu regression
2023-02-02 11:36:10 +01:00
Adrian Cowan b1d86ebc65 website: show descriptions for label flags
Desciptions are shown both via tooltips, which are easier to read on desktop browsers, and via an explain (i) button so that mobile users can get the description (though in one larger list).
2023-02-02 21:34:35 +11:00
notmd 6019b93971 update workflow env 2023-02-02 16:35:06 +07:00
Andreas Köpf c84453900f simplify destructuring
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-02-02 10:23:06 +01:00
AbdBarho e1f52c76d7 Merge pull request #1051 from notmd/bundle_analyzer
Setup bundle analyzer
2023-02-02 10:13:09 +01:00
notmd 9fa22be66e fix side menu regression 2023-02-02 16:07:45 +07:00
Vechtomov cbf3c22560 Add new datasets contribution guide (#1061)
* Add readme

* change link in CONTRIBUTING
2023-02-02 07:52:39 +01:00
Andreas Köpf aa39019e1c hide system emojis starting with '_' 2023-02-02 00:23:33 +00:00
Andreas Köpf 5f7013fb81 add '_' prefix to special emoji codes, fix skip rankings 2023-02-02 00:51:20 +01:00
Andreas Köpf f4b534eb17 no task ack check for skip 2023-02-02 00:27:27 +01:00
Andreas Köpf d33fb9ce88 fix alembic downgrade script of 7b8f0011e0b0 2023-02-02 00:15:49 +01:00
Andreas Köpf 779f522385 Skip tasks permanently based on special skip emoji codes (#1064)
* add skip emojis

* extend tree_manager queries to exclude tasks based on skip-emojis

* remove unrelated columns

* change skip_reason max_length to 512

* update down_revision to 55361f323d12
2023-02-02 00:07:08 +01:00
Andreas Köpf bbf038677c Add terms of service acceptance date to user table (#1046)
* add tos_acceptance_date column to user

* send 451 UNAVAILABLE_FOR_LEGAL_REASONS status

* add create user REST endpoint

* adapt text-frontend to ToS requirements

* set DEBUG_IGNORE_TOS_ACCEPTANCE default to True (temporary change)

* update down revision to f60958968ff8
2023-02-01 23:53:21 +01:00
Andreas Köpf e0df9f0b7c Add infty prompting + prompt-lottery (#1055)
* first bits of prompt-lottery

* add tree prompt lottery

* minor text changes
2023-02-01 23:49:21 +01:00
AbdBarho 638d8c1572 Merge pull request #1059 from occupytheweb/1058_fix__instruction_not_displayed
1058: Fix display of task instruction
2023-02-01 21:49:25 +01:00
Alan Jean 91d3045595 fix(website): fix display of task instruction
Fixes the misuse of the i18n lib which caused the task instruction not
to appear above the response text-area when an 'instruction' translation
key exists for the current task.

Fixes #1058
2023-02-01 23:00:00 +04:00
notmd 0b9b8ed927 allow to enable/disable email sigin via env variable 2023-02-02 00:29:46 +07:00
notmd ff94e3a6e0 support window 2023-02-01 20:30:04 +07:00
sryu1 d145f6677a Minor updates to prompting guide (#1050) 2023-02-01 13:00:23 +00:00
notmd fdd57eda85 setup bundle analyzer 2023-02-01 19:45:43 +07:00
Keith Stevens caa6331a72 Merge pull request #1049 from notmd/cleanup
Various website cleanup
2023-02-01 21:07:55 +09:00
notmd 79a39771aa remove root styles folder 2023-02-01 17:55:29 +07:00
notmd c6bf5bc907 Merge branch 'main' into cleanup 2023-02-01 17:31:03 +07:00
notmd 1e2948743d wip 2023-02-01 17:22:44 +07:00
AbdBarho 2d97ffa371 Merge pull request #1048 from LAION-AI/missing-message-functions-initial-label-task
website: Add missing message features in label initial prompt
2023-02-01 10:00:24 +01:00
AbdBarho 849996c22d Merge pull request #1040 from notmd/995_available_task
Display number of available tasks
2023-02-01 09:44:43 +01:00
Adrian Cowan 530d3e1d1d website: Add missing message features in label initial prompt
Now the backend passes a single message conversation for the label initial prompt task,
this allows us to just show the conversation the same way we do for the other labelling tasks.

The MessageView component was now no longer used and all messages shown are using MessageTableEntry.
2023-02-01 19:36:52 +11:00
Korbinian Pöppel 2d2fdef889 Update FAQs for docker port problems. (#1045) 2023-02-01 08:31:04 +00:00
notmd 36e55c9bf4 extract to theme 2023-02-01 14:53:28 +07:00
notmd c8cd869594 extract type 2023-02-01 14:34:47 +07:00
Keith Stevens 04e81edf5c Merge pull request #932 from notmd/911_sigin_captcha
911 signin captcha
2023-02-01 15:56:14 +09:00
Keith Stevens 0351dd74ae Merge pull request #1042 from chs20/fix/newline-full-text-modal
Display newlines in full text modal during ranking
2023-02-01 14:46:20 +09:00
chs20 25ca82f7e5 Fix #1034 - display newlines in full text modal during ranking 2023-01-31 22:27:14 +01:00
Alan Jean bc8d352bf4 Merge pull request #1024 from occupytheweb/913_inference_server_docker_setup
inference: Define container images and compose descriptor for the inference stack
2023-01-31 20:33:45 +04:00
notmd f569c6d12b Display number of available tasks 2023-01-31 22:00:14 +07:00
Andreas Köpf af0ae71bbe Add message to prompt-labeling task (#1035)
* add full message to prompt-labeling & always require full prompt labeling

* always sending conversation, also for initial prompt labeling

* update type annotation
2023-01-31 14:42:04 +00:00
Andreas Köpf 9b8574f247 Limit number of replies to assistant messages (#1036)
* limit replies to assistant messages

* revert some debug changes

* use uuid for random message id in auto_main

* Update config.py
2023-01-31 15:08:54 +01:00
Andreas Köpf b6bdb84019 Add endpoint to query nearby leaderboard rows (#1038)
* add is_current_user bool

* add user leaderboard surrounding window function
2023-01-31 15:05:05 +01:00
notmd 4d2baf09a7 fix typo 2023-01-31 20:13:52 +07:00
Keith Stevens 355d621488 Merge pull request #1033 from paulovn/fix/website-fail-label
website: changed the UI label for failed answer to avoid implicit negative
2023-01-31 22:06:11 +09:00
notmd 158cb02025 try disable captcha 2023-01-31 19:53:37 +07:00