Skip to content

Commit

Permalink
Merge pull request #3094 from balena-io/use-v7-in-api-requests
Browse files Browse the repository at this point in the history
Change the autogenerated pages to use the v7 model of the API
  • Loading branch information
thgreasi authored Oct 23, 2024
2 parents 68b78b4 + 830135e commit 30e97c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/_devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
// })
window.jQuery
.ajax({
url: "https://api.balena-cloud.com/v6/device_type?$select=name,slug,logo&$expand=is_of__cpu_architecture($select=slug)&$filter=is_default_for__application/any(idfa:((idfa/is_host%20eq%20true)%20and%20(idfa/is_archived%20eq%20false)%20and%20(idfa/owns__release/any(r:(status%20eq%20%27success%27)%20and%20(is_final%20eq%20true)%20and%20(is_invalidated%20eq%20false))))%20and%20not(contains(idfa/app_name,%27-esr%27)))&$orderby=name%20asc"
url: "https://api.balena-cloud.com/v7/device_type?$select=name,slug,logo&$expand=is_of__cpu_architecture($select=slug)&$filter=is_default_for__application/any(idfa:((idfa/is_host%20eq%20true)%20and%20(idfa/is_archived%20eq%20false)%20and%20(idfa/owns__release/any(r:(status%20eq%20%27success%27)%20and%20(is_final%20eq%20true)%20and%20(is_invalidated%20eq%20false))))%20and%20not(contains(idfa/app_name,%27-esr%27)))&$orderby=name%20asc"
})
.done(function (deviceTypesResponse) {
var table = _(deviceTypesResponse.d)
Expand Down
2 changes: 1 addition & 1 deletion templates/_esr_devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
// })
window.jQuery
.ajax({
url: "https://api.balena-cloud.com/v6/device_type?$select=name,slug,logo&$expand=is_of__cpu_architecture($select=slug)&$filter=is_default_for__application/any(idfa:((idfa/is_host%20eq%20true)%20and%20(idfa/is_archived%20eq%20false)%20and%20(idfa/owns__release/any(r:(status%20eq%20%27success%27)%20and%20(is_final%20eq%20true)%20and%20(is_invalidated%20eq%20false))))%20and(contains(idfa/app_name,%27-esr%27)))&$orderby=name%20asc"
url: "https://api.balena-cloud.com/v7/device_type?$select=name,slug,logo&$expand=is_of__cpu_architecture($select=slug)&$filter=is_default_for__application/any(idfa:((idfa/is_host%20eq%20true)%20and%20(idfa/is_archived%20eq%20false)%20and%20(idfa/owns__release/any(r:(status%20eq%20%27success%27)%20and%20(is_final%20eq%20true)%20and%20(is_invalidated%20eq%20false))))%20and(contains(idfa/app_name,%27-esr%27)))&$orderby=name%20asc"
})
.done(function (deviceTypesResponse) {
var table = _(deviceTypesResponse.d)
Expand Down
2 changes: 1 addition & 1 deletion templates/_machines-architectures.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(function () {
window.jQuery
.ajax({
url: "https://api.balena-cloud.com/v6/device_type?$select=name,slug&$expand=is_of__cpu_architecture($select=slug)&$filter=is_default_for__application/any(idfa:((idfa/is_host%20eq%20true)%20and%20(idfa/is_archived%20eq%20false))%20and%20not(contains(idfa/app_name,%27esr%27)))&$orderby=name%20asc"
url: "https://api.balena-cloud.com/v7/device_type?$select=name,slug&$expand=is_of__cpu_architecture($select=slug)&$filter=is_default_for__application/any(idfa:((idfa/is_host%20eq%20true)%20and%20(idfa/is_archived%20eq%20false))%20and%20not(contains(idfa/app_name,%27esr%27)))&$orderby=name%20asc"
})
.done(function (deviceTypes) {
var table = _(deviceTypes.d)
Expand Down

0 comments on commit 30e97c4

Please sign in to comment.