Skip to content

Commit 574b1e1

Browse files
committed
Merge remote-tracking branch 'upstream/main' into rate-limits-info
2 parents 7099f72 + 8da78dd commit 574b1e1

File tree

121 files changed

+3686
-1867
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3686
-1867
lines changed

.devcontainer/images/uaa/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN yq e '.issuer.uri = "http://localhost:8080"' -i /uaa.yml \
2020
&& yq e '.uaa.url = .issuer.uri' -i /uaa.yml
2121

2222
# Runtime image
23-
FROM tomcat:9-jdk21
23+
FROM tomcat:10-jdk21
2424

2525
# Copy config file from yq image
2626
COPY --from=yq /uaa.yml /uaa.yml

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
image: ["postgres:13", "postgres:15", "postgres:16"]
46+
image: ["postgres:13", "postgres:15", "postgres:17"]
4747
services:
4848
postgres:
4949
image: ${{ matrix.image }}

.github/workflows/unit_tests_backwards_compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
fail-fast: false
3434
max-parallel: 3
3535
matrix:
36-
image: ["postgres:13", "postgres:15", "postgres:16"]
36+
image: ["postgres:13", "postgres:15", "postgres:17"]
3737
services:
3838
postgres:
3939
image: ${{ matrix.image }}

Gemfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ gem 'puma'
3232
gem 'rake'
3333
gem 'redis'
3434
gem 'rubyzip', '>= 1.3.0'
35-
gem 'sequel', '~> 5.94'
35+
gem 'sequel', '~> 5.95'
3636
gem 'sequel_pg', require: 'sequel'
3737
gem 'sinatra', '~> 3.2'
3838
gem 'sinatra-contrib'
@@ -41,7 +41,7 @@ gem 'statsd-ruby', '~> 1.5.0'
4141
gem 'steno'
4242
gem 'talentbox-delayed_job_sequel', '~> 4.3.0'
4343
gem 'thin'
44-
gem 'uri', '~> 0.13'
44+
gem 'uri', '~> 1.0'
4545
gem 'vmstat', '~> 2.3'
4646

4747
# Rails Components
@@ -55,8 +55,8 @@ gem 'azure-storage-blob', git: 'https://github.com/sethboyles/azure-storage-ruby
5555
gem 'fog-aliyun'
5656
gem 'fog-aws'
5757
gem 'fog-azure-rm', git: 'https://github.com/fog/fog-azure-rm.git', branch: 'fog-arm-cf'
58-
gem 'fog-core', '~> 2.4.0'
59-
gem 'fog-google', '~> 1.24.1'
58+
gem 'fog-core', '~> 2.6.0'
59+
gem 'fog-google', '~> 1.25.0'
6060
gem 'fog-local'
6161
gem 'fog-openstack'
6262

@@ -84,7 +84,7 @@ group :test do
8484
gem 'rspec-its'
8585
gem 'rspec-rails', '~> 8.0.1'
8686
gem 'rspec-wait'
87-
gem 'rubocop', '~> 1.75.8'
87+
gem 'rubocop', '~> 1.79.1'
8888
gem 'rubocop-capybara'
8989
gem 'rubocop-factory_bot'
9090
gem 'rubocop-rails', '~> 2.32'

Gemfile.lock

Lines changed: 46 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ GEM
103103
azure_mgmt_traffic_manager (0.9.0)
104104
ms_rest_azure (~> 0.7.0)
105105
backport (1.2.0)
106-
base64 (0.2.0)
106+
base64 (0.3.0)
107107
beefcake (1.0.0)
108108
benchmark (0.4.1)
109109
bigdecimal (3.2.2)
@@ -145,7 +145,8 @@ GEM
145145
erb (5.0.1)
146146
erubi (1.13.1)
147147
eventmachine (1.2.7)
148-
excon (0.112.0)
148+
excon (1.2.8)
149+
logger
149150
faraday (0.17.6)
150151
multipart-post (>= 1.2, < 3)
151152
faraday-cookie_jar (0.0.7)
@@ -166,19 +167,19 @@ GEM
166167
fog-json
167168
ipaddress (~> 0.8)
168169
xml-simple (~> 1.1)
169-
fog-aws (3.28.0)
170-
base64 (~> 0.2.0)
171-
fog-core (~> 2.1)
170+
fog-aws (3.33.0)
171+
base64 (>= 0.2, < 0.4)
172+
fog-core (~> 2.6)
172173
fog-json (~> 1.1)
173174
fog-xml (~> 0.1)
174-
fog-core (2.4.0)
175+
fog-core (2.6.0)
175176
builder
176-
excon (~> 0.71)
177+
excon (~> 1.0)
177178
formatador (>= 0.2, < 2.0)
178179
mime-types
179-
fog-google (1.24.1)
180+
fog-google (1.25.0)
180181
addressable (>= 2.7.0)
181-
fog-core (< 2.5)
182+
fog-core (~> 2.5)
182183
fog-json (~> 1.2)
183184
fog-xml (~> 0.1.0)
184185
google-apis-compute_v1 (~> 0.53)
@@ -197,10 +198,10 @@ GEM
197198
fog-openstack (1.1.5)
198199
fog-core (~> 2.1)
199200
fog-json (>= 1.0)
200-
fog-xml (0.1.4)
201+
fog-xml (0.1.5)
201202
fog-core
202203
nokogiri (>= 1.5.11, < 2.0.0)
203-
formatador (1.1.0)
204+
formatador (1.1.1)
204205
google-apis-compute_v1 (0.86.0)
205206
google-apis-core (>= 0.11.0, < 2.a)
206207
google-apis-core (0.11.3)
@@ -279,13 +280,13 @@ GEM
279280
rdoc (>= 4.0.0)
280281
reline (>= 0.4.2)
281282
jaro_winkler (1.6.1)
282-
json (2.12.2)
283+
json (2.13.2)
283284
json-diff (0.4.1)
284285
json-schema (5.2.1)
285286
addressable (~> 2.8)
286287
bigdecimal (~> 3.1)
287288
json_pure (2.8.1)
288-
jwt (2.8.1)
289+
jwt (2.10.1)
289290
base64
290291
kramdown (2.5.1)
291292
rexml (>= 3.3.9)
@@ -315,11 +316,11 @@ GEM
315316
mime-types (3.7.0)
316317
logger
317318
mime-types-data (~> 3.2025, >= 3.2025.0507)
318-
mime-types-data (3.2025.0507)
319+
mime-types-data (3.2025.0805)
319320
mini_mime (1.1.5)
320321
mini_portile2 (2.8.9)
321322
minitest (5.25.5)
322-
mock_redis (0.50.0)
323+
mock_redis (0.51.0)
323324
redis (~> 5)
324325
ms_rest (0.6.4)
325326
concurrent-ruby (~> 1.0)
@@ -331,9 +332,9 @@ GEM
331332
faraday-cookie_jar (~> 0.0.6)
332333
ms_rest (~> 0.6.3)
333334
msgpack (1.7.2)
334-
multi_json (1.15.0)
335+
multi_json (1.17.0)
335336
multipart-parser (0.1.1)
336-
multipart-post (2.4.0)
337+
multipart-post (2.4.1)
337338
mustache (1.1.1)
338339
mustermann (3.0.0)
339340
ruby2_keywords (~> 0.0.1)
@@ -342,30 +343,32 @@ GEM
342343
net-ssh (7.3.0)
343344
netaddr (2.0.6)
344345
netrc (0.11.0)
345-
newrelic_rpm (9.19.0)
346+
newrelic_rpm (9.20.0)
346347
nio4r (2.7.4)
347-
nokogiri (1.18.8)
348+
nokogiri (1.18.9)
348349
mini_portile2 (~> 2.8.2)
349350
racc (~> 1.4)
350-
nokogiri (1.18.8-x86_64-darwin)
351+
nokogiri (1.18.9-x86_64-darwin)
351352
racc (~> 1.4)
352-
nokogiri (1.18.8-x86_64-linux-gnu)
353+
nokogiri (1.18.9-x86_64-linux-gnu)
353354
racc (~> 1.4)
354355
observer (0.1.2)
355356
oj (3.16.11)
356357
bigdecimal (>= 3.0)
357358
ostruct (>= 0.2)
358359
openssl (3.3.0)
359360
os (1.1.4)
360-
ostruct (0.6.2)
361+
ostruct (0.6.3)
361362
palm_civet (1.1.0)
362363
parallel (1.27.0)
363-
parallel_tests (5.3.0)
364+
parallel_tests (5.4.0)
364365
parallel
365-
parser (3.3.8.0)
366+
parser (3.3.9.0)
366367
ast (~> 2.4.1)
367368
racc
368-
pg (1.5.9)
369+
pg (1.6.1)
370+
pg (1.6.1-x86_64-darwin)
371+
pg (1.6.1-x86_64-linux)
369372
pp (0.6.2)
370373
prettyprint
371374
prettyprint (0.2.0)
@@ -382,7 +385,7 @@ GEM
382385
date
383386
stringio
384387
public_suffix (6.0.2)
385-
puma (6.6.0)
388+
puma (6.6.1)
386389
nio4r (~> 2.0)
387390
racc (1.8.1)
388391
rack (2.2.17)
@@ -421,9 +424,9 @@ GEM
421424
rdoc (6.14.1)
422425
erb
423426
psych (>= 4.0.0)
424-
redis (5.4.0)
427+
redis (5.4.1)
425428
redis-client (>= 0.22.0)
426-
redis-client (0.24.0)
429+
redis-client (0.25.1)
427430
connection_pool
428431
regexp_parser (2.10.0)
429432
reline (0.6.1)
@@ -477,18 +480,18 @@ GEM
477480
activesupport (>= 3.0.0)
478481
mustache (~> 1.0, >= 0.99.4)
479482
rspec (~> 3.0)
480-
rubocop (1.75.8)
483+
rubocop (1.79.1)
481484
json (~> 2.3)
482485
language_server-protocol (~> 3.17.0.2)
483486
lint_roller (~> 1.1.0)
484487
parallel (~> 1.10)
485488
parser (>= 3.3.0.2)
486489
rainbow (>= 2.2.2, < 4.0)
487490
regexp_parser (>= 2.9.3, < 3.0)
488-
rubocop-ast (>= 1.44.0, < 2.0)
491+
rubocop-ast (>= 1.46.0, < 2.0)
489492
ruby-progressbar (~> 1.7)
490493
unicode-display_width (>= 2.4.0, < 4.0)
491-
rubocop-ast (1.45.1)
494+
rubocop-ast (1.46.0)
492495
parser (>= 3.3.7.2)
493496
prism (~> 1.4)
494497
rubocop-capybara (2.22.1)
@@ -517,15 +520,15 @@ GEM
517520
ruby2_keywords (0.0.5)
518521
ruby_parser (3.8.3)
519522
sexp_processor (~> 4.1)
520-
rubyzip (2.4.1)
523+
rubyzip (3.0.0)
521524
securerandom (0.4.1)
522-
sequel (5.94.0)
525+
sequel (5.95.1)
523526
bigdecimal
524527
sequel_pg (1.17.2)
525528
pg (>= 0.18.0, != 1.2.0)
526529
sequel (>= 4.38.0)
527530
sexp_processor (4.7.0)
528-
signet (0.19.0)
531+
signet (0.20.0)
529532
addressable (~> 2.8)
530533
faraday (>= 0.17.5, < 3.a)
531534
jwt (>= 1.5, < 3.0)
@@ -546,7 +549,7 @@ GEM
546549
rack-protection (= 3.2.0)
547550
sinatra (= 3.2.0)
548551
tilt (~> 2.0)
549-
solargraph (0.56.1)
552+
solargraph (0.56.2)
550553
backport (~> 1.2)
551554
benchmark (~> 0.4)
552555
bundler (~> 2.0)
@@ -566,7 +569,7 @@ GEM
566569
tilt (~> 2.0)
567570
yard (~> 0.9, >= 0.9.24)
568571
yard-solargraph (~> 0.1)
569-
spring (4.3.0)
572+
spring (4.4.0)
570573
spring-commands-rspec (1.0.4)
571574
spring (>= 0.9.1)
572575
sshkey (3.0.0)
@@ -584,7 +587,7 @@ GEM
584587
eventmachine (~> 1.0, >= 1.0.4)
585588
logger
586589
rack (>= 1, < 4)
587-
thor (1.3.2)
590+
thor (1.4.0)
588591
tilt (2.6.1)
589592
timecop (0.9.10)
590593
timeliness (0.4.5)
@@ -595,7 +598,7 @@ GEM
595598
unicode-display_width (3.1.4)
596599
unicode-emoji (~> 4.0, >= 4.0.4)
597600
unicode-emoji (4.0.4)
598-
uri (0.13.2)
601+
uri (1.0.3)
599602
useragent (0.16.11)
600603
vhd (0.0.4)
601604
bit-struct
@@ -638,8 +641,8 @@ DEPENDENCIES
638641
fog-aliyun
639642
fog-aws
640643
fog-azure-rm!
641-
fog-core (~> 2.4.0)
642-
fog-google (~> 1.24.1)
644+
fog-core (~> 2.6.0)
645+
fog-google (~> 1.25.0)
643646
fog-local
644647
fog-openstack
645648
googleapis-common-protos (>= 1.8.0)
@@ -682,15 +685,15 @@ DEPENDENCIES
682685
rspec-rails (~> 8.0.1)
683686
rspec-wait
684687
rspec_api_documentation (>= 6.1.0)
685-
rubocop (~> 1.75.8)
688+
rubocop (~> 1.79.1)
686689
rubocop-capybara
687690
rubocop-factory_bot
688691
rubocop-rails (~> 2.32)
689692
rubocop-rspec (~> 3.6)
690693
rubocop-rspec_rails
691694
rubocop-sequel (~> 0.4.1)
692695
rubyzip (>= 1.3.0)
693-
sequel (~> 5.94)
696+
sequel (~> 5.95)
694697
sequel_pg
695698
sinatra (~> 3.2)
696699
sinatra-contrib
@@ -704,7 +707,7 @@ DEPENDENCIES
704707
talentbox-delayed_job_sequel (~> 4.3.0)
705708
thin
706709
timecop
707-
uri (~> 0.13)
710+
uri (~> 1.0)
708711
vmstat (~> 2.3)
709712
webmock (> 2.3.1)
710713

app/controllers/v3/spaces_controller.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'presenters/v3/paginated_list_presenter'
22
require 'presenters/v3/space_presenter'
3+
require 'presenters/v3/space_usage_summary_presenter'
34
require 'messages/space_create_message'
45
require 'messages/space_delete_unmapped_routes_message'
56
require 'messages/space_update_message'
@@ -211,6 +212,14 @@ def list_members
211212
raise CloudController::Errors::ApiError.new_from_details('UaaUnavailable')
212213
end
213214

215+
def show_usage_summary
216+
space = fetch_space(hashed_params[:guid])
217+
space_not_found! unless space
218+
space_not_found! unless permission_queryer.can_read_from_space?(space.id, space.organization_id)
219+
220+
render status: :ok, json: Presenters::V3::SpaceUsageSummaryPresenter.new(space)
221+
end
222+
214223
private
215224

216225
def fetch_organization(guid)

0 commit comments

Comments
 (0)