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

device management 1: Add 'is pinned on-release' column and synchronize values from 'should be running release' #1639

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

JSReds
Copy link
Contributor

@JSReds JSReds commented May 16, 2024

@JSReds JSReds self-assigned this May 16, 2024
@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch 7 times, most recently from 1deaafb to 8207171 Compare May 23, 2024 12:56
@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch from 8207171 to 4f7db04 Compare May 28, 2024 10:11
@JSReds JSReds requested review from thgreasi and fisehara May 28, 2024 10:13
CREATE INDEX IF NOT EXISTS "device_should_be_running_release_application_idx"
ON "device" ("should be running-release", "belongs to-application");
CREATE INDEX IF NOT EXISTS "device_should_be_operated_by_release_device_type_idx"
ON "device" ("should be operated by-release", "is of-device type");
-- Also optimizes the supervisor cpu arch should match device cpu arch rule
CREATE INDEX IF NOT EXISTS "device_should_be_managed_by__release_device_type_idx"
ON "device" ("should be managed by-release", "is of-device type");
-- Also optimizes is pinned on successful release rule
CREATE INDEX IF NOT EXISTS "device_is_pinned_on_release_idx"
Copy link
Member

Choose a reason for hiding this comment

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

NIT: I would move this exactly below device_should_be_running_release_application_idx and add a TODO to the latter to drop it after the migration is complete.

@thgreasi
Copy link
Member

We also NEED to add a reference to the fibery project in the description (and commit).

@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch 2 times, most recently from d71661e to 28ad9cb Compare May 29, 2024 09:59
src/balena-init.sql Outdated Show resolved Hide resolved
src/balena-init.sql Outdated Show resolved Hide resolved
@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch 4 times, most recently from 5672de0 to 289cdf0 Compare May 29, 2024 13:55
@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch from 289cdf0 to b1e340d Compare May 29, 2024 14:32
@JSReds JSReds requested a review from thgreasi May 30, 2024 13:42
@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch 3 times, most recently from 7083824 to 41429ca Compare May 30, 2024 14:34
@JSReds JSReds marked this pull request as ready for review June 4, 2024 13:33
@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch from 41429ca to 789f692 Compare June 5, 2024 13:28
@flowzone-app flowzone-app bot enabled auto-merge June 5, 2024 13:38
@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch from 789f692 to 97ed591 Compare June 5, 2024 15:57
@thgreasi thgreasi marked this pull request as draft June 5, 2024 15:57
auto-merge was automatically disabled June 5, 2024 15:57

Pull request was converted to draft

@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch from 97ed591 to 4c26aea Compare June 5, 2024 15:58
Comment on lines 6 to 7
CREATE INDEX IF NOT EXISTS "device_is_pinned_on_release_idx"
ON "device" ("is pinned on-release");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
CREATE INDEX IF NOT EXISTS "device_is_pinned_on_release_idx"
ON "device" ("is pinned on-release");
CREATE INDEX IF NOT EXISTS "device_is_pinned_on_release_application_idx"
ON "device" ("is pinned on-release", "belongs to-application");

…e values from 'should be running release'

Change-type: minor
@JSReds JSReds force-pushed the jsreds/add-device-piined-on-release branch from 4c26aea to a8ed7d1 Compare June 5, 2024 16:01
@thgreasi thgreasi marked this pull request as ready for review June 6, 2024 09:41
@thgreasi thgreasi merged commit 4c5d857 into master Jun 6, 2024
47 checks passed
@thgreasi thgreasi deleted the jsreds/add-device-piined-on-release branch June 6, 2024 09:41
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.

Should add and start filling the v7 device.is_pinned_on__release relation
2 participants