Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 10, 2021
2 parents aab6af9 + d907a3a commit f95c519
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ FILES = \
project-settings/leaf-type-edit.js \
project-settings/state-type-edit.js \
project-settings/membership-edit.js \
project-settings/version-edit.js \
project-settings/versions-edit.js \
project-settings/project-settings.js \
annotation/annotation-breadcrumbs.js \
annotation/lock-button.js \
Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ echo "Installing pip packages."
pip3 install --upgrade pip
pip3 install setuptools
pip3 install /tmp/*.whl pandas opencv-python pytest pyyaml playwright pytest-playwright
export PATH=$PATH:$HOME/.local/bin:/snap/bin
playwright install

# Install tator.
Expand Down
8 changes: 4 additions & 4 deletions main/rest/_annotation_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ def _get_annotation_psql_queryset(project, filter_ops, params, annotation_type):
if after is not None:
qs = qs.filter(pk__gt=after)

if exclude_parents:
parent_set = Localization.objects.filter(pk__in=Subquery(qs.values('parent')))
qs = qs.difference(parent_set)

# TODO: Remove modified parameter
qs = qs.exclude(modified=False)

qs = get_attribute_psql_queryset(qs, params, filter_ops)

if exclude_parents:
parent_set = Localization.objects.filter(pk__in=Subquery(qs.values('parent')))
qs = qs.difference(parent_set)

# Coalesce is a no-op that prevents PSQL from using the primary key index for small
# LIMIT values (which results in slow queries).
if exclude_parents or (stop is None):
Expand Down
4 changes: 1 addition & 3 deletions main/static/js/components/inputs/feature/checkbox-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ class CheckboxSet extends TatorElement {
}

_newInput(item){
console.log(item.id);
console.log(item.name);
let checkbox = document.createElement("checkbox-input");
checkbox.setAttribute("name", `${item.name}`);
if (this.type != undefined) {
Expand Down Expand Up @@ -151,7 +149,7 @@ class CheckboxSet extends TatorElement {
this._inputs.splice(idx, 1);
checkbox.remove()
const inputWrapper = this._inputDiv.children[idx];
console.log(inputWrapper);
// console.log(inputWrapper);
this._inputDiv.removeChild(inputWrapper);

return true;
Expand Down
5 changes: 4 additions & 1 deletion main/static/js/project-settings/type-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class TypeForm extends TatorElement {
// Loading spinner
this.loading = new LoadingSpinner();
this._shadow.appendChild(this.loading.getImg());

// Init hide attributes
this._hideAttributes = false;
}

_init({ data, modal, sidenav, versionListHandler, mediaListHandler }) {
Expand Down Expand Up @@ -79,7 +82,7 @@ class TypeForm extends TatorElement {
const sectionForm = await this._getSectionForm(this.data);
this.typeFormDiv.appendChild(sectionForm);

if (typeof this._hideAttributes !== "undefined" && !this._hideAttributes) {
if (typeof this._hideAttributes !== "undefined" && this._hideAttributes == false) {
this.typeFormDiv.appendChild(this._getAttributeSection());
}

Expand Down

0 comments on commit f95c519

Please sign in to comment.