Skip to content

Commit 8341e4b

Browse files
Merge pull request #395 from api-platform/390-replace-apipropertytype-by-apipropertyiris-when-httpschemaorgname-is-used
2 parents 9dc604a + c8fa5d7 commit 8341e4b

File tree

14 files changed

+16
-24
lines changed

14 files changed

+16
-24
lines changed

api/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ RUN apt-get update; \
2727
file \
2828
gettext \
2929
git \
30+
zip \
3031
; \
3132
rm -rf /var/lib/apt/lists/*
3233

api/src/Entity/Book.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class Book
120120
#[ApiFilter(OrderFilter::class)]
121121
#[ApiFilter(SearchFilter::class, strategy: 'i' . SearchFilterInterface::STRATEGY_PARTIAL)]
122122
#[ApiProperty(
123-
types: ['https://schema.org/name'],
123+
iris: ['https://schema.org/name'],
124124
example: 'Hyperion'
125125
)]
126126
#[Groups(groups: ['Book:read', 'Book:read:admin', 'Bookmark:read', 'Review:read:admin'])]

api/src/Entity/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function getUserIdentifier(): string
121121
/**
122122
* @see https://schema.org/name
123123
*/
124-
#[ApiProperty(types: ['https://schema.org/name'])]
124+
#[ApiProperty(iris: ['https://schema.org/name'])]
125125
#[Groups(groups: ['User:read', 'Review:read'])]
126126
public function getName(): ?string
127127
{

compose.e2e.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.8"
2-
31
services:
42
keycloak:
53
environment:

compose.override.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.4"
2-
31
# Development environment override
42
services:
53
php:

compose.prod.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.4"
2-
31
# Production environment override
42
services:
53
php:

compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.4"
2-
31
services:
42
php:
53
image: ${IMAGES_PREFIX:-}app-php

pwa/app/books/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ async function getServerSideProps(query: Query, session: Session|null): Promise<
4646
try {
4747
const response: FetchResponse<PagedCollection<Book>> | undefined = await fetchApi(buildUriFromFilters("/books", filters), {
4848
cache: "force-cache",
49-
next: { revalidate: 3600 },
5049
}, session);
5150
if (!response?.data) {
5251
throw new Error('Unable to retrieve data from /books.');

pwa/components/admin/book/Create.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CreateGuesser, type CreateGuesserProps } from "@api-platform/admin";
22

3-
import { Form } from "../../../components/admin/book/Form";
3+
import { Form } from "./Form";
44

55
export const Create = (props: CreateGuesserProps) => (
66
<CreateGuesser {...props} title="Create book">

pwa/components/admin/book/Edit.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { EditGuesser, type EditGuesserProps } from "@api-platform/admin";
22
import { TopToolbar } from 'react-admin';
33

4-
import { Form } from "../../../components/admin/book/Form";
5-
import { ShowButton } from "../../../components/admin/book/ShowButton";
4+
import { Form } from "./Form";
5+
import { ShowButton } from "./ShowButton";
66

77
// @ts-ignore
88
const Actions = ({ data }) => (

0 commit comments

Comments
 (0)