Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hitl dashboard - Managing Turk List Backend #1296

Open
wants to merge 30 commits into
base: hitl_dashboard_turk_ls
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2958bfd
update backend api for reteriving turk list
mialsy Jul 19, 2022
59cb32a
Automatic style fix for droidlet
Jul 19, 2022
3405c7d
update to use tab
mialsy Jul 19, 2022
425ab0a
Merge branch 'hitl_dashboard_turkls_be' of https://github.com/faceboo…
mialsy Jul 19, 2022
7d47640
update the logic to handle duplicate
mialsy Jul 20, 2022
a304ca2
update doc
mialsy Jul 20, 2022
f8507be
Automatic style fix for droidlet
Jul 20, 2022
8ce0480
update backend api for reteriving turk list
mialsy Jul 19, 2022
10af8f5
update to use tab
mialsy Jul 19, 2022
54fe7da
Automatic style fix for droidlet
Jul 19, 2022
c4029c3
update the logic to handle duplicate
mialsy Jul 20, 2022
5e5452a
update doc
mialsy Jul 20, 2022
745b67d
Automatic style fix for droidlet
Jul 20, 2022
2a7a235
removed redundent imports
mialsy Jul 20, 2022
b4d20dc
add filter
mialsy Jul 20, 2022
65937c3
fixed issue with search
mialsy Jul 20, 2022
332979d
add backend impl for update, updated frontend ui
mialsy Jul 20, 2022
3384b8e
Automatic style fix for droidlet
Jul 20, 2022
6e33b55
add socket event/frontend component to sync local turk list with s3
mialsy Jul 21, 2022
198b753
rebase
mialsy Jul 21, 2022
6f9eb41
fixed bug due to callback
mialsy Jul 21, 2022
da6c213
Automatic style fix for droidlet
Jul 21, 2022
959b548
update documentation
mialsy Jul 21, 2022
d013d5f
Merge branch 'hitl_dashboard_turkls_be' of https://github.com/faceboo…
mialsy Jul 21, 2022
0053a28
update readme
mialsy Jul 21, 2022
06735ec
Update README.MD
mialsy Jul 21, 2022
e56241c
Delete allow.txt
mialsy Jul 21, 2022
276d22e
fixed early return bug
mialsy Jul 21, 2022
20571f9
changed to show only 2 status to avoid confusion:
mialsy Jul 21, 2022
bcd0959
Update README.MD
mialsy Jul 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
get_keys,
get_value_by_key,
)
from droidlet.tools.hitl.dashboard_app.backend.dashboard_turk_utils import get_turk_list_by_pipeline, update_turk_list_to_sync, update_turk_qual_by_tid
from droidlet.tools.hitl.dashboard_app.backend.dashboard_turk_utils import (
get_turk_list_by_pipeline,
update_turk_list_to_sync,
update_turk_qual_by_tid,
)
from flask import Flask, abort
from flask_socketio import SocketIO, emit

Expand Down Expand Up @@ -273,6 +277,7 @@ def update_turk(turk_id: str, task_type: str, new_list_type: str, prev_list_type
else:
emit(DASHBOARD_EVENT.UPDATE_TURK.value, 200)


@socketio.on(DASHBOARD_EVENT.UPDATE_TURK_LIST_TO_SYNC.value)
def update_turk_list():
"""
Expand All @@ -284,5 +289,6 @@ def update_turk_list():
update_turk_list_to_sync()
emit(DASHBOARD_EVENT.UPDATE_TURK_LIST_TO_SYNC.value, 200)


if __name__ == "__main__":
socketio.run(app)