Skip to content

Conversation

@adecaro
Copy link
Contributor

@adecaro adecaro commented Aug 26, 2025

The goal of this PR is to allow the binding of multiple identities at the same time so to same in the number of DB connections when binding multiple identities. This will be used in the token-sdk.

@HayimShaul HayimShaul force-pushed the 1009-unite-multiple-binds-2 branch from 312e46b to 5625f77 Compare September 3, 2025 14:04
Copy link
Member

@mbrandenburger mbrandenburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for addressing my comments.

"github.com/stretchr/testify/require"
)

func TestPutBindings_MultipleEphemerals(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func TestPutBindings_MultipleEphemerals(t *testing.T) {
func TestPutBindingsMultipleEphemerals(t *testing.T) {

"github.com/stretchr/testify/require"
)

func TestPutBindings_MultipleEphemerals(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func TestPutBindings_MultipleEphemerals(t *testing.T) {
func TestPutBindingsMultipleEphemerals(t *testing.T) {

query += strings.Join(argsReferences, ", ")
query += " ON CONFLICT DO NOTHING;"

logger.DebugfContext(ctx, "executing bulk insert: %s", query)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if this should be really a debug message that also appears as tracing events.

This is a general questions for all logger.InfofContext in this PR. I would add tracing events only if you would gain additional knowledge in order to follow / understand the timing in traces. I think the traces should not be used as general log.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how it was before the changes I made.
Are you sure no one is expecting these in the trace?
Maybe handle this in a different PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, @mbrandenburger , we need to address this in a dedicate Issue/PR

@HayimShaul HayimShaul force-pushed the 1009-unite-multiple-binds-2 branch from 674d885 to 2cd3a22 Compare September 8, 2025 06:57
@AkramBitar AkramBitar self-requested a review September 8, 2025 11:49
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.

endpoint.Service: Bind multiple ephemeral identities at the same time

3 participants