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

wip: check new linter feature #1942

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Copyright (C) 2020-2024 CERN.
# Copyright (C) 2020 Northwestern University.
# Copyright (C) 2025 Graz University of Technology.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -27,7 +28,7 @@ on:

jobs:
Python:
uses: inveniosoftware/workflows/.github/workflows/tests-python.yml@master
uses: utnapischtim/workflows/.github/workflows/tests-python.yml@linter

JS:
uses: inveniosoftware/workflows/.github/workflows/tests-js.yml@master
Expand Down
10 changes: 8 additions & 2 deletions invenio_rdm_records/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2019-2024 CERN.
# Copyright (C) 2019-2021 Northwestern University.
# Copyright (C) 2022 Universität Hamburg.
# Copyright (C) 2023-2024 Graz University of Technology.
# Copyright (C) 2023-2025 Graz University of Technology.
# Copyright (C) 2023 TU Wien.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
Expand All @@ -13,7 +13,7 @@

from warnings import warn

from flask import Blueprint
from flask import Blueprint, request
from flask_iiif import IIIF
from flask_principal import identity_loaded
from invenio_records_resources.resources.files import FileResource
Expand Down Expand Up @@ -214,6 +214,12 @@ def init_services(self, app):

def init_resource(self, app):
"""Initialize resources."""

@app.before_request
def before_request():
if "files" in request.path:
request.max_content_length = 10 ** 10

self.records_resource = RDMRecordResource(
service=self.records_service,
config=RDMRecordResourceConfig.build(app),
Expand Down
Loading