subcommunities: check for parent children allow #2841
Annotations
2 errors and 3 warnings
invenio_communities/subcommunities/services/errors.py#L1
Black format check
--- /home/runner/work/invenio-communities/invenio-communities/invenio_communities/subcommunities/services/errors.py 2024-06-27 16:23:15.285052+00:00
+++ /home/runner/work/invenio-communities/invenio-communities/invenio_communities/subcommunities/services/errors.py 2024-06-27 16:26:06.047344+00:00
@@ -4,10 +4,12 @@
#
# Invenio-communities is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""Subcommunities service errors."""
+
class SubCommunityError(Exception):
"""Base error for subcommunities service."""
+
class ParentChildrenNotAllowed(SubCommunityError):
"""Parent community does not accept subcommunities."""
|
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
invenio_communities/assets/semantic-ui/js/invenio_communities/administration/components/RecordResourceActions.js#L95
Array.prototype.map() expects a value to be returned at the end of arrow function
|
This job failed
Loading