Skip to content

support v2 SearchService - #191

Open
dnoneill wants to merge 1 commit into
IIIF-Commons:mainfrom
dnoneill:main
Open

dnoneill wants to merge 1 commit into
IIIF-Commons:mainfrom
dnoneill:main

Conversation

@dnoneill

Copy link
Copy Markdown

SearchService2 doesn't have a profile so I want to be able to do this manifest.getService('searchservice2'). This allows the ability to get a service based on type.

@codesandbox

codesandbox Bot commented Sep 15, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web Editor • VS Code • Insiders

Open Preview

@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.

@dnoneill, the build was failing here due to an unrelated issue. Do you mind merging the latest dev branch into your branch here to get the build passing again?

SearchService2 doesn't have a profile so I want to be able to do this manifest.getService('searchservice2'). This allows the ability to get a service based on type.
@dnoneill

Copy link
Copy Markdown
Author

@demiankatz done

@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.

Thanks, @dnoneill!

Do you need us to expedite a release so you can take advantage of this improvement? I'm a bit short on time at the moment, but I can talk to the team and see if anyone is available if there's an urgent need to get this out quickly.

@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.

Oh, I approved too soon -- Typescript is unhappy about this:

src/Utils.ts(1044,9): error TS2367: This comparison appears to be unintentional because the types 'IIIFResourceType' and 'ServiceProfile' have no overlap.

I think some more work is needed to get the types into a state where this will build without errors. Please let me know if you need help figuring out the specifics!

@demiankatz

Copy link
Copy Markdown
Contributor

It probably would be wise to add a test case for the new situation as well, to be sure things are working as expected.

This branch has not been deployed

No deployments
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.

2 participants