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

Do not throw exceptions for empty model number #1243

Merged
merged 4 commits into from
Nov 19, 2024
Merged

Conversation

rmunn
Copy link
Contributor

@rmunn rmunn commented Nov 18, 2024

Fix #1242.

If a project is empty, the FLEx model version command returns an empty string. HgService.GetModelVersionOfFlexProject should not throw an exception in such cases, but simply return null meaning "can't find the FLEx model".

@rmunn rmunn self-assigned this Nov 18, 2024
@rmunn rmunn requested a review from hahn-kev November 18, 2024 06:28
Copy link

github-actions bot commented Nov 18, 2024

C# Unit Tests

90 tests  ±0   90 ✅ ±0   5s ⏱️ ±0s
14 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit fd3d217. ± Comparison against base commit 10a107f.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@hahn-kev hahn-kev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lots of edge cases here

backend/LexBoxApi/Services/HgService.cs Outdated Show resolved Hide resolved
@rmunn rmunn requested a review from hahn-kev November 19, 2024 01:03
@hahn-kev
Copy link
Collaborator

feel free to ignore that test failure and merge, I've seen it on other PRs and it's been fixed in develop

@rmunn rmunn merged commit 77f6b3c into develop Nov 19, 2024
7 of 8 checks passed
@rmunn rmunn deleted the bug/empty-model-version branch November 19, 2024 10:16
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.

HgService.GetModelVersionOfFlexProject will throw if the project is empty
3 participants