-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Corpora fixes #599
Corpora fixes #599
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 6 files at r1, all commit messages.
Reviewable status: 5 of 6 files reviewed, 2 unresolved discussions (waiting on @johnml1135)
src/Serval/test/Serval.ApiServer.IntegrationTests/DataCorporaTests.cs
line 5 at r1 (raw file):
[TestFixture] [Category("Integration")] public class DataCorporaTests
Maybe just CorporaTests
? Why DataCorporaTests
? I guess it's TranslationEngineTests
not EngineTests
, but it's also justDataFileTests
and WebhookTests
.
src/Serval/src/Serval.DataFiles/Controllers/CorporaController.cs
line 160 at r1 (raw file):
private async Task<Corpus> MapAsync(CorpusConfigDto corpusConfig, string id, CancellationToken cancellationToken) { if (corpusConfig.Language == null || corpusConfig.Language.Length == 0)
Isn't Language a required property? So is it necessary to check it for null?
Previously, Enkidu93 (Eli C. Lowry) wrote…
True. |
Previously, Enkidu93 (Eli C. Lowry) wrote…
Agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r2.
Reviewable status: 5 of 6 files reviewed, all discussions resolved
src/Serval/test/Serval.ApiServer.IntegrationTests/DataCorporaTests.cs
line 5 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
Agree
I am realizing now that some of the tests have plurals (e.g., Webhooks, Corpora) and other have singulars (e.g. TranslationEngine, WordAlignmentEngine). Maybe we should clean that up at some point.
Previously, Enkidu93 (Eli C. Lowry) wrote…
Maybe. |
Addresses
This change is