-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't serialize comments to JSON when calling LfMergeBridge (#338)
* Get ready to use new LfMergeBridge API Many parts of the LfMerge model have been transferred over to LfMergeBridge, so that the new API can reference the same data types that LfMerge does. * Register new model class location with Mongo The Mongo class registration needs to be told about the new namespace that some of our model classes live in, so that the auto-registration can do its job and they can be serialized to Mongo correctly. * Call LfMergeBridge without JSON serialization Now that the LfMergeBridge code is working, we can switch to calling it without serializing comments as JSON. This will save quite a bit of memory for large projects. * Remove no-longer-needed LfMergeBridge option We no longer need the `serializedCommentsFromLfMerge` option now that we pass the comments in as objects. * Use new LfMergeBridge API to write to ChorusNotes Similarly to what we did with the GetChorusNotes handler, the other direction (WriteToChorusNotes) can also skip serializing JSON. * Use LfMergeBridge NuGet package LfMergeBridge build in GitHub Actions now uploads nuget packages, so we can reference the latest LfMergeBridge package to use the new API. * Update LibChorus to go along with LfMergeBridge update The new LfMergeBridge package needs a higher version of LibChorus than we were referencing before. * Register new model class location for test double In addition to registering the Mongo serialization options for the real MongoConnection, we also need to do the same thing for the test double of the MongoConnection class, so that it can test real data correctly.
- Loading branch information
Showing
31 changed files
with
73 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
src/LfMerge.Core/LanguageForge/Model/LfCommentRegarding.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.