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

feat(prices): allow users to submit category_tag with language prefix #548

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

raphael0202
Copy link
Contributor

@raphael0202 raphael0202 commented Nov 6, 2024

Related to openfoodfacts/smooth-app#5553

edit: as discussed in the smooth-app issue, I introduced a change when it comes to category_tag: we don't require anymore the category_tag to be valid with respect to the taxonomy.
The goal is to prevent silent failure from price addition, as it's done in a background task.
This is also more aligned with Open Food Facts philosophy to accept data as it is, and built upon it using taxonomies (or correct it in the moderation stage).

@raphael0202 raphael0202 force-pushed the category-tag-lang-prefix branch from 18bd9a0 to a971bc7 Compare November 6, 2024 18:29
poetry.lock Outdated Show resolved Hide resolved
@raphael0202 raphael0202 requested a review from raphodn November 7, 2024 08:02
@raphael0202 raphael0202 requested a review from raphodn November 8, 2024 09:04
@raphodn raphodn merged commit 9aab15d into main Nov 8, 2024
6 checks passed
@raphodn raphodn deleted the category-tag-lang-prefix branch November 8, 2024 11:11
@raphodn
Copy link
Member

raphodn commented Nov 8, 2024

fyi i plan to refactor the save/clean/validation code, maybe move it to a seperate file, and document more the different rules : #553

@raphodn raphodn changed the title feat: allow users to submit category_tag with language prefix feat(prices): allow users to submit category_tag with language prefix Nov 8, 2024
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.

2 participants