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

Add fwddata bridge Semantic domains and Parts of speech #886

Merged
merged 38 commits into from
Jul 5, 2024

Conversation

hahn-kev
Copy link
Collaborator

@hahn-kev hahn-kev commented Jun 13, 2024

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:

  • UI populate dropdowns from api queries
  • implement API in the signalr Hub, front and backend
  • add support in CRDTs as well

@hahn-kev hahn-kev requested review from myieye and rmunn June 13, 2024 15:21
@hahn-kev
Copy link
Collaborator Author

@rmunn I requested your review since some of this code was taken directly from LF Merge and I want your feedback on it. Thanks

@hahn-kev hahn-kev changed the title feat/domain-and-pos-fw-updates Add fwddata bridge Semantic domains and Parts of speech Jun 13, 2024
@hahn-kev hahn-kev marked this pull request as draft June 13, 2024 20:14
… 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.
@hahn-kev hahn-kev force-pushed the feat/domain-and-pos-fw-updates branch from 192962b to 3e1cd70 Compare June 14, 2024 20:22
@hahn-kev hahn-kev changed the base branch from feat/import-fwdata-project-as-crdt to develop June 14, 2024 20:23
Copy link

github-actions bot commented Jun 14, 2024

FW Lite Unit Tests

34 tests  +15   34 ✅ +15   4s ⏱️ ±0s
 4 suites + 2    0 💤 ± 0 
 1 files   ± 0    0 ❌ ± 0 

Results for commit 169bad2. ± Comparison against base commit de51a1e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 14, 2024

C# Unit Tests

52 tests  ±0   52 ✅ ±0   5s ⏱️ ±0s
10 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 169bad2. ± Comparison against base commit de51a1e.

♻️ This comment has been updated with latest results.

hahn-kev and others added 3 commits June 14, 2024 15:40
…nary, and set the MultiString capacity when converting a LcmMultiString to a MiniLcmMultiString
Copy link

github-actions bot commented Jun 18, 2024

UI unit Tests

11 tests  ±0   11 ✅ ±0   0s ⏱️ ±0s
 3 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 169bad2. ± Comparison against base commit de51a1e.

♻️ This comment has been updated with latest results.

@hahn-kev hahn-kev marked this pull request as ready for review July 2, 2024 06:14
@hahn-kev
Copy link
Collaborator Author

hahn-kev commented Jul 2, 2024

@rmunn if you would take a look at this that would be great. Particularly the code in FwDataMiniLcmBridge and the related tests.

Copy link
Contributor

@rmunn rmunn left a 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.

@hahn-kev hahn-kev merged commit e5074b9 into develop Jul 5, 2024
16 checks passed
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

Successfully merging this pull request may close these issues.

define and model semantic domains and part of speech in miniLcm and implement in FWData mini lcm
3 participants