Skip to content

Show image.name fix#4540

Merged
jburel merged 5 commits intoome:developfrom
will-moore:show_image.name_fix
Apr 26, 2016
Merged

Show image.name fix#4540
jburel merged 5 commits intoome:developfrom
will-moore:show_image.name_fix

Conversation

@will-moore
Copy link
Copy Markdown
Member

This fixes a lot of "show" functionality that was broken with the new jsTree in 5.2.x as noticed in #4534 (comment)

To test:

  • check that all the examples in OMERO.web show extensions (develop) #2611 are working, that urls load and select the specified items.
  • Select multiple wells in Plate, copy link url, paste in browser and check that it loads and selects the same wells.
  • Repeat for multiple Images in a Dataset

I will also add Robot tests to this PR...

@will-moore will-moore mentioned this pull request Mar 24, 2016
@will-moore
Copy link
Copy Markdown
Member Author

@pwalczysko
Copy link
Copy Markdown
Member

The first three commands from Chris's PR do not work on cowfish connected to eel-merge

/webclient/?show=project.id-1
/webclient/?show=project.name-foo
/webclient/?show=tag.textValue-bar

The constructed urls look like
https://cowfish.op...py.org/merge/webclient/?show=project.id-1207 - this Project exists, it belongs to the user who is logged in. Despite this, I am getting 404. (note that I replaced in the address above the word openmicroscopy.
The same experience with the subsequent two commands.
Will stop here - it seems something is seriously wrong here.
Interestingly, the "default" url to find the project when taken from the UI itself by clicking onto the chain link works fine.

@will-moore
Copy link
Copy Markdown
Member Author

Have now fixed the show=tag.textValue-foo in #4534 so all should be working now.

@pwalczysko
Copy link
Copy Markdown
Member

Works as expected.

@jburel jburel merged commit 6cf771b into ome:develop Apr 26, 2016
@jburel jburel added this to the 5.2.3 milestone May 4, 2016
except IncorrectMenuError:
pass
# Show parameter will be well-1|well-2
show = request.REQUEST.get('show')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@will-moore request.REQUEST is counted as bug now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aleksandra-tarkowska: is there a way to flag these e.g. in the Travis build?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grep ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly although using grep will not scale as you need to maintain a list of deprecated features/bugs. Browsing quickly, it might be possible long-term to pass a -Werror flag to python manage.py test which will fail on deprecation errors. This is not critical and might be easier to implement if we re-architecture the components but worth keeping in mind.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write a flake check and use "# noqa" in the deprecated cases?

@will-moore will-moore deleted the show_image.name_fix branch February 18, 2019 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants