Skip to content

Commit

Permalink
Release/0.9.0.post3 fixes (HumanSignal#549)
Browse files Browse the repository at this point in the history
* Fix styles on storage errors

* Fix ImportState. Update DM & LSF

* Change LS version

* Fix data type for config values
  • Loading branch information
makseq authored Jan 15, 2021
1 parent aea8952 commit 707223a
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 592 deletions.
2 changes: 1 addition & 1 deletion label_studio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
package_name = 'label-studio'

# Package version
__version__ = '0.9.0-2'
__version__ = '0.9.0.post3'
14 changes: 7 additions & 7 deletions label_studio/data_import/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,10 @@ def __init__(self, filelist=(), tasks=(), project=None, **kwargs):

# these are actual db columns
self.id = 0
self.reset()
self.project = project
self.filelist = filelist
self.tasks = tasks
self.found_formats = {}
self.selected_formats = None
self.selected_objects = None
self.columns_to_draw = []
self.data_keys = []
self.files_as_tasks_list = {'type': None, 'selected': True}
self.show_files_as_tasks_list = None
self.preview_size = 10

self._validator = None
Expand All @@ -51,10 +45,16 @@ def __init__(self, filelist=(), tasks=(), project=None, **kwargs):
self._update()

def reset(self):
self.project = None
self.filelist = ()
self.tasks = ()
self.found_formats = {}
self.selected_formats = None
self.selected_objects = None
self.columns_to_draw = []
self.data_keys = []
self.files_as_tasks_list = {'type': None, 'selected': True}
self.show_files_as_tasks_list = None

def serialize(self):
return {
Expand Down
1 change: 0 additions & 1 deletion label_studio/data_manager/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ def predictions_to_completions(project, params, items):
return {'response_code': 200}



def next_task(project, params, items):
""" Generate next task for labeling stream
Expand Down
2 changes: 1 addition & 1 deletion label_studio/data_manager/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_all_columns(project):
data_types.update(project.data_types.items())
# all data types from import data
if project.derived_all_input_schema:
data_types.update({key: 'Unknown' for key in project.derived_all_input_schema})
data_types.update({key: 'Unknown' for key in project.derived_all_input_schema if key not in data_types})

# remove $undefined$ if there is one type at least in labeling config, because it will be resolved automatically
if len(project.data_types) > 0:
Expand Down
4 changes: 2 additions & 2 deletions label_studio/data_manager/templates/storages_old.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<!-- Fields -->
<div class="ui field"
:class="{disabled: storage.type_loading, error: field.name in storage.errors}"
:class="{disabled: storage.type_loading}"
v-for="field in storage.fields"
:style="{display: showStorageField(field.name, storage) ? 'block': 'none'}"> <!-- TODO: back create_local_copy in next releases -->

Expand All @@ -48,7 +48,7 @@

<!-- Errors -->
<div class="ui bulleted list" v-if="field.name in storage.errors">
<div class="ui item error" v-for="error in storage.errors[field.name]">
<div class="ui item" style="color: #AA0000" v-for="error in storage.errors[field.name]">
<span class="ui text">{{ error }}</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion label_studio/static/dm/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion label_studio/static/dm/js/main.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions label_studio/static/dm/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"message": "Fix grid items height with custom DisplayType",
"commit": "d62ee7e4952238782935272e9953a7db95137722",
"message": "Exclude AudioPlus from cell views as userSelectable = false",
"commit": "d7b7536042d52fa7cb6611db03633131784bf36a",
"branch": "feature/dm-sdk",
"date": "2021-01-14T15:32:26Z"
"date": "2021-01-14T20:21:24Z"
}
2 changes: 1 addition & 1 deletion label_studio/static/editor/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion label_studio/static/editor/css/main.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions label_studio/static/editor/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"message": "Change skipped icon to Stop like in Data Manager",
"commit": "72ae28d31eac8e2551185c6c88421e9fe775bde1",
"message": "Fix color of skipped icon",
"commit": "e477248be151a06006ed7790eda6ed6d36af089f",
"branch": "master",
"date": "2021-01-11T22:10:22Z"
"date": "2021-01-12T20:07:36Z"
}
571 changes: 2 additions & 569 deletions label_studio/static/js/build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion label_studio/static/js/build/index.js.map

Large diffs are not rendered by default.

0 comments on commit 707223a

Please sign in to comment.