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

Check if the showcase is still available before validating #175

Open
kovalch opened this issue Jan 23, 2025 · 0 comments
Open

Check if the showcase is still available before validating #175

kovalch opened this issue Jan 23, 2025 · 0 comments

Comments

@kovalch
Copy link

kovalch commented Jan 23, 2025

Would it possible to add an additional check for the existing of the showcase here, something like:
`

check if showcase_id is in context or is valid

if 'package' not in context or not context['package']:
    log.warning("Showcase is not available. Showcase ID: {0}".format(
        data_dict.get('showcase_id')))
    return []

`

We have the situations that the showcase was deleted and was not reindexed, so we still get the deleted-showcase id here and try to validate it

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

1 participant