Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,9 @@ void MoveWs(CoreWritingSystemDefinition ws,

public IAsyncEnumerable<PartOfSpeech> GetPartsOfSpeech()
{
return PartOfSpeechRepository
.AllInstances()
return Cache.LangProject.PartsOfSpeechOA
.ReallyReallyAllPossibilities
.Cast<IPartOfSpeech>()
.OrderBy(p => p.Name.BestAnalysisAlternative.Text)
.ToAsyncEnumerable()
.Select(FromLcmPartOfSpeech);
Expand Down
8 changes: 8 additions & 0 deletions backend/FwLite/FwLiteProjectSync.Tests/SyncTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ public async Task DisposeAsync()
{
await _fixture.CrdtApi.DeleteEntry(entry.Id);
}
await foreach (var pos in _fixture.FwDataApi.GetPartsOfSpeech())
{
await _fixture.FwDataApi.DeletePartOfSpeech(pos.Id);
}
foreach (var pos in await _fixture.CrdtApi.GetPartsOfSpeech().ToArrayAsync())
{
await _fixture.CrdtApi.DeletePartOfSpeech(pos.Id);
}
}

public SyncTests(SyncFixture fixture)
Expand Down
Loading