Skip to content
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

media methods now use the media name instead of the function name #49

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mszulik
Copy link
Contributor

@mszulik mszulik commented Oct 15, 2024

There are some problems that arise with this:

  • potentially a lot of function invocations to be able to determine the actual return type of union types and the actual media name
  • caching is not possible anymore to the same extent as before, as media methods are now dynamic

Jörn said he sees no need in this feature as the media belongs to the model structure and should not be changed dynamically, it can be seen similar to database fields. In his opinion the available media should not be dynamic and this feature should be scrapped.

See https://github.com/cybex-gmbh/maminator-server/pull/5 for an implementation using a dynamically assigned media name.

@mszulik mszulik changed the title media methods now correctly use the media name instead of the function name media methods now use the media name instead of the function name Oct 15, 2024
@mszulik mszulik marked this pull request as draft October 15, 2024 09:33
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.

1 participant