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

v2index/sample shows empty list #805

Closed
yangcao77 opened this issue Mar 23, 2022 · 0 comments · Fixed by devfile/registry-support#110
Closed

v2index/sample shows empty list #805

yangcao77 opened this issue Mar 23, 2022 · 0 comments · Fixed by devfile/registry-support#110
Assignees
Labels
area/registry Devfile registry for stacks and infrastructure kind/bug Something isn't working

Comments

@yangcao77
Copy link
Contributor

/kind bug

Which area this bug is related to?

/area registry

What versions of software are you using?

Operating System:

Go Pkg Version:

Bug Summary

Describe the bug:

v2index/sample shows empty list

To Reproduce:

registry.devfile.io/v2index/samples

Expected behavior

should show samples index

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable.

Additional context

Any workaround?

Suggestion on how to fix the bug

it is because maxSchemaVersion and minSchemaVersion filters are applied without checking if the two values are provided.
and in order to apply the filter, it needs to read the version list from the index. but the current extraDevfileEntries.yaml is still with the old index schema, and does not include the version list. In this case, we should still show the old index schema content.

@yangcao77 yangcao77 self-assigned this Mar 23, 2022
@openshift-ci openshift-ci bot added kind/bug Something isn't working area/registry Devfile registry for stacks and infrastructure labels Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/registry Devfile registry for stacks and infrastructure kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant