uffizzi_core 2.4.3 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ddd0b04cdd1184aac854bda590b5974a82ab9e487372436d2d324fdf0891230
4
- data.tar.gz: 227ea9de7c5e0a165a81794e35dca890d07975dedfa75eff818381c3647f4cf6
3
+ metadata.gz: de770239e2d7ad289688025adc9ef1138600a603022ce0411c52e5b6ff7db9f6
4
+ data.tar.gz: 25dc620adba8b17778713735e1555d7b334e03cf8d548ed42f9206416ef72da7
5
5
  SHA512:
6
- metadata.gz: 742f5a2aac4a9968eb63eca265d56402e5ed9b56b43a4a48541f67c6408aed38334b5753ea26136bef84a2dbba10d20d0ddcc6f8b86c8487831c66ac30f2760d
7
- data.tar.gz: eead9c79725fca592f3d7ecdf4ae4df12a512722d36603200fc20bfb3b34ad46a81c9ace30ff68977195841d6d48ce678107fb61fd9bf5ca1271ad873c5ecd65
6
+ metadata.gz: a61eaa2047260adf43bee8a75a62d9c8088677dcc5db29f8a073c36871ea784a777da245a21dee7b6c99aead6b75105e4f0f66d4b893f276f542fef9358c626f
7
+ data.tar.gz: 673f8da809540ace351849be908e0ee2c4d3e3c1d7cb03fd9ed56145a67738bf0175162bbe18e8724d21a34a2415e5c773d3334a07c47e5647dda84fd7ceaf0e
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module UffizziCore::Api::Cli::V1::AccountsControllerModule
4
+ def update; end
5
+ end
@@ -3,6 +3,8 @@
3
3
  # @resource Project
4
4
 
5
5
  class UffizziCore::Api::Cli::V1::AccountsController < UffizziCore::Api::Cli::V1::ApplicationController
6
+ include UffizziCore::Api::Cli::V1::AccountsControllerModule
7
+
6
8
  before_action :authorize_uffizzi_core_api_cli_v1_accounts
7
9
 
8
10
  # Get accounts of current user
@@ -78,6 +78,7 @@ module UffizziCore::Concerns::Models::Cluster
78
78
  :deploying,
79
79
  :deployed,
80
80
  :scaling_down,
81
+ :scaling_up,
81
82
  :scaled_down,
82
83
  :failed,
83
84
  ], to: :disabled
@@ -8,4 +8,8 @@ class UffizziCore::Api::Cli::V1::AccountsPolicy < UffizziCore::ApplicationPolicy
8
8
  def show?
9
9
  context.user_access_module.any_access_to_account?(context.user, context.account)
10
10
  end
11
+
12
+ def update?
13
+ false
14
+ end
11
15
  end
data/config/routes.rb CHANGED
@@ -51,7 +51,7 @@ UffizziCore::Engine.routes.draw do
51
51
  resource :session, only: ['create']
52
52
  end
53
53
 
54
- resources :accounts, only: ['show'], param: :name
54
+ resources :accounts, only: ['show', 'update'], param: :name
55
55
 
56
56
  resources :accounts, only: ['index'] do
57
57
  scope module: :accounts do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.4.3'
4
+ VERSION = '2.4.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uffizzi_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-18 00:00:00.000000000 Z
12
+ date: 2024-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm
@@ -777,6 +777,7 @@ files:
777
777
  - app/contexts/uffizzi_core/project/cluster_context.rb
778
778
  - app/contexts/uffizzi_core/project_context.rb
779
779
  - app/contexts/uffizzi_core/webhooks_context.rb
780
+ - app/controller_modules/uffizzi_core/api/cli/v1/accounts_controller_module.rb
780
781
  - app/controller_modules/uffizzi_core/api/cli/v1/projects/clusters_controller_module.rb
781
782
  - app/controller_modules/uffizzi_core/api/cli/v1/projects/deployments_controller_module.rb
782
783
  - app/controller_modules/uffizzi_core/api/cli/v1/projects_controller_module.rb