Skip to content

Conversation

philippthun
Copy link
Member

@philippthun philippthun commented Sep 30, 2025

Todos:

  1. Merge Lock app when creating service bindings #4577
  2. Create capi-release and major cf-d release
  3. Merge Remove service binding unique constraints to allow multiple bindings #4528
  4. Rebase this PR
  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

philippthun and others added 3 commits September 29, 2025 11:29
A "FOR UPDATE" lock on the app instance together with checks implemented
in Ruby ensure the same behavior as two unique constraints on database
level, which need to be removed to support multiple bindings between an
app and a service instance.

The two checks are:
- the number of bindings from an app to a service instance is below the
  configured limit
- no other binding (to another service instance) for this app has the
  same name

The validate_app_guid_name_uniqueness! method has been moved after the
validation of already existing bindings - this simplifies its
implementation.

Method incomplete_deletion! raises a different (more precise) error when
multiple bindings are active.

Some unused methods have been removed.

A test in spec/request/service_credential_bindings_spec.rb was not
executed ('it' inside 'before').

Tests in spec/unit/actions/service_credential_binding_app_create_spec.rb
have been reworked for consistence. Some unneeded (redundant) tests have
been removed.
@philippthun philippthun force-pushed the multiple-service-bindings branch from 93ab80d to 6949db7 Compare September 30, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants