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

Fix v6 image.image_size no longer being a number #1738

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

@thgreasi thgreasi changed the title Fix v6 image.image_size no longer being a number [POC] Fix v6 image.image_size no longer being a number Aug 27, 2024
@thgreasi thgreasi force-pushed the v6-number-image-image-size- branch 4 times, most recently from 43d566a to cd708ee Compare September 3, 2024 16:01
@thgreasi thgreasi changed the title [POC] Fix v6 image.image_size no longer being a number Fix v6 image.image_size no longer being a number Sep 4, 2024
@thgreasi thgreasi marked this pull request as ready for review September 4, 2024 07:21
@thgreasi thgreasi marked this pull request as draft September 4, 2024 07:21
@thgreasi thgreasi requested a review from Page- September 4, 2024 08:35
@thgreasi thgreasi force-pushed the v6-number-image-image-size- branch 2 times, most recently from 8c6afed to d8fa262 Compare September 17, 2024 16:28
@thgreasi thgreasi requested review from Page- and removed request for Page- September 17, 2024 16:31
src/index.ts Outdated
*/
export const augmentedTypes = {
'@balena/sbvr-types': {
'Numeric Big Integer': numericBigInteger,
Copy link
Member Author

Choose a reason for hiding this comment

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

This allows consumers to have their v6 model typings work without having to manually import the numeric-big-integer-hack (or redeclare the augmented typed).
We can perhaps in the future can start adding more typings here which we atm have only in oB, like balena-device-config.ts or even common.ts

@thgreasi thgreasi marked this pull request as ready for review September 17, 2024 17:10
@thgreasi thgreasi marked this pull request as draft September 17, 2024 17:10
@thgreasi thgreasi marked this pull request as ready for review September 18, 2024 07:36
src/translations/v6/numeric-big-integer-hack.ts Outdated Show resolved Hide resolved
@@ -140,7 +140,7 @@ Term: image location
Concept Type: Short Text (Type)

Term: image size
Concept Type: Big Integer (Type)
Concept Type: Integer (Type)
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to leave this as a big integer type here? It shouldn't affect anything other than knowing this is actually a big integer in the db rather than an integer when looking at it

Suggested change
Concept Type: Integer (Type)
Concept Type: Big Integer (Type)

@thgreasi thgreasi force-pushed the v6-number-image-image-size- branch 2 times, most recently from 8a889b0 to 6463e12 Compare September 18, 2024 14:14
@thgreasi thgreasi requested a review from Page- September 18, 2024 14:14
src/index.ts Outdated Show resolved Hide resolved
Update @balena/pinejs from 19.0.0 to 19.0.1

Change-type: patch
Copy link
Contributor

@Page- Page- left a comment

Choose a reason for hiding this comment

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

Looks good but I'll wait to approve as I expect that merging atm would be a bit of a pain

@flowzone-app flowzone-app bot merged commit 8a9e289 into master Sep 30, 2024
50 checks passed
@flowzone-app flowzone-app bot deleted the v6-number-image-image-size- branch September 30, 2024 11:34
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