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: provide translation profile defaults for configuring common settings appliyng to all zaaktype related custom translation profiles #296

Merged
merged 31 commits into from
Apr 18, 2024

Conversation

DelanoWAF
Copy link
Contributor

Adds the ability to define a baseProfile, as well as giving the option to call the new ResolveProfileValues adapter. Upon being called it will then merge the baseProfile's values into every other profile while avoiding overwriting existing values and retaining the structure of the elements.

Note: A cache is active on this adapter. Processing is only done once.

The full baseProfile system is now useable. Sending any message of any type to the new configuration will return a version of Profile.json, as an XML, which has the baseProfile values added to every profile. It does not overwrite existing values or break the structure.
Adds baseProfile with some example elements. Can be changed where necessary.
@DelanoWAF DelanoWAF added the feature New feature or request label Mar 26, 2024
@DelanoWAF DelanoWAF requested a review from MLenterman March 26, 2024 14:29
@DelanoWAF DelanoWAF self-assigned this Mar 26, 2024
@DelanoWAF DelanoWAF linked an issue Mar 26, 2024 that may be closed by this pull request
4 tasks
Copy link
Collaborator

@MLenterman MLenterman left a comment

Choose a reason for hiding this comment

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

  • It is not implemented anywhere yet. It should be implemented in ImportValueOverridesFromTranslationProfile configuration instead of reading the profiles.json itself. Also every place in ZaakBrug that using values from the profile, should be changed to make use of the resolved profiles.

  • Can you align the formatting with other adapters. You can use ImportValueOverridesFromTranslationProfile as example.

  • It is not merging array's like valueOverrides.

@DelanoWAF DelanoWAF requested a review from MLenterman April 4, 2024 13:05
@MLenterman MLenterman changed the title feat: add support for a base translation profile feat: translation profile defaults for configuring common profile settings for all translation profiles Apr 17, 2024
@checkiecheck checkiecheck changed the title feat: translation profile defaults for configuring common profile settings for all translation profiles feat: provide translation profile defaults for configuring common settings appliyng to all custom translation profiles Apr 17, 2024
@checkiecheck checkiecheck changed the title feat: provide translation profile defaults for configuring common settings appliyng to all custom translation profiles feat: provide translation profile defaults for configuring common settings appliyng to all zaaktype related custom translation profiles Apr 17, 2024
@MLenterman MLenterman merged commit 81e9114 into master Apr 18, 2024
6 checks passed
@MLenterman MLenterman deleted the 282-add-support-for-a-base-translation-profile branch April 18, 2024 12:07
MLenterman pushed a commit that referenced this pull request Apr 18, 2024
## [1.18.0](v1.17.1...v1.18.0) (2024-04-18)

### 🍕 Features

* provide translation profile defaults for configuring common settings applying to all zaaktype related custom translation profiles ([#296](#296)) ([81e9114](81e9114))
@MLenterman
Copy link
Collaborator

🎉 This PR is included in version 1.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for a base translation profile
3 participants