-
Notifications
You must be signed in to change notification settings - Fork 7
Symfony 6.3 and API Platform 2.7 #165
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
Symfony 6.3 and API Platform 2.7 #165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good.
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}Mailhog.rule=Host(`mailhog-${COMPOSE_DOMAIN}`)" | ||
- "traefik.http.services.${COMPOSE_PROJECT_NAME}Mailhog.loadbalancer.server.port=8025" | ||
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}mail.rule=Host(`mail-${COMPOSE_DOMAIN}`)" | ||
- "traefik.http.services.${COMPOSE_PROJECT_NAME}mail.loadbalancer.server.port=8025" | ||
|
||
redis: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move redis and node to docker-compose.override.yml ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be the ITK Dev way to do it, but 04cbc36
@@ -0,0 +1,39 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like it should be removed.
Why was it added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was added in 30ca376 to make our “Validate Doctrine Schema” stop complaining. It sure is weird …
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment on this weird stuff added in d453c11
@@ -67,6 +59,7 @@ public function normalize($object, $format = null, array $context = []): array|s | |||
$data = ['@context' => '/contexts/'.$context['output']['name']]; | |||
|
|||
if (isset($context['operation_type']) && OperationType::SUBRESOURCE === $context['operation_type']) { | |||
// FIXME: When do we end up here? `getSubresourceIriFromResourceClass` is not defined anymore. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be removed?
{ | ||
return true; | ||
// FIXME: Figure out what to actually return here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this handled?
…raft-without-entity-changes' into feature/DISPLAY-1030-symfony-update
…elations modified
…ns modified listener
…odified_bug #165: Bugfix for "relations modified" not set correctly on OneToMany relations
Link to ticket
https://jira.itkdev.dk/browse/DISPLAY-1030
Description
Updates to Symfony 6.3 and API Platform 2.7 (cf. https://api-platform.com/docs/core/upgrade-guide/#im-migrating-from-26-and-want-to-prepare-for-30)
Checklist
The API Specification has some (hopefully) insignificant changes:
links
are not set in response examples (do we use these links?) This is related to the line https://github.com/api-platform/core/blob/v2.6.8/src/OpenApi/Factory/OpenApiFactory.php#L188 (and others) having been removed and refactored extensively.examples
and additional properties added inschema
https://gist.github.com/rimi-itk/ff2c9400aa8d6d76caae698053b54638#file-compare-api-specs-sh has been used to test the API spec piece by piece and compare it with https://github.com/os2display/display-api-service/tree/develop