membership-requests [#855]: waiting flow: add community-membership-request discussion page #2757
Annotations
2 errors
invenio_app_rdm/communities_ui/views/communities.py#L1
Black format check
--- /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/communities_ui/views/communities.py 2024-07-19 19:00:13.366100+00:00
+++ /home/runner/work/invenio-app-rdm/invenio-app-rdm/invenio_app_rdm/communities_ui/views/communities.py 2024-07-19 19:03:56.634194+00:00
@@ -37,14 +37,12 @@
# e.g Settings tab
permissions=permissions,
active_community_header_menu_item="search",
endpoint=endpoint.format(pid_value=community.to_dict()["id"]),
associated_request_id=(
- members_service.get_pending_request_id_if_any(
- g.identity.id, community.id
- )
- )
+ members_service.get_pending_request_id_if_any(g.identity.id, community.id)
+ ),
)
@pass_community(serialize=True)
def communities_home(pid_value, community, community_ui):
@@ -102,11 +100,10 @@
"hits"
]
members_service = current_communities.service.members
-
return render_community_theme_template(
"invenio_communities/details/home/index.html",
theme=community_ui.get("theme", {}),
community=community_ui,
permissions=permissions,
@@ -114,11 +111,11 @@
metrics=metrics,
associated_request_id=( # in case public
members_service.get_pending_request_id_if_any(
g.identity.id, community.id
)
- )
+ ),
)
@pass_community(serialize=True)
def community_static_page(pid_value, community, community_ui, **kwargs):
@@ -139,9 +136,8 @@
theme=community_ui.get("theme", {}),
page=page,
community=community_ui,
permissions=permissions,
associated_request_id=( # in case public
- members_service.get_pending_request_id_if_any(
- g.identity.id, community.id)
- )
+ members_service.get_pending_request_id_if_any(g.identity.id, community.id)
+ ),
)
|
|
This job failed
Loading