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

Rename figure #251

Merged
merged 9 commits into from
Jan 16, 2018
Merged

Rename figure #251

merged 9 commits into from
Jan 16, 2018

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Nov 3, 2017

See https://trello.com/c/dfdmk6Pk/81-rename-figure

To test:

  • For a previously saved figure, click on the name to edit it.
  • Should be shown an input field to update name
  • When focus is lost from input (click elsewhere) or you hit Enter, the name should be updated in the browser (page title (window/tab-name) changes) and input field is replaced again by new name
  • This enables the Save button (if not previously enabled) and is added to the Undo/Redo queue.
  • When figure is saved and page refreshed, new name should be preserved and File > Open should show new figure name in list.
  • Test that unicode names and HTML characters <script>, double quotes etc are handled without errors.
  • For new unsaved files, can click where the name should be and insert new name. When you save this will be the default option for saved name.

@bramalingam
Copy link
Member

Tried all the workflows and everything works as expected.

Not sure if this is a bug but,

  1. Try renaming a file , save button gets enabled. After I save the file, I did cmd+z (undo), and the name of the file went back to the old file name. But the save button did not get enabled. I would have expected it to be enabled, if the undo operation was switching the name back to the old file name.

@will-moore
Copy link
Member Author

@bramalingam This seems to be working for me now... Can you show me?

@bramalingam
Copy link
Member

Hmmmm, seems to be working now! And in safari as well, not sure how it did not work on Friday.

@will-moore
Copy link
Member Author

Yeah, I seem to remember when you first reported it that it wasn't working for me, but seems fine now both locally and on web-dev-merge.

@will-moore
Copy link
Member Author

If this is good to merge, then it would be great to merge it since the Travis fix is needed to get all other PRs passing. @jburel

@jburel jburel added this to the 3.2.0 milestone Nov 20, 2017
@will-moore will-moore mentioned this pull request Nov 21, 2017
@jburel
Copy link
Member

jburel commented Nov 23, 2017

instead of capping flake8
you should declare the expected exception in the script
That's what I had to do in this PR
ome/omero-scripts#136

l.parent = omero.model.ImageI(i.getId(), False)
l.child = omero.model.FileAnnotationI(file_id, False)
links.append(l)
lnk = omero.model.ImageAnnotationLinkI()
Copy link
Member

Choose a reason for hiding this comment

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

link might be ok :-)

@snoopycrimecop
Copy link
Member

snoopycrimecop commented Nov 24, 2017

Conflicting PR. Removed from build FIGURE-merge#587. See the console output for more details.
Possible conflicts:

--conflicts Conflict resolved in build FIGURE-merge#624. See the console output for more details.

@jburel
Copy link
Member

jburel commented Dec 11, 2017

Discussed today with @will-moore, he will extract the flake8 related commits out of this PR

@will-moore will-moore mentioned this pull request Dec 11, 2017
@will-moore
Copy link
Member Author

Cherry-picked flake8 commits from above to #256.
I think I'll close this until that is merged, since it may otherwise cause merge conflicts.

@will-moore will-moore closed this Dec 11, 2017
@will-moore
Copy link
Member Author

@jburel I just found this PR which was tested but not merged before. Good to include this in next release.

@jburel
Copy link
Member

jburel commented Jan 12, 2018

Let's do a final review with the next build

@will-moore
Copy link
Member Author

Added this to Help PR: ome/ome-help#284

@jburel
Copy link
Member

jburel commented Jan 15, 2018

When figure is saved and page refreshed, new name should be preserved and File > Open should show new figure name in list.

The list was not refreshed after saving.
I was expecting the list to be updated without having to click the refresh button

@jburel
Copy link
Member

jburel commented Jan 15, 2018

Entering ```<<<testfor example for the name does not work. When I press enter only<<`` is kept

@will-moore
Copy link
Member Author

@jburel Pushed 2 fixes.

@jburel
Copy link
Member

jburel commented Jan 16, 2018

Works nicely now
Thanks.

@jburel jburel merged commit 26a1734 into ome:master Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants