Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #11960 (closed)

Opened 10 years ago

Closed 10 years ago

Insight shows all tags, Web tags view doesn't show tags with a namespace

Reported by: spli Owned by: atarkowska
Priority: minor Milestone: 5.0.1
Component: Web Version: 5.1.0-m0
Keywords: n.a. Cc: ux@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

As noted on https://github.com/openmicroscopy/openmicroscopy/pull/2056 From what I can tell Insight shows all tags, web is missing some in the tags view- does it ignore tags with namespaces?.

E.g. On trout, user-4, group read-write-1:

tag.id: 4567
tag.textValue: 'A'
tag.ns: createClassifierTagSet/35ef4c9c-2b87-11e3-9c72-14109fce13a3'

If this tag is attached to an image in insight it is listed in the General view, e.g. http://trout.openmicroscopy.org/webclient/?show=image-23116
but if you click on the tag ('A') it doesn't exist in the tags view.

If the idea is to avoid cluttering the UI with non-user tags then maybe you could do what flickr does with 'machine tags', which is to hide them behind a dropdown arrow. Or should Insight be hiding them instead?

Attachments (1)

Screen Shot 2014-03-31 at 13.22.56.png (57.1 KB) - added by wmoore 10 years ago.
Tag with namespace

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 years ago by spli

  • Milestone changed from 5.0.0 to 5.0.1

comment:2 Changed 10 years ago by jburel

  • Owner changed from web-team@… to atarkowska

Passing to Ola for investigation

comment:3 Changed 10 years ago by jburel

Any progress on that one?

Changed 10 years ago by wmoore

Tag with namespace

comment:4 Changed 10 years ago by wmoore

I just tried creating a Tag with namespace and it showed up in web OK (see screenshot: https://trac.openmicroscopy.org.uk/ome/attachment/ticket/11960/Screen%20Shot%202014-03-31%20at%2013.22.56.png).

And here's my code

# Create a new Dataset
# =================================================================
dataset = omero.model.DatasetI()
dataset.setName(rstring("New Dataset"))
dataset = conn.getUpdateService().saveAndReturnObject(dataset)
print "New dataset, Id:", dataset.getId().getValue()

dataset2 = omero.model.DatasetI()
dataset2.setName(rstring("New Dataset2"))
dataset2 = conn.getUpdateService().saveAndReturnObject(dataset2)
print "New dataset 2, Id:", dataset2.getId().getValue()


# How to annotate multiple Datasets
# =================================================================
# 1. you define objects you want to tag
dataset_list = [dataset, dataset2]

# 2. create a tag
tag = omero.model.TagAnnotationI()
tag.setTextValue(rstring("new tag"))
tag.setNs(rstring("test.web.tag.display.ns"))

# 3. build a list of links
link_list = list()
for ds in dataset_list:
    link = omero.model.DatasetAnnotationLinkI()
    link.setParent(ds)
    link.setChild(tag)
    link_list.append(link)

# 4. save the links to the server
conn.getUpdateService().saveArray(link_list)

Simon - do you see something different, or is this working now?

comment:5 Changed 10 years ago by atarkowska

This is cased by the query where we only expect

(ns is null or ns='')
Last edited 10 years ago by atarkowska (previous) (diff)

comment:6 Changed 10 years ago by spli

I've just tried this again and it's still present:
user-3, http://trout.openmicroscopy.org/merge/webclient/?show=image-9479
tag:textValue

t=omero.model.TagAnnotationI()
t.setNs(wrap('namespace'))
t.setTextValue(wrap('textValue'))
us=conn.getUpdateService()
t=us.saveAndReturnObject(t)
im=conn.getObject('image',9479)
link=omero.model.ImageAnnotationLinkI()
link.setParent(im._obj)
link.setChild(t)
link=us.saveAndReturnObject(link)

comment:7 Changed 10 years ago by atarkowska

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.65448 sec.)

We're Hiring!