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

New API to export ldml files for projects which have "Share ws data" set #1306

Open
hahn-kev opened this issue Dec 6, 2024 · 3 comments
Open
Assignees
Labels
📦 Lexbox issues related to any server side code, fw-headless included
Milestone

Comments

@hahn-kev
Copy link
Collaborator

hahn-kev commented Dec 6, 2024

Describe the feature
To update the SLDR we want a way to export the ldml file data. This will return a zip file, with the following structure
/{project-id}/**.ldlm where the source of each repo is /CachedSettings/WritingSystemStore/, however for each project we only want to include the writingsystems which have the "Share ws data" checkbox checked, see below on that.

Who is this feature for?
Admins

Looks like the attribute addToSldr will be true in SharedSettings/LexiconSettings.plsx on the WritingSystems element, if the attribute is missing then it's false. Based on this the setting is per project not per writing system.

@hahn-kev hahn-kev added this to the v3 milestone Dec 6, 2024
@rmunn
Copy link
Contributor

rmunn commented Dec 6, 2024

In liblcm the property AddWritingSystemsToSldr in the ProjectLexiconSettings class is what becomes addToSldr in the LexiconSettings.plsx file. It defaults to true if the project was created with LcmCache.CreateNewLangProj (i.e., what FieldWorks does when asked to create a new project), so we can probably expect most projects to have it enabled.

@rmunn
Copy link
Contributor

rmunn commented Dec 6, 2024

Esimating this one as Large since it'll involve quite a bit of research. Actual code will likely be small, so perhaps Medium might be better. @hahn-kev - do you have an opinion?

@hahn-kev hahn-kev added the 📦 Lexbox issues related to any server side code, fw-headless included label Dec 11, 2024
@hahn-kev
Copy link
Collaborator Author

I think large is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Lexbox issues related to any server side code, fw-headless included
Projects
None yet
Development

No branches or pull requests

2 participants