-
Notifications
You must be signed in to change notification settings - Fork 121
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
Implement the repository URL #3192
base: develop
Are you sure you want to change the base?
Conversation
// retrieve information from the mod_info.lua to send to the API | ||
ModVersion modVersion = extractModInfo(modPath); | ||
modUploadTask.setRepositoryURL(modVersion.mod().repositoryURL()); |
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.
This can be moved into the ModUploadTask itself
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.
Processed in 26166cb
// retrieve information from the mod_info.lua to send to the API | ||
|
||
ModVersion modVersionInfo = modService.extractModInfo(modPath); | ||
URL repositoryURL = modVersionInfo.mod().repositoryURL(); |
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.
This is shadowing the field repositoryUrl now. So the field should be removed or this should set the field if it is null.
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.
Processed in: 57ff0b3
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3192 +/- ##
=============================================
- Coverage 58.83% 58.50% -0.33%
- Complexity 3984 4085 +101
=============================================
Files 576 581 +5
Lines 19296 19791 +495
Branches 1022 1035 +13
=============================================
+ Hits 11353 11579 +226
- Misses 7447 7707 +260
- Partials 496 505 +9
... and 14 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
runOnFxThreadAndWait(() -> instance.setModVersion(modVersion)); | ||
WaitForAsyncUtils.waitForFxEvents(); |
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.
technically you don't need WaitForAsyncUtils.waitForFxEvents if you run things with runOnFxThreadAndWait
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.
Processed in 23ab26f
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.
Looking at this I think we may want to check the repository url before uploading the mod. The API only accepts certain hosts as the repository url for a mod. And we could probably give a better error message if we detect it earlier.
Relates to:
mod_info.lua
faf-java-api#564It's shown as the 'Source' link, below the author. Visually it is not ideal, but we can improve that separately.