Skip to content

Conversation

rimi-itk
Copy link
Contributor

@rimi-itk rimi-itk commented Nov 10, 2023

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

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

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

@rimi-itk rimi-itk marked this pull request as ready for review November 16, 2023 08:39
@rimi-itk rimi-itk requested a review from tuj November 16, 2023 08:39
@rimi-itk
Copy link
Contributor Author

@tuj, please review this.


class ScreenCampaign
{
use BlameableTrait;
Copy link
Contributor

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?

Copy link
Contributor Author

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).

* @ORM\PrePersist()
*/
public function setCreatedAtValue(): self
// FIXME Why can't I #[Ignare] this function?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any news on this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Ignore"

Copy link
Contributor Author

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

/**
* Load previous object if any.
*
* This is needed to get an objet handled by entity manager.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"object"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 504d67e.

* @ORM\PreUpdate()
*/
public function setModifiedAtValue(): self
// FIXME Why can't I #[Ignare] this function?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Ignore"

Copy link
Contributor Author

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

'published' => 'Slide/published',
'content' => 'Slide/content',
],
// FIXME: What is the correct context?
Copy link
Contributor

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

@rimi-itk rimi-itk requested a review from tuj November 17, 2023 12:56
@turegjorup turegjorup merged commit f07a00d into os2display:develop Nov 22, 2023
@rimi-itk rimi-itk deleted the feature/DISPLAY-1030-api-platform-3 branch November 24, 2023 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants