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

Errors: Add CommunityNotSelectedError for conditional check on config #595

Conversation

sakshamarora1
Copy link

@@ -207,4 +209,16 @@ class ErrorHandlersMixin:
description="Uploading selected files will result in exceeding the max amount per record.",
)
),
CommunityNotSelectedError: create_error_handler(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this module is not aware of communities (invenio-communities depends on invenio-records-resources, not the other way around) so this handler should be declared either in communities or in rdm-records (a module that is aware both of the record and communities is the correct place)

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.

Require a community when uploading
2 participants