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

[languagedetection] Refactor languagemodels package #33356

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

Conversation

davidor
Copy link
Member

@davidor davidor commented Jan 24, 2025

What does this PR do?

This pull request introduces a refactoring opportunity I identified while working on related tasks.

While working on the workloadmeta definition package, I noticed that it depended on both pkg/languagedetection/languagemodels and pkg/languagedetection/util (the latter further depends on pkg/util/kubernetes).

From the perspective of the workloadmeta store, we only need some types, so I expected them to reside in pkg/languagedetection/languagemodels. However, they were actually scattered between pkg/languagedetection/languagemodels and pkg/languagedetection/util, with some duplicate types, such as "LanguageName".

This pull request consolidates all the types/models from pkg/languagedetection/util into pkg/languagedetection/languagemodels for the sake of clarity.

Describe how you validated your changes

This refactor should be covered by tests.

@davidor davidor added changelog/no-changelog qa/done QA done before merge and regressions are covered by tests team/container-platform The Container Platform Team labels Jan 24, 2025
@davidor davidor added this to the 7.64.0 milestone Jan 24, 2025
@davidor davidor requested review from a team as code owners January 24, 2025 14:30
@davidor davidor requested a review from paullegranddc January 24, 2025 14:30
@github-actions github-actions bot added the long review PR is complex, plan time to review it label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog long review PR is complex, plan time to review it qa/done QA done before merge and regressions are covered by tests team/container-platform The Container Platform Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant