Skip to content

Commit 10cd7d3

Browse files
pnicolliluca-bellenghicekk
authored
Make sure that the teaser block is not handled by the GenericResolveUIDDeserializer/Serializer (#133)
* Make sure that the teaser block is not handled by the GenericResolveUIDDeserializer/Serializer * remove tests for plone5 * fix zpretty ci * fix zpretty ci --------- Co-authored-by: Luca Bellenghi <lucabel@gmail.com> Co-authored-by: Andrea Cecchi <andrea.cecchi85@gmail.com>
1 parent 6c59dce commit 10cd7d3

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,17 @@ name: Tests
33
on:
44
push:
55
paths-ignore:
6-
- '**.md'
7-
- '**.rst'
6+
- "**.md"
7+
- "**.rst"
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
max-parallel: 4
1313
matrix:
14-
python: ["3.8", "3.9", "3.10", "3.11"]
15-
plone: ["52", "60"]
14+
python: ["3.10", "3.11"]
15+
plone: ["60"]
1616
tz: ["UTC", "Europe/Rome"]
17-
exclude:
18-
- python: "3.8"
19-
plone: "60"
20-
- python: "3.9"
21-
plone: "52"
22-
- python: "3.10"
23-
plone: "52"
24-
- python: "3.11"
25-
plone: "52"
2617
steps:
2718
- uses: actions/checkout@v3
2819
- name: Cache eggs
@@ -63,9 +54,9 @@ jobs:
6354
needs: build
6455
runs-on: ubuntu-latest
6556
steps:
66-
- name: Finished
67-
run: |
68-
pip install --upgrade coveralls
69-
coveralls --service=github --finish
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
- name: Finished
58+
run: |
59+
pip install --upgrade coveralls
60+
coveralls --service=github --finish
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/zpretty.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
python-version: [3.8]
9+
python-version: [3.11]
1010

1111
steps:
1212
# git checkout
@@ -19,7 +19,7 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020

2121
# python cache
22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v3
2323
with:
2424
path: ~/.cache/pip
2525
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Changelog
22
=========
3+
5.5.9 (xxxx-xx-xx)
4+
------------------
5+
6+
- Make sure that the teaser block is not handled by the GenericResolveUIDDeserializer/Serializer.
7+
[lucabel]
38

49
5.5.9 (unreleased)
510
------------------

src/redturtle/volto/restapi/deserializer/blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"calendar",
1717
"searchEvents",
1818
"form",
19+
"teaser",
1920
]
2021

2122

src/redturtle/volto/restapi/serializer/blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"calendar",
2121
"searchEvents",
2222
"form",
23+
"teaser",
2324
]
2425

2526

0 commit comments

Comments
 (0)