Skip to content
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

[Storage][Webjobs] Hide blob name validation attribute. #15794

Merged

Conversation

kasobol-msft
Copy link
Contributor

In this PR:

  • Further reduce public surface:
    • Hide blob validation attribute. This is working fine if made internal as the caller of it is resolving by super type.

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Oct 8, 2020
@kasobol-msft kasobol-msft marked this pull request as ready for review October 8, 2020 17:28
@@ -20,7 +20,7 @@ namespace Microsoft.Azure.WebJobs.Description
/// Validate this on the client side so that we can get a user-friendly error rather than a 400 from the service.
/// See code here: http://social.msdn.microsoft.com/Forums/en-GB/windowsazuredata/thread/d364761b-6d9d-4c15-8353-46c6719a3392
/// </summary>
public class BlobNameValidationAttribute : ValidationAttribute
internal sealed class BlobNameValidationAttribute : ValidationAttribute
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Did you not carry the PublicSurface tests forward to this new repo? https://github.com/Azure/azure-webjobs-sdk/blob/5e410d7ae1c7c1b54b81b6a50faa5cc226deba5e/test/Microsoft.Azure.Webjobs.Extensions.Storage.UnitTests/PublicSurfaceTests.cs#L55. We had a set of useful tests that helped us verify public surface area.

Copy link
Contributor Author

@kasobol-msft kasobol-msft Oct 8, 2020

Choose a reason for hiding this comment

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

I did initially (See #15381 (comment) ). However the azure-sdk-for-net has an infrastructure to extract public surface into files like /api/Azure.WebJobs.Extensions.Storage.Blobs.netstandard2.0.cs (included in this diff) and warn against public area changes.
There's also a process to review public surface area before shipping any public preview or GA which is based on these extracts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good, thanks

@kasobol-msft kasobol-msft merged commit 8e24cb6 into Azure:master Oct 8, 2020
suhas92 pushed a commit to suhas92/azure-sdk-for-net that referenced this pull request Oct 12, 2020
annelo-msft pushed a commit to annelo-msft/azure-sdk-for-net that referenced this pull request Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants