-
Notifications
You must be signed in to change notification settings - Fork 14
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
available versions list unified by consider prereleases and core compatible in same function #368
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #368 +/- ##
=======================================
Coverage ? 59.36%
=======================================
Files ? 12
Lines ? 1110
Branches ? 0
=======================================
Hits ? 659
Misses ? 451
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
for more information, see https://pre-commit.ci
I test this in the old stack, all good for me. The update button is not wrongly activated anymore. |
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.
@unkcpz thanks so much for fixing this and adding a test. I also tested both in the new and old Docker stack.
My only request, while we are here, could you please add a bunch more tests for testing different scenarios for the AppRemoteUpdateStatus
:
- App is not registered. The
AppRemoteUpdateStatus
should be set accordingly. - App has a compatible update.
- App is at the latest version.
2df9d9e
to
1be329c
Compare
1be329c
to
f644388
Compare
The first is covered by |
@unkcpz thanks! I will review and test again this evening. |
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.
@unkcpz just a one ask to change the app path in the fixture.
test_update_status_of_unregistred_app, 2 and 3 are covered by test_update_status_latest_version_incompatible already.
I don't see the case where an app is installed and has a valid update available so that its status is AppRemoteUpdateStatus.UPDATE_AVAILABLE
. I guess just adding an assert for this to some existing test would suffice?
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.
Cheers!
fixes #360
The
available_versions
of _AiidalabApp data class object not considered core compatible. The core compatible check is implement independently and sporadically when theavailable_versions
list is required.This commit add the core compatible check inside the function
available_versions
of _AiidalabApp class to get the only usable versions for both when prereleases option is on and off. Therefore the version list conforms with what is shown in the version_to_install dropdown option.