Skip to content

Commit

Permalink
dont track EF queries in miniLcm, should fix weird sync test issues w…
Browse files Browse the repository at this point in the history
…hich only show up when running all tests at once
  • Loading branch information
hahn-kev committed Nov 25, 2024
1 parent 1e56414 commit 373a5ec
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ public class CrdtMiniLcmApi(DataModel dataModel, CurrentProjectService projectSe
private Guid ClientId { get; } = projectService.ProjectData.ClientId;
public ProjectData ProjectData => projectService.ProjectData;

private IQueryable<Entry> Entries => dataModel.QueryLatest<Entry>();
private IQueryable<ComplexFormComponent> ComplexFormComponents => dataModel.QueryLatest<ComplexFormComponent>();
private IQueryable<ComplexFormType> ComplexFormTypes => dataModel.QueryLatest<ComplexFormType>();
private IQueryable<Sense> Senses => dataModel.QueryLatest<Sense>();
private IQueryable<ExampleSentence> ExampleSentences => dataModel.QueryLatest<ExampleSentence>();
private IQueryable<WritingSystem> WritingSystems => dataModel.QueryLatest<WritingSystem>();
private IQueryable<SemanticDomain> SemanticDomains => dataModel.QueryLatest<SemanticDomain>();
private IQueryable<PartOfSpeech> PartsOfSpeech => dataModel.QueryLatest<PartOfSpeech>();
private IQueryable<Entry> Entries => dataModel.QueryLatest<Entry>().AsTracking(false);
private IQueryable<ComplexFormComponent> ComplexFormComponents => dataModel.QueryLatest<ComplexFormComponent>()
.AsTracking(false);
private IQueryable<ComplexFormType> ComplexFormTypes => dataModel.QueryLatest<ComplexFormType>().AsTracking(false);
private IQueryable<Sense> Senses => dataModel.QueryLatest<Sense>().AsTracking(false);
private IQueryable<ExampleSentence> ExampleSentences => dataModel.QueryLatest<ExampleSentence>().AsTracking(false);
private IQueryable<WritingSystem> WritingSystems => dataModel.QueryLatest<WritingSystem>().AsTracking(false);
private IQueryable<SemanticDomain> SemanticDomains => dataModel.QueryLatest<SemanticDomain>().AsTracking(false);
private IQueryable<PartOfSpeech> PartsOfSpeech => dataModel.QueryLatest<PartOfSpeech>().AsTracking(false);

public async Task<WritingSystems> GetWritingSystems()
{
Expand Down

0 comments on commit 373a5ec

Please sign in to comment.