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

How to handle IIIF v3 and v4 recipes #576

Open
glenrobson opened this issue Jan 17, 2025 · 9 comments
Open

How to handle IIIF v3 and v4 recipes #576

glenrobson opened this issue Jan 17, 2025 · 9 comments

Comments

@glenrobson
Copy link
Member

How should we handle the introduction of IIIF version 4? Should we:

  • Re-write all recipes to have both v3 and v4?
  • Should we have one recipe with two examples. Cover difference in recipe?
  • Other options
@glenrobson
Copy link
Member Author

Another option is to stop writting v3 recipes at a point and then start a new v4 cookbook. Gradually start converting v3 recipes and link between 3 & 4.

@stephenwf
Copy link
Contributor

Is there a draft of V4, or some expected breaking changes?

If the differences are likely to be very minimal, we could have tabs like this for the JSON examples:
Image

@mathewjordan
Copy link
Member

Is there a draft of V4, or some expected breaking changes?

If the differences are likely to be very minimal, we could have tabs like this for the JSON examples: Image

This approach is very logical if use cases remain the same.

@triplingual
Copy link
Contributor

The tabs idea is good, but I don't know how it would accommodate textual changes. Since the cookbook readership is assumed to range from total newbies to expert users, we may need to call out a small difference or want to go a little deeper on the technical consequences of a situation where there are choices. As well, we do talk about viewers/clients sometimes and will want to be sure that text mentioning them as a class or as specifics is clear for versions. V3 recipes will need maintenance, but that maintenance might diverge from V4 creation and maintenance.

@triplingual
Copy link
Contributor

(Separate, but might be worth putting into this Issue: Maybe this moment is the time to break with UV v3 and incorporate testing recipes with UV v4 as part of the prezi 4 transforms?)

@kirschbombe
Copy link
Contributor

I think this will very much depend on whether there are any foundational changes that would impact our current recipes. I don't think there will be much, but if nothing changes for a recipe, then we might be able to simply label it v3 + v4. Where there are breaking changes, I think it makes sense to keep the two recipes separate as it could get confusing to cover both in the same recipe. Of course, some recipes/use cases will be v4 only. v3 will still be in use for the foreseeable future, so we shouldn't overwrite/update existing recipes.

@glenrobson
Copy link
Member Author

Should we add a section in v4 recipes to say the changes with v3?

Not all recipes will have a version in 3 e.g. 3d

Maybe a warning or just where the different is subtle and could be missed.

We didn't do this for v2 or v3.

Can we automate the diff between recipes?

@ksclarke
Copy link
Contributor

I think a section in v4 recipes, highlighting what the differences are with v3, would be useful and that it's okay to not have it when not relevant (e.g., 3d). If you wanted to be explicit, you could make a note that this is a new feature so no corresponding v3 recipe exists, but I don't think that's necessary, personally.

@sdellis
Copy link

sdellis commented Jan 24, 2025

Given that collections and manifests must support the presentation of referenced resources that could be in any version, yet presented as a single entity, I think it would be most helpful to have recipes and fixtures for all the API versions.

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

No branches or pull requests

7 participants