-
Notifications
You must be signed in to change notification settings - Fork 818
Added new anti pattern blocking async code #7710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
sofietoft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @dhedgepeth ! π
Could you remove the changes to the v15 article from this PR? The version has been unpublished and removed, so that's why it's currently causing merge conflict.
Also, the vale linter is warning about the use of "relatively" and "significantly". Could you rewrite the sentences where these words are used?
Finally: Do you need a technical review on this as well?
|
Hey @sofietoft I've removed the changes to the v15 article and updated the articles to no longer use "significantly" or "relatively"π What's the right/best process for a technical review of the article? |
|
Great, @dhedgepeth ! Thanks for resolving the merge conflicts πͺ Post a link to the PR in the umbraco-cms channel on our internal Slack. |
|
The changes look good π But ... are we really supposed to document ASP.NET Core best practices in our documentation? One might argue that these things belong at the source (MS docs), not on our docs platform. Something to consider, before merging this. |
|
@kjac Totally agree, but we need this somewhere in our docs because we have a lot of customers in Cloud doing this, so maybe this does not belong to the CMS specifically. @dhedgepeth Maybe you could include the examples on how customers use |
|
@meyntony I think I will open a new PR to add the use of int.MaxValue I definitely see the argument since this is more .NET best practice, but we have seen an increase in customers using this antipattern. |
|
I agree that we shouldn't document common ASP.NET practices in our docunmentation, when we could refer them to Microsofts own docs instead. How about we do either of the following: a) Add a note to the beginning of this new section, mentioning how this is especially relevant for Cloud projects. I'm happy with either. |
|
@sofietoft ah but this is not especially relevant to Cloud projects. It is relevant to any .NET project, and perhaps ASP.NET Core projects in particular, since they're likely serving a lot of requests as public facing websites. Now, don't get me wrong... I don't mind this section being added. I simply wanted to note that we have historically shunned from replicating MS docs in our own to the extent possible, to avoid having to keep our docs in line with the MS docs. |
I guess we could point to the official docs describing this common pitfall from ours? Would it be this? https://learn.microsoft.com/en-us/dotnet/csharp/asynchronous-programming/async-scenarios#synchronous-access-to-asynchronous-operations The reason we need it in ours, is because customers use our docs to check what the common pitfalls are before submitting a Code Review ticket, and although this is specific to .NET implementation, its a very common anti pattern we notice almost in all the tickets we get these days. |
|
I should have been more clear: I merely meant that it sounds like Davis is adding this due to them seeing issue related to it on Cloud sites. I strongly agree that we should continue to shun from replicated the Microsoft docs in ours. We can't maintain those docs easily. @meyntony If we could describe it shortly in our docs, and then reference the microsoft docs article, that would be a great solution! |
π Description
Adds new section documenting an anti-pattern for blocking async code, something we are seeing more frequently.
β Contributor Checklist
I've followed the Umbraco Documentation Style Guide and can confirm that:
Product & Version (if relevant)
CMS 13-17
π Helpful Resources