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

Move ContentType.identifier logic into the translator #141

Merged

Conversation

czechboy0
Copy link
Contributor

Motivation

In preparation for changing the mapping of content type names onto enum case names, we need to have the ContentType.identifier logic on a translator, which has access to the feature flags, so that we can later conditionalize the logic.

Modifications

Takes the first step - moves the existing logic onto the translator.

Result

NFC

Test Plan

Added unit tests both for the existing logic, and also for the stubbed out logic behind the feature flag.

@czechboy0 czechboy0 requested a review from simonjbeaumont July 25, 2023 13:32
@czechboy0 czechboy0 merged commit b6de8a1 into apple:main Jul 26, 2023
@czechboy0 czechboy0 deleted the hd-content-type-identifier-move-to-translator branch July 26, 2023 16:35
@czechboy0 czechboy0 added the semver/none No version bump required. label Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants