Skip to content

Commit 1e2bd65

Browse files
authored
Merge branch 'cloudfoundry:main' into keep_running_records
2 parents 801091c + 45cf242 commit 1e2bd65

File tree

26 files changed

+513
-242
lines changed

26 files changed

+513
-242
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ group :test do
8686
gem 'rubocop-capybara'
8787
gem 'rubocop-factory_bot'
8888
gem 'rubocop-rails', '~> 2.33'
89-
gem 'rubocop-rspec', '~> 3.7'
89+
gem 'rubocop-rspec', '~> 3.8'
9090
gem 'rubocop-rspec_rails'
9191
gem 'rubocop-sequel', '~> 0.4.1'
9292
gem 'timecop'

Gemfile.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ GEM
270270
rdoc (>= 4.0.0)
271271
reline (>= 0.4.2)
272272
jaro_winkler (1.6.1)
273-
json (2.15.2)
273+
json (2.16.0)
274274
json-diff (0.4.1)
275275
json-schema (6.0.0)
276276
addressable (~> 2.8)
@@ -303,7 +303,7 @@ GEM
303303
mini_mime (1.1.5)
304304
mini_portile2 (2.8.9)
305305
minitest (5.26.0)
306-
mock_redis (0.52.0)
306+
mock_redis (0.53.0)
307307
redis (~> 5)
308308
ms_rest (0.6.4)
309309
concurrent-ruby (~> 1.0)
@@ -327,7 +327,7 @@ GEM
327327
net-ssh (7.3.0)
328328
netaddr (2.0.6)
329329
netrc (0.11.0)
330-
newrelic_rpm (9.22.0)
330+
newrelic_rpm (9.23.0)
331331
nio4r (2.7.4)
332332
nokogiri (1.18.10)
333333
mini_portile2 (~> 2.8.2)
@@ -412,7 +412,7 @@ GEM
412412
tsort
413413
redis (5.4.1)
414414
redis-client (>= 0.22.0)
415-
redis-client (0.25.2)
415+
redis-client (0.26.1)
416416
connection_pool
417417
regexp_parser (2.11.3)
418418
reline (0.6.2)
@@ -477,13 +477,13 @@ GEM
477477
rubocop-ast (>= 1.47.1, < 2.0)
478478
ruby-progressbar (~> 1.7)
479479
unicode-display_width (>= 2.4.0, < 4.0)
480-
rubocop-ast (1.47.1)
480+
rubocop-ast (1.48.0)
481481
parser (>= 3.3.7.2)
482482
prism (~> 1.4)
483483
rubocop-capybara (2.22.1)
484484
lint_roller (~> 1.1)
485485
rubocop (~> 1.72, >= 1.72.1)
486-
rubocop-factory_bot (2.27.1)
486+
rubocop-factory_bot (2.28.0)
487487
lint_roller (~> 1.1)
488488
rubocop (~> 1.72, >= 1.72.1)
489489
rubocop-rails (2.33.4)
@@ -492,10 +492,10 @@ GEM
492492
rack (>= 1.1)
493493
rubocop (>= 1.75.0, < 2.0)
494494
rubocop-ast (>= 1.44.0, < 2.0)
495-
rubocop-rspec (3.7.0)
495+
rubocop-rspec (3.8.0)
496496
lint_roller (~> 1.1)
497-
rubocop (~> 1.72, >= 1.72.1)
498-
rubocop-rspec_rails (2.31.0)
497+
rubocop (~> 1.81)
498+
rubocop-rspec_rails (2.32.0)
499499
lint_roller (~> 1.1)
500500
rubocop (~> 1.72, >= 1.72.1)
501501
rubocop-rspec (~> 3.5)
@@ -677,7 +677,7 @@ DEPENDENCIES
677677
rubocop-capybara
678678
rubocop-factory_bot
679679
rubocop-rails (~> 2.33)
680-
rubocop-rspec (~> 3.7)
680+
rubocop-rspec (~> 3.8)
681681
rubocop-rspec_rails
682682
rubocop-sequel (~> 0.4.1)
683683
rubyzip (>= 1.3.0)

app/models/services/service_binding.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ def active_per_instance
148148
order: [Sequel.desc(:created_at), Sequel.desc(:id)]
149149
).as(:_rn)
150150
end.
151-
from_self.where(_rn: 1)
151+
from_self.where(_rn: 1).
152+
order_by(:id)
152153
end
153154
end
154155
end

config/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.206.0
1+
3.208.0

config/version_v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.271.0
1+
2.273.0

docs/v2/info/get_info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h4>Body</h4>
103103
"token_endpoint": "http://localhost:8080/uaa",
104104
"min_cli_version": null,
105105
"min_recommended_cli_version": null,
106-
"api_version": "2.271.0",
106+
"api_version": "2.273.0",
107107
"app_ssh_endpoint": "ssh.system.domain.example.com:2222",
108108
"app_ssh_host_key_fingerprint": "47:0d:d1:c8:c3:3d:0a:36:d1:49:2f:f2:90:27:31:d0",
109109
"app_ssh_oauth_client": null,

docs/v3/package-lock.json

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"cheerio": "^1.1.2",
2424
"express": "^5.1.0",
25-
"glob": "^11.0.3",
25+
"glob": "^11.1.0",
2626
"gulp": "^5.0.1",
2727
"gulp-cli": "^3.1.0",
2828
"linkinator": "^6.1.4"

lib/cloud_controller/rack_app_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'syslog/logger'
2-
require 'vcap_request_id'
2+
require 'vcap_request_context_setter'
33
require 'cors'
44
require 'request_metrics'
55
require 'request_logs'
@@ -24,7 +24,7 @@ def build(config, request_metrics, request_logs)
2424
Rack::Builder.new do
2525
use CloudFoundry::Middleware::RequestMetrics, request_metrics
2626
use CloudFoundry::Middleware::Cors, config.get(:allowed_cors_domains)
27-
use CloudFoundry::Middleware::VcapRequestId
27+
use CloudFoundry::Middleware::VcapRequestContextSetter
2828
use CloudFoundry::Middleware::BelowMinCliWarning if config.get(:warn_if_below_min_cli_version)
2929
use CloudFoundry::Middleware::NewRelicCustomAttributes if config.get(:newrelic_enabled)
3030
use CloudFoundry::Middleware::SecurityContextSetter, configurer

lib/cloud_controller/telemetry_logger.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def emit(event_name, entries, raw_entries={})
3131
INTEGER_FIELDS.include?(k)
3232
end.transform_values(&:to_i))
3333

34+
user_agent = ::VCAP::Request.user_agent
35+
converted_entries['user-agent'] = user_agent if user_agent.present?
36+
3437
resp = {
3538
'telemetry-source' => 'cloud_controller_ng',
3639
'telemetry-time' => Time.now.to_datetime.rfc3339,

0 commit comments

Comments
 (0)