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

Add getLatestOsVersions in hostapp model #1062

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JSReds
Copy link
Contributor

@JSReds JSReds commented Mar 8, 2021

Add getLatestOsVersions method in hostapp model

Change-type: minor
Signed-off-by: Andrea Rosci andrear@balena.io


Contributor checklist
  • Includes tests
  • Includes typings
  • Includes updated documentation
  • Includes updated build output

@JSReds JSReds requested a review from a team as a code owner March 8, 2021 12:12
@JSReds JSReds self-assigned this Mar 8, 2021
tests/integration/models/hostapp.spec.ts Outdated Show resolved Hide resolved
@@ -227,6 +234,14 @@ const getHostappModel = function (deps: InjectedDependenciesParam) {
is_invalidated: false,
},
},
should_be_running__release: {
Copy link
Member

Choose a reason for hiding this comment

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

How about creating a separate object, so that we don't retrieve all the data in both methods?
I might be missing something, but it looks like should_be_running__release isn't used anywhere in this file ?!?!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes sorry we can remove it, I was testing if it was possible to reuse the same method that handle the owns__release array to also handle should_be_running__releaseand get the latest versions from there. But as far as I can see it's not exactly reliable

Add getLatestOsVersions method in hostapp model

Change-type: minor
Signed-off-by: Andrea Rosci <andrear@balena.io>
@JSReds JSReds force-pushed the add-get-latest-os-versions branch from b6885eb to 79b45e9 Compare March 8, 2021 12:57
@JSReds JSReds requested a review from thgreasi March 8, 2021 13:00
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