-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add fwddata bridge Semantic domains and Parts of speech #886
Conversation
@rmunn I requested your review since some of this code was taken directly from LF Merge and I want your feedback on it. Thanks |
… for the FwDataBridge pull part of speech helper methods into their own utility class rewrite semantic domain implementation to support them being objects that are referenced, instead of just being a string. prevent json patch changes from having index references, this will avoid conflicts where the index changes due to merges. introduce json patch rewriting to convert patches into specific changes. Rewrite changes to Sense.PartOfSpeechId into SetPartOfSpeechChange. allow creating parts of speech as CRDTs and setup a PoC of pre seeding them. allow creating semantic domains and referencing them in senses, rewrite json patch to change semantic domains of senses. Add tests for creating senses with and without semantic domains, and with and without part of speeches.
192962b
to
3e1cd70
Compare
…ild error due to 2 overloads not requiring parameters.
…ection fixture so it's shared by all tests in the project.
…hars instead of strings.
…nvariant on each string.
…nary, and set the MultiString capacity when converting a LcmMultiString to a MiniLcmMultiString
…cause first-char sounds like a better way to go (https://sil-lt.slack.com/archives/C806BLR42/p1718797173733449) This reverts commit 614dbd5.
…gle file until sillsdev/icu-dotnet#201 is merged.
@rmunn if you would take a look at this that would be great. Particularly the code in FwDataMiniLcmBridge and the related tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments below about parts of speech and semantic domains. I only skimmed the CRDT stuff, and didn't look at the frontend code at all.
closes #878
note this Pr is into the import PR as it builds on top of changes in that branch.
This adds support in the model only for actually properly referencing parts of speech and semantic domains when using the FWData api. Support still needs to be added for CRDTs and in the UI.
still todo: