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

Fix regression trying to save empty translations #424

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Fix regression trying to save empty translations #424

merged 1 commit into from
Aug 26, 2024

Conversation

rbngzlv
Copy link
Contributor

@rbngzlv rbngzlv commented Aug 12, 2024

The change introduced in #418 broke an application for me. The reason seems to be that the translations table have not null constraints in the translatable attributes and after the change introduced any new empty translation is considered dirty and becomes a candidate to save in saveTranslations method.

After the change from #418 translations were always considered dirty
Copy link
Member

@Gummibeer Gummibeer left a comment

Choose a reason for hiding this comment

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

Doesn't really look like "normal"/common cases but I see the problem and as we already exclude other more package/framework relevant keys from the dirty check it's totally correct to also exclude the relation key.

@Gummibeer Gummibeer added the bug label Aug 26, 2024
@Gummibeer Gummibeer merged commit 30ef101 into Astrotomic:main Aug 26, 2024
12 checks passed
@Gummibeer
Copy link
Member

@rbngzlv rbngzlv deleted the remove-relation-key-on-dirty branch August 26, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants