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

Change in localized text not captured #143

Open
raul-ruiz-acn opened this issue Jan 17, 2025 · 1 comment
Open

Change in localized text not captured #143

raul-ruiz-acn opened this issue Jan 17, 2025 · 1 comment

Comments

@raul-ruiz-acn
Copy link

Hello
I have an entity with a localized description but i am not able to capture the changes to these descriptions.

Let me share some details just in case they can help. My entity has several fields: some of them are just normal attributes but description is localized to allow different languages:

entity Products: managed, cuid { code: ProductCode @mandatory @assert.unique; description: localized ProductDescription ; cold: Boolean ; threshold: Integer ;

I added the change log annotation to track changes:
annotate ProductService.Products with @title: 'Products' @changelog: [code ] { description @changelog; cold @changelog; threshold @changelog;

This services is used in a fiori elements app that allows the user maintain the product attributes as well as the different translations:

Image

As far as I can see I am not missing anything (at least i cannot find in documentation) so i guess it might be a bug.
Thanks in advance for your support

@raul-ruiz-acn
Copy link
Author

Update on my previous post: I am able to track specific changes for the texts using
annotate ProductService.Products.texts with @title : 'Product description' @changelog:[ locale ] { description @changelog; };

Managing as a separate entity allows to create different entry in the error log (which is perfect!). However , in this point we are just able to show the locale (language) of the entry and not the key code of the original entity.

As the localization is managed as an association, the path from original entity to the associated text entity is viable, but the opposite path cannot be followed as far as I know. Any idea about how can we get the code from the Product entity from this Products.text or track the Products.text change from ProductService.Products changelog?
Thanks

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

No branches or pull requests

1 participant