Skip to content

[TM-1772] Implement file / media GET in v3 #122

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

Open
wants to merge 48 commits into
base: staging
Choose a base branch
from

Conversation

pachonjcl
Copy link
Collaborator

@pachonjcl pachonjcl changed the title [TM-1772] add media to entity association controller [TM-1772] Implement file / media GET in v3 Apr 15, 2025
@pachonjcl pachonjcl marked this pull request as ready for review April 15, 2025 20:35
@pachonjcl pachonjcl requested a review from roguenet April 15, 2025 20:35
@roguenet roguenet changed the base branch from staging to release/captivating-chrysoberyl April 16, 2025 04:48
@LimberHope LimberHope changed the base branch from release/captivating-chrysoberyl to staging April 16, 2025 15:49
@pachonjcl pachonjcl requested a review from roguenet April 22, 2025 15:47
@pachonjcl pachonjcl requested a review from roguenet April 28, 2025 04:01
entityType: additional.entityType,
entityUuid: additional.entityUuid,
url: additional.url,
thumbUrl: additional.thumbUrl,
Copy link
Collaborator

Choose a reason for hiding this comment

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

These should be covered by ...additional above and do not need to be specified separately.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unfortunately it is because of typescript, I just updated.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is not the right solution. If you look at the particulars of the error that TS gives you, it's legitimately flagging that url is optional in the additional props, but required in the DTO. That's a real error, and it should be addressed appropriately with an update to the DTO, or a default value.

image

...additional
...additional,
entityType: additional.entityType,
entityUuid: additional.entityUuid
Copy link
Collaborator

Choose a reason for hiding this comment

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

These are covered by ...additional above and do not need to be specified separately.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unfortunately it is because of typescript, I just updated.

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