-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract language tags from FLEx projects and store in DB metadata (#952)
Extract language tags from FLEx projects and store them in the FLExProjectMetadata table just like lex entry counts. Currently we do not attempt to extract lang tags from WeSay projects. Currently the language tags are extracted, but not analysed to try to determine the primary language. Instead, the vernacular and analysis tags are placed directly in the UI. The `isActive` flag means that the tag appeared in the "Current" list, while the `isDefault` flag means that the tag was the first one in the "Current" list. There should be only one tag with `isDefault`. * Add command to extract LangProject GUID as well While we're adding hg runner commands, we can easily add one to extract the GUID from the LangProject element, which may allow identifying projects which started out as copies of each other even though their Mercurial repo histories have no common commits. * Add LangProjectId column to FlexProjectMetadata Also include a DB migration and GQL schema update * Make writing system ordering match what FLEx does The order in which FLEx returns writing systems is current first, then all non-current (if any) at the end. We want what we store in the project metadata to match that ordering. * Add UI for writing systems on proj page * Add button for admins to refresh language list * Add project controller actions to update missing langprojectid and writingsystems --------- Co-authored-by: Kevin Hahn <[email protected]>
- Loading branch information
Showing
22 changed files
with
3,274 additions
and
14 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
12 changes: 12 additions & 0 deletions
12
backend/LexBoxApi/GraphQL/CustomTypes/FlexProjectMetadataGqlConfiguration.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using HotChocolate.Data.Sorting; | ||
using LexCore.Entities; | ||
|
||
namespace LexBoxApi.GraphQL.CustomTypes; | ||
|
||
public class FlexProjectMetadataGqlSortConfiguration : SortInputType<FlexProjectMetadata> | ||
{ | ||
protected override void Configure(ISortInputTypeDescriptor<FlexProjectMetadata> descriptor) | ||
{ | ||
descriptor.Field(p => p.WritingSystems).Ignore(); | ||
} | ||
} |
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
Oops, something went wrong.