Compare commits

...

4 Commits

Author SHA1 Message Date
Mojib Wali
3f2cf9f800 v0.8.2 2022-03-03 10:12:43 +01:00
Mojib Wali
db0c7a4e21 config: introduced in v8 of invenioRDM 2022-03-03 10:03:20 +01:00
Mojib Wali
91464bbd7c v0.8.1 2022-02-28 15:05:59 +01:00
Mojib Wali
d7fe2926c7 gloabl: changes to pre-v8
* config: set samesite cookie to strict
* dep: bump in base
2022-02-28 14:55:20 +01:00
4 changed files with 32 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
.. ..
Copyright (C) 2020 - 2021 Graz University of Technology. Copyright (C) 2020 - 2022 Graz University of Technology.
invenio-config-tugraz is free software; you can redistribute it and/or invenio-config-tugraz is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
@@ -7,6 +7,15 @@
Changes Changes
======= =======
Version 0.8.2 (released 2022-03-03)
- config: new introduced to v8 of invenioRDM
Version 0.8.1 (released 2022-02-28)
- config: set samesite cookie to strict
- dep: bump in base dependencies
Version 0.8.0 (released 2022-02-09) Version 0.8.0 (released 2022-02-09)
- dep: bump rdm-records version - dep: bump rdm-records version

View File

@@ -239,6 +239,13 @@ will be generated randomly.
DATACITE_FORMAT = "{prefix}/{id}" DATACITE_FORMAT = "{prefix}/{id}"
"""Customize the generated DOI string.""" """Customize the generated DOI string."""
DATACITE_DATACENTER_SYMBOL = ""
""""The OAI-PMH server's metadata format oai_datacite
that allows you to harvest record from InvenioRDM in DataCite XML needs
to be configured with your DataCite data center symbol.
This is only required if you want your records to be harvestable in DataCite XML format.
"""
# Invenio-app-rdm # Invenio-app-rdm
# ========================= # =========================
# See https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/config.py # See https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/config.py
@@ -253,6 +260,12 @@ If the value is callable, its return value will be used for the field
(e.g. lambda/function for dynamic calculation of values). (e.g. lambda/function for dynamic calculation of values).
""" """
APP_RDM_DEPOSIT_FORM_AUTOCOMPLETE_NAMES = "search"
"""Enable autocompleting names search field for creators/contributors.
(e,g, "searc_only" or "off")
"""
SQLALCHEMY_ECHO = False SQLALCHEMY_ECHO = False
"""Enable to see all SQL queries.""" """Enable to see all SQL queries."""
@@ -324,6 +337,10 @@ RATELIMIT_AUTHENTICATED_USER = "25000 per hour;1000 per minute"
RATELIMIT_GUEST_USER = "5000 per hour;500 per minute" RATELIMIT_GUEST_USER = "5000 per hour;500 per minute"
"""Increase defaults for guest users.""" """Increase defaults for guest users."""
SESSION_COOKIE_SAMESITE = 'Strict'
"""Sets cookie with the samesite flag to 'Strict' by default."""
# OAI-PMH # OAI-PMH
# ======= # =======
# See https://github.com/inveniosoftware/invenio-oaiserver/blob/master/invenio_oaiserver/config.py # See https://github.com/inveniosoftware/invenio-oaiserver/blob/master/invenio_oaiserver/config.py

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Copyright (C) 2020-2021 Graz University of Technology. # Copyright (C) 2020-2022 Graz University of Technology.
# #
# invenio-config-tugraz is free software; you can redistribute it and/or # invenio-config-tugraz is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more # modify it under the terms of the MIT License; see LICENSE file for more
@@ -12,4 +12,4 @@ This file is imported by ``invenio_config_tugraz.__init__``,
and parsed by ``setup.py``. and parsed by ``setup.py``.
""" """
__version__ = "0.8.0" __version__ = "0.8.2"

View File

@@ -20,8 +20,8 @@ tests_require = [
] ]
# Should follow invenio-app-rdm # Should follow invenio-app-rdm
invenio_search_version = ">=1.4.1,<1.5.0" invenio_search_version = ">=1.4.2,<1.5.0"
invenio_db_version = ">=1.0.9,<1.1.0" invenio_db_version = ">=1.0.11,<1.1.0"
extras_require = { extras_require = {
"elasticsearch7": [f"invenio-search[elasticsearch7]{invenio_search_version}"], "elasticsearch7": [f"invenio-search[elasticsearch7]{invenio_search_version}"],
@@ -51,7 +51,7 @@ setup_requires = [
install_requires = [ install_requires = [
# keep this in sync with invenioRDM release # keep this in sync with invenioRDM release
"invenio-rdm-records>=0.34.4,<0.35.0", "invenio-rdm-records>=0.34.5,<0.35.0",
"invenio-cache>=1.1.0" "invenio-cache>=1.1.0"
] ]