Skip to content

Address range highlighting bug (Fixes #955)#972

Merged
demiankatz merged 1 commit into
UniversalViewer:devfrom
nicolasfranck:patch-2
Oct 21, 2024
Merged

Address range highlighting bug (Fixes #955)#972
demiankatz merged 1 commit into
UniversalViewer:devfrom
nicolasfranck:patch-2

Conversation

@nicolasfranck

@nicolasfranck nicolasfranck commented Mar 15, 2024

Copy link
Copy Markdown
Contributor

Fixes #955

As noted in the issue, I do not know if this breaks other stuff,
i.e. data that is not shown in openseadragon.

@codesandbox

codesandbox Bot commented Mar 15, 2024

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel

vercel Bot commented Mar 15, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 10:04am

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@demiankatz

Copy link
Copy Markdown
Contributor

Thanks, @nicolasfranck. I see that selectCurrentTreeNode() contains a 4-year-old TODO comment which implies that the eventual plan was to eliminate the need for two separate select methods entirely... so if that refactoring eventually occurs, your proposed change would need to be undone. But if it's fixing problems in the meantime, it seems relatively harmless, given that it's updating the tree node using the appropriate method for the event that caused the tree node to change initially. However, I see that there are several other calls to selectCurrentTreeNode in other parts of the file, and I'm not sure if these might still have bugs related to ranges. If they do, those bugs might be harder to fix.

In any case, bottom line: it seems unlikely to me that this fix makes things worse or causes new breakages, but I'm not sure if it fixes every problem related to the underlying problem. I'd love input from @edsilv if he has any memory of the context of this, but I'd be reasonably comfortable with approving and merging this fix if you need it resolved before Ed has a chance to respond. Feel free to follow up here if you need further action from my end.

@alexrostronbl

Copy link
Copy Markdown

Danny and Alex have started to test this - thanks

@alexrostronbl

alexrostronbl commented Oct 18, 2024

Copy link
Copy Markdown

Tested using the manifest that was not working when choosing 'rang 4' from the index using this URL: https://universalviewer-git-fork-nicolasfranck-patch-2-mnemoscene.vercel.app/#?xywh=0%2C-86%2C10937%2C7389&cv=4&rid=https%3A%2F%2Fadore.ugent.be%2FIIIF%2Fmanifests%2Frange-test%2Franges%2Frange-test%253AR.4&iiifManifestId=https%3A%2F%2Fadore.ugent.be%2FIIIF%2Fmanifests%2Frange-test

Evidence:
Previously showed this when selecting 'range 4':

image

fix now shows 'range 4' is highlighted in blue
image

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm going to go ahead and approve this given the test evidence presented. I won't hit the merge button until @alexrostronbl confirms that all testing is complete, however. Please let me know!

@demiankatz demiankatz changed the title Fix #955 Address range highlighting bug (Fixes #955) Oct 18, 2024
@alexrostronbl

Copy link
Copy Markdown

Hi @demiankatz I can confirm that all testing is complete for this issue so please merge. I don't seem to have rights to do an official approval if this is needed - thanks

@demiankatz demiankatz merged commit bda2b8b into UniversalViewer:dev Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Community Sprint COMPLETED

Development

Successfully merging this pull request may close these issues.

3 participants