Skip to content

Commit

Permalink
📦 release: v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Mar 21, 2024
1 parent bad9e5e commit 06fd2e5
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 11 deletions.
22 changes: 21 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
..
This file is part of Invenio.
Copyright (C) 2015-2023 CERN.
Copyright (C) 2015-2024 CERN.
Invenio 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 @@ -9,6 +9,26 @@
Changes
=======

Version 4.0.0 (released 2024-03-21)

- Major release because of fundamental change in the way the module is
expected to be used for registering pages.
- global: remove `has_custom_view` model field
- views: allow passing Jinja context to `render_page`
- ext: remove finalize_app usage
- The previous design of the module had some major usability issues:
- The assumption that we have views that are dynamically registered
without the need to redeploy/reload the application for code
changes is fundamentally flawed. In reality order for such views
to be accessible/discoverable, one has to be able to reference
them in Jinja templates, which in turn means one has to make code
changes.
- The way we were registering page views, required having a
connection to an already initialized database. This imposes having
to perform checks at application initialization that go against
well-established principles of the Flask/Invenio app lifecycle.
- fix: before_app_first_request deprecation

Version 3.3.0 (released 2024-02-21):
------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions invenio_pages/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2023 CERN.
# Copyright (C) 2015-2024 CERN.
#
# Invenio 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 @@ -11,6 +11,6 @@
from .ext import InvenioPages, InvenioPagesREST
from .records.models import PageList, PageModel

__version__ = "3.3.0"
__version__ = "4.0.0"

__all__ = ("__version__", "InvenioPages", "InvenioPagesREST", "PageModel", "PageList")
2 changes: 1 addition & 1 deletion invenio_pages/ext.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2022 CERN.
# Copyright (C) 2015-2024 CERN.
# Copyright (C) 2023-2024 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
Expand Down
2 changes: 1 addition & 1 deletion invenio_pages/records/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2022 CERN.
# Copyright (C) 2015-2024 CERN.
#
# Invenio 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 Down
2 changes: 1 addition & 1 deletion invenio_pages/services/schemas.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2023 CERN.
# Copyright (C) 2023-2024 CERN.
# Copyright (C) 2023 KTH Royal Institute of Technology.
#
# Invenio-Pages is free software; you can redistribute it and/or modify it
Expand Down
2 changes: 1 addition & 1 deletion invenio_pages/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2022 CERN.
# Copyright (C) 2015-2024 CERN.
# Copyright (C) 2023-2024 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
Expand Down
2 changes: 1 addition & 1 deletion tests/records/test_records.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2022 CERN.
# Copyright (C) 2015-2024 CERN.
#
# Invenio 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 Down
2 changes: 1 addition & 1 deletion tests/resources/test_resources.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2022 CERN.
# Copyright (C) 2022-2024 CERN.
#
# Invenio 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 Down
2 changes: 1 addition & 1 deletion tests/services/test_services.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2022 CERN.
# Copyright (C) 2022-2024 CERN.
# Copyright (C) 2023 KTH Royal Institute of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
Expand Down
2 changes: 1 addition & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2022 CERN.
# Copyright (C) 2015-2024 CERN.
#
# Invenio 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 Down

0 comments on commit 06fd2e5

Please sign in to comment.