From 62d7ba580b686f499793d47fe5f192b8736814a1 Mon Sep 17 00:00:00 2001 From: cpathipa <119517080+cpathipa@users.noreply.github.com> Date: Wed, 10 Sep 2025 14:41:28 -0500 Subject: [PATCH 1/6] Bump version --- packages/manager/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/manager/package.json b/packages/manager/package.json index a53d571a399..dc9ae0e0880 100644 --- a/packages/manager/package.json +++ b/packages/manager/package.json @@ -2,7 +2,7 @@ "name": "linode-manager", "author": "Linode", "description": "The Linode Manager website", - "version": "1.150.0", + "version": "1.150.1", "private": true, "type": "module", "bugs": { From 83b3ef3b0a26f3d9eb72558acaa8ade8eaa95bcf Mon Sep 17 00:00:00 2001 From: Conal Ryan <136115382+corya-akamai@users.noreply.github.com> Date: Wed, 10 Sep 2025 15:59:31 -0400 Subject: [PATCH 2/6] fix: [M3-10612] - Creating a firewall fails after creating a kubernetes (#12859) * fix: [M3-10612] - Creating a firewall fails after creating a kubernetes cluster * Changeset --------- Co-authored-by: Conal Ryan --- packages/manager/.changeset/pr-12859-fixed-1757533619522.md | 5 +++++ packages/manager/package.json | 2 +- packages/manager/src/features/IAM/hooks/usePermissions.ts | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 packages/manager/.changeset/pr-12859-fixed-1757533619522.md diff --git a/packages/manager/.changeset/pr-12859-fixed-1757533619522.md b/packages/manager/.changeset/pr-12859-fixed-1757533619522.md new file mode 100644 index 00000000000..c8d7a007910 --- /dev/null +++ b/packages/manager/.changeset/pr-12859-fixed-1757533619522.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Fixed +--- + +Fix the error "Something went wrong" on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) diff --git a/packages/manager/package.json b/packages/manager/package.json index dc9ae0e0880..3a178ec39d7 100644 --- a/packages/manager/package.json +++ b/packages/manager/package.json @@ -189,4 +189,4 @@ "Firefox ESR", "not dead" ] -} \ No newline at end of file +} diff --git a/packages/manager/src/features/IAM/hooks/usePermissions.ts b/packages/manager/src/features/IAM/hooks/usePermissions.ts index 155cbf37bd1..29a05aed948 100644 --- a/packages/manager/src/features/IAM/hooks/usePermissions.ts +++ b/packages/manager/src/features/IAM/hooks/usePermissions.ts @@ -181,7 +181,8 @@ export const useQueryWithPermissions = ( const permissions = entityPermissionsMap[entity.id]; return ( !profile?.restricted || - permissionsToCheck.every((permission) => permissions[permission]) + (permissions && + permissionsToCheck.every((permission) => permissions[permission])) ); }); From c7f01a9c317afa2c7343c1673a675c865854741e Mon Sep 17 00:00:00 2001 From: cpathipa <119517080+cpathipa@users.noreply.github.com> Date: Wed, 10 Sep 2025 15:04:34 -0500 Subject: [PATCH 3/6] Change log --- .../manager/.changeset/pr-12859-fixed-1757533619522.md | 5 ----- packages/manager/CHANGELOG.md | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 packages/manager/.changeset/pr-12859-fixed-1757533619522.md diff --git a/packages/manager/.changeset/pr-12859-fixed-1757533619522.md b/packages/manager/.changeset/pr-12859-fixed-1757533619522.md deleted file mode 100644 index c8d7a007910..00000000000 --- a/packages/manager/.changeset/pr-12859-fixed-1757533619522.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@linode/manager": Fixed ---- - -Fix the error "Something went wrong" on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) diff --git a/packages/manager/CHANGELOG.md b/packages/manager/CHANGELOG.md index aff53521328..de7f1af955b 100644 --- a/packages/manager/CHANGELOG.md +++ b/packages/manager/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2025-09-10] - v1.150.1 + + +### Fixed: + +- Fix the error "Something went wrong" on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) + ## [2025-09-09] - v1.150.0 ### Added: From 350e09ec29826ffb177c4c892b886f8c929377f8 Mon Sep 17 00:00:00 2001 From: cpathipa <119517080+cpathipa@users.noreply.github.com> Date: Wed, 10 Sep 2025 16:18:01 -0500 Subject: [PATCH 4/6] Update packages/manager/CHANGELOG.md Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com> --- packages/manager/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/manager/CHANGELOG.md b/packages/manager/CHANGELOG.md index de7f1af955b..af6aa4fdba9 100644 --- a/packages/manager/CHANGELOG.md +++ b/packages/manager/CHANGELOG.md @@ -9,7 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed: -- Fix the error "Something went wrong" on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) +- "Something went wrong" error on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) ## [2025-09-09] - v1.150.0 From 6fdf11fed2deb863d9f3f5023e7d27ac5f215622 Mon Sep 17 00:00:00 2001 From: Alban Bailly <130582365+abailly-akamai@users.noreply.github.com> Date: Thu, 11 Sep 2025 18:55:05 +0200 Subject: [PATCH 5/6] fix: [UIE-9174] - Restricted user with read-write billing access, unable to access billing (#12861) * fix account/billing * fix account fetching for restricted users * Revert "fix account fetching for restricted users" This reverts commit 31856224a7b1face37c9f7351c3d2613717852b0. * keep account query enabled * make the same change for account settings * add changelog entry --------- Co-authored-by: Banks Nussman --- packages/manager/CHANGELOG.md | 1 + packages/queries/src/account/account.ts | 6 ++---- packages/queries/src/account/settings.ts | 4 ---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/manager/CHANGELOG.md b/packages/manager/CHANGELOG.md index af6aa4fdba9..6df32b22e92 100644 --- a/packages/manager/CHANGELOG.md +++ b/packages/manager/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed: - "Something went wrong" error on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) +- Restricted user with account access unable to access billing page on new session ([#12861](https://github.com/linode/manager/pull/12861)) ## [2025-09-09] - v1.150.0 diff --git a/packages/queries/src/account/account.ts b/packages/queries/src/account/account.ts index 3fcab66660d..6f554902b29 100644 --- a/packages/queries/src/account/account.ts +++ b/packages/queries/src/account/account.ts @@ -17,14 +17,12 @@ import type { Token, } from '@linode/api-v4'; -export const useAccount = () => { - const { data: profile } = useProfile(); - +export const useAccount = (enabled: boolean = true) => { return useQuery({ ...accountQueries.account, ...queryPresets.oneTimeFetch, ...queryPresets.noRetry, - enabled: !profile?.restricted, + enabled, }); }; diff --git a/packages/queries/src/account/settings.ts b/packages/queries/src/account/settings.ts index b17d7d6ced5..5a525f25c39 100644 --- a/packages/queries/src/account/settings.ts +++ b/packages/queries/src/account/settings.ts @@ -2,7 +2,6 @@ import { updateAccountSettings } from '@linode/api-v4/lib/account'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { queryPresets } from '../base'; -import { useProfile } from '../profile'; import { accountQueries } from './queries'; import type { AccountSettings } from '@linode/api-v4/lib/account'; @@ -10,13 +9,10 @@ import type { APIError } from '@linode/api-v4/lib/types'; import type { QueryClient } from '@tanstack/react-query'; export const useAccountSettings = () => { - const { data: profile } = useProfile(); - return useQuery({ ...accountQueries.settings, ...queryPresets.oneTimeFetch, ...queryPresets.noRetry, - enabled: !profile?.restricted, }); }; From 1ddcf6e93c465cb47b200bf9d7ce5401289b5171 Mon Sep 17 00:00:00 2001 From: cpathipa <119517080+cpathipa@users.noreply.github.com> Date: Thu, 11 Sep 2025 12:32:59 -0500 Subject: [PATCH 6/6] Adjust changelog and dates --- packages/manager/CHANGELOG.md | 4 +--- packages/queries/CHANGELOG.md | 6 ++++++ packages/queries/package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/manager/CHANGELOG.md b/packages/manager/CHANGELOG.md index 6df32b22e92..da6ce3d28fa 100644 --- a/packages/manager/CHANGELOG.md +++ b/packages/manager/CHANGELOG.md @@ -4,13 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [2025-09-10] - v1.150.1 - +## [2025-09-11] - v1.150.1 ### Fixed: - "Something went wrong" error on firewall create ([#12859](https://github.com/linode/manager/pull/12859)) -- Restricted user with account access unable to access billing page on new session ([#12861](https://github.com/linode/manager/pull/12861)) ## [2025-09-09] - v1.150.0 diff --git a/packages/queries/CHANGELOG.md b/packages/queries/CHANGELOG.md index bcaed67d166..40eff0000f7 100644 --- a/packages/queries/CHANGELOG.md +++ b/packages/queries/CHANGELOG.md @@ -1,3 +1,9 @@ +## [2025-09-11] - v0.13.1 + +### Fixed: + +- Restricted user with account access unable to access billing page on new session ([#12861](https://github.com/linode/manager/pull/12861)) + ## [2025-09-09] - v0.13.0 ### Upcoming Features: diff --git a/packages/queries/package.json b/packages/queries/package.json index ffcf3041600..e5472496687 100644 --- a/packages/queries/package.json +++ b/packages/queries/package.json @@ -1,6 +1,6 @@ { "name": "@linode/queries", - "version": "0.13.0", + "version": "0.13.1", "description": "Linode Utility functions library", "main": "src/index.js", "module": "src/index.ts",