#49530 Add pseudolocalization option for dbgen
Closed: wontfix Opened by vashirov.

Issue Description

Pseudolocalization can be used to test matching rules and indexing of UTF-8 strings in various attributes.


Metadata Update from @vashirov:
- Issue assigned to vashirov

Metadata Update from @vashirov:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None

Interesting approach, but it is a bit of all or nothing, eg there is no choice for a "normal" suffix with localized givennames.
Wouldn't it be in the line of how dbgen works to add sets of localalized givennames, family-names to pick from when generating an ldif ?

Usually pseudolocalization is all or nothing, yes.
Are you talking about some kind of mixed mode? When names will be picked at random from different sets of localized and non-localized strings? It's doable. We can go even further (what ratio of localized names, what attributes to localize, what kind of localization to use - accented, RTL, etc.) but that would make things a bit complex.

And in case of "normal" suffix we can add localized entries separately (for example using user module of lib389).

Recently writing a mr testcase, I had to use 2 UTF-8 ldif files. One containing the entries with localized attributes and one to create the mapping_tree/backend.
Indeed it would have help to create "localized" entries under a regular suffix.

And in case of "normal" suffix we can add localized entries separately (for example using user module of lib389).

ok, with the option of getting a mix by just localizing entries added this is ok for me.
will pseudolocalize() be available to tests to generate their own names ?

pseudolocalize() is in lib389.utils, so yes, it can be used by tests to convert strings.

Metadata Update from @vashirov:
- Custom field reviewstatus adjusted to review (was: None)

THe patch looks good to me (and very useful thanks !). You have my ACK

Looks good to me! Thanks!

Metadata Update from @spichugi:
- Custom field reviewstatus adjusted to ack (was: review)

Why not always do this kind of localisation? It would be good to have dbgen "stress" more cases with complex charsets ...

Metadata Update from @mreynolds:
- Issue set to the milestone: 1.4 backlog

To ssh://pagure.io/389-ds-base.git
003fa4d0c..b6c1221eb master -> master

Metadata Update from @vashirov:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2589

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

Metadata