-
Notifications
You must be signed in to change notification settings - Fork 7
API Platform 3 #173
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
API Platform 3 #173
Conversation
…latform-3 # Conflicts: # TODO.md # config/api_platform/media.yaml # config/api_platform/playlist_screen_region.yaml # config/api_platform/playlist_slide.yaml # config/api_platform/screen_groups.yaml # config/api_platform/screen_layout_regions.yaml # config/api_platform/tenant.yaml # src/Serializer/RelationNormalizer.php # tests/Api/PlaylistScreenRegionTest.php # tests/Api/PlaylistsTest.php
@tuj, please review this. |
|
||
class ScreenCampaign | ||
{ | ||
use BlameableTrait; |
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.
Why use traits here and not in the other DTOs?
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.
Yeah, why not? Fixed in bc2e1b9.
The traits came about as a desperate attempt to fix something that may be broken in the API (cf. os2display/display-admin-client#223).
src/Entity/AbstractBaseEntity.php
Outdated
* @ORM\PrePersist() | ||
*/ | ||
public function setCreatedAtValue(): self | ||
// FIXME Why can't I #[Ignare] this function? |
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.
Any news on this?
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.
"Ignore"
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.
I need (new) glasses! 985bd3c
src/State/AbstractProcessor.php
Outdated
/** | ||
* Load previous object if any. | ||
* | ||
* This is needed to get an objet handled by entity manager. |
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.
"object"
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.
Fixed in 504d67e.
src/Entity/AbstractBaseEntity.php
Outdated
* @ORM\PreUpdate() | ||
*/ | ||
public function setModifiedAtValue(): self | ||
// FIXME Why can't I #[Ignare] this function? |
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.
"Ignore"
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.
I need (new) glasses! 985bd3c
tests/Api/SlidesTest.php
Outdated
'published' => 'Slide/published', | ||
'content' => 'Slide/content', | ||
], | ||
// FIXME: What is the correct context? |
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.
Remove this commented out code. Let's ignore context in tests
Link to ticket
https://jira.itkdev.dk/browse/DISPLAY-1030
Description
Upgrades to API Platform 3.
Screenshot of the result
If your change affects the user interface you should include a screenshot of the result with the pull request.
Checklist
If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.
Notes on API spec
authentication-token
(https://github.com/os2display/display-api-service/blob/develop/config/routes.yaml#L8-L11) suddenly appears in the API spec (!)