Suggestion: [Naming] IsValidAsync is not an async function #612
|
Hello, just upgraded duende bff from v3 to v4 and found this function IReturnUrlValidator.IsValidAsync https://github.com/DuendeSoftware/products/blob/6f895793e6e26ce397c743d3bf1f9dc8ff8e732d/bff/src/Bff/Endpoints/IReturnUrlValidator.cs#L15 It was async then, diff: DuendeSoftware/products@3721b63#diff-43da3df752f9dc4c98eac28f16d7fb29cc817c25ff3dc5e1176c2ae5ad796e3a But it seems it's not the case anymore. |
Replies: 3 comments
|
Hey @Coldknife2, just wanted to let you know that we've discussed this with our engineers. We're still evaluating whether the method should indeed be renamed to be synchronous, or that the method should become asynchronous again. |
|
Thank you for reporting this. During the development of V4, we went back and forth a couple of times thinking if we wanted to make this async or not. Unfortunately it ended up somewhere in the middle. We've put it on our backlog to be picked up soon. |
|
Hi @Coldknife2, we've just released Duende.Bff v4.3.0, making |
Hi @Coldknife2, we've just released Duende.Bff v4.3.0, making
IReturnUrlValidator.IsValidAsyncasynchronous again. This restores the previous ability to fetch data from an asynchronous store if needed when validating a return URL.