Skip to content
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

Merged
merged 8 commits into from
Jan 9, 2025
Merged

Corpora fixes #599

merged 8 commits into from
Jan 9, 2025

Conversation

johnml1135
Copy link
Collaborator

@johnml1135 johnml1135 commented Jan 9, 2025

Addresses


This change is Reviewable

@johnml1135 johnml1135 requested a review from Enkidu93 January 9, 2025 19:01
Copy link
Collaborator

@Enkidu93 Enkidu93 left a 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?

@johnml1135
Copy link
Collaborator Author

src/Serval/src/Serval.DataFiles/Controllers/CorporaController.cs line 160 at r1 (raw file):

Previously, Enkidu93 (Eli C. Lowry) wrote…

Isn't Language a required property? So is it necessary to check it for null?

True.

@johnml1135
Copy link
Collaborator Author

src/Serval/test/Serval.ApiServer.IntegrationTests/DataCorporaTests.cs line 5 at r1 (raw file):

Previously, Enkidu93 (Eli C. Lowry) wrote…

Maybe just CorporaTests? Why DataCorporaTests? I guess it's TranslationEngineTests not EngineTests, but it's also justDataFileTests and WebhookTests.

Agree

Copy link
Collaborator

@Enkidu93 Enkidu93 left a 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.

@johnml1135
Copy link
Collaborator Author

src/Serval/test/Serval.ApiServer.IntegrationTests/DataCorporaTests.cs line 5 at r1 (raw file):

Previously, Enkidu93 (Eli C. Lowry) wrote…

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.

Maybe.

@johnml1135 johnml1135 merged commit 6037946 into main Jan 9, 2025
2 of 3 checks passed
@johnml1135 johnml1135 deleted the corpora_integration_tests branch January 9, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants