-
Notifications
You must be signed in to change notification settings - Fork 154
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
Priority mode for Collections vs. Child Links #263
Comments
It depends on the API implementation, I've also examples where the opposite should happen or they are meant to be merged. Nothing in the API spec defines a priority as far as I know. So by default I can only merge child links and collections so that all content is potentially shown. We could probably define a config option for it as a new feature, which lets you define a priority. New features must be funded though. |
I've created radiantearth/stac-api-spec#388 as this might be something for the general API spec, too. |
I understand that both things might happen. |
The reason is simple: The Collections conformance class requires a data link, you are actually violating the specification by providing a conformance class but omitting the data link. STAC Browser is meant to be spec compliant. |
Ah ok, in fact this Link relations wasn't really clear to me when I read it. Now I understand better what the specification means. So mainly we've always been returning a json non-STAC compliant, because there is no 'data' link inside, and I cannot add it or it will screw up my home page. At the moment we don't have specific fundings that we could use for this, but let's see in the future. |
You could support radiantearth/stac-api-spec#388 which makes it more likely to have the feature land in STAC Browser, of course. |
Hmm ok this could be an idea. Let me first think better of what to suggest for the specs. Not too clear now how to handle all 3 scenarios. |
Please check PR #270 |
Putting here the link to the tests done to the new functionality. |
I have the following landing page json response:
The 'data' link returns the full list of collections in my catalog, while the 'child' links point to subcatalogs that permit to organize my catalog in a more structured way as proposed by STAC guidelines. So instead than having 400 collections at home level (impossible to read), I have subdivided collections by subcatalogs so that each subcatalog has maximum 20 collections.
If I do not add the link 'data' then I get what I expect, so a clean home page with browsable subcatalogs:

After adding the data link, the child links are ignored and 401 collections are showed in home:

I could decide not to use the 'data' link but that one is needed for some functionalities (e.g. to load the list of collections in the search page).
From my point of view, if 'child' links exist they should have the priority over 'data' ones. What do you think?
The text was updated successfully, but these errors were encountered: