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

chore: refactor transcode config routing #9800

Merged
merged 4 commits into from
May 27, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented May 27, 2024

Description

The transcode config to use is currently handled in the media service. This PR moves it to the util instead as the routing is somewhat complex and should be considered an implementation detail. Creating a config is now declarative, without the service needing to care about what config it really is.

Also renames TranscodeOptions to TranscodeCommand and getOptions to getCommand. This is to better distinguish it from the admin config.

Lastly, it removes some uses of null in the service.

Copy link

cloudflare-workers-and-pages bot commented May 27, 2024

Deploying immich with  Cloudflare Pages  Cloudflare Pages

Latest commit: c72c382
Status: ✅  Deploy successful!
Preview URL: https://ef54ee91.immich.pages.dev
Branch Preview URL: https://chore-refactor-transcode-con.immich.pages.dev

View logs

Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

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

Nice, I like it!

Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

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

Nice

@mertalev mertalev merged commit dca420e into main May 27, 2024
26 checks passed
@mertalev mertalev deleted the chore/refactor-transcode-config branch May 27, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants