Skip to content

feat: add StringSyntaxAttribute for guid and timespan args #48402

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

Closed
wants to merge 57 commits into from

Conversation

abc516
Copy link
Contributor

@abc516 abc516 commented May 24, 2023

#44535 (GuidFormat and TimeSpanFormat)

  • You've read the Contributor Guide and Code of Conduct.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Description

Adds the StringSyntaxAttribute for guid and timespan string function parameters, to specify syntax adherence.

@ghost ghost added area-runtime community-contribution Indicates that the PR has been added by a community member labels May 24, 2023
@ghost
Copy link

ghost commented May 24, 2023

Thanks for your PR, @abc516. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@abc516
Copy link
Contributor Author

abc516 commented May 24, 2023

@dotnet-policy-service agree

@abc516 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@dotnet-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@dotnet-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@dotnet-policy-service agree company="Microsoft"

Contributor License Agreement

@BrennanConroy
Copy link
Member

This is test code, applying the string syntax attribute isn't very interesting in these cases.

amcasey and others added 19 commits May 24, 2023 08:54
...to avoid false positive from debugger display types and simplify test for `X509Certificate`.
* Use `Type.IsByRefLike`.

* Inline `IsRefStructProperty`; it is used only once and is small.
* Update JSInProcessObjectReference.cs

Fix for bug dotnet#48280

* Add JSObjectReferences dispose tests

---------

Co-authored-by: Mackinnon Buck <[email protected]>
…48398)

* Transitive package to provide coherency in dotnet/extensions

* Update Version.Details.xml

---------

Co-authored-by: William Godbe <[email protected]>
* Update dependencies from https://github.com/dotnet/runtime build 20230524.1

Microsoft.Bcl.AsyncInterfaces , Microsoft.Extensions.Caching.Abstractions , Microsoft.Extensions.Caching.Memory , Microsoft.Extensions.Configuration , Microsoft.Extensions.Configuration.Abstractions , Microsoft.Extensions.Configuration.Binder , Microsoft.Extensions.Configuration.CommandLine , Microsoft.Extensions.Configuration.EnvironmentVariables , Microsoft.Extensions.Configuration.FileExtensions , Microsoft.Extensions.Configuration.Ini , Microsoft.Extensions.Configuration.Json , Microsoft.Extensions.Configuration.UserSecrets , Microsoft.Extensions.Configuration.Xml , Microsoft.Extensions.DependencyInjection , Microsoft.Extensions.DependencyInjection.Abstractions , Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting , Microsoft.Extensions.Hosting.Abstractions , Microsoft.Extensions.Http , Microsoft.Extensions.Logging , Microsoft.Extensions.Logging.Abstractions , Microsoft.Extensions.Logging.Configuration , Microsoft.Extensions.Logging.Console , Microsoft.Extensions.Logging.Debug , Microsoft.Extensions.Logging.EventLog , Microsoft.Extensions.Logging.EventSource , Microsoft.Extensions.Logging.TraceSource , Microsoft.Extensions.Options , Microsoft.Extensions.Options.ConfigurationExtensions , Microsoft.Extensions.Options.DataAnnotations , Microsoft.Extensions.Primitives , Microsoft.Internal.Runtime.AspNetCore.Transport , Microsoft.NET.Runtime.MonoAOTCompiler.Task , Microsoft.NET.Runtime.WebAssembly.Sdk , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.BrowserDebugHost.Transport , Microsoft.NETCore.Platforms , System.Configuration.ConfigurationManager , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , System.DirectoryServices.Protocols , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Reflection.Metadata , System.Resources.Extensions , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceProcess.ServiceController , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Threading.Channels , System.Threading.RateLimiting
 From Version 8.0.0-preview.5.23273.1 -> To Version 8.0.0-preview.5.23274.1

* Use Microsoft.Extensions.Diaganostics

* Add to shared framework

* Add Diagnostics.Abstractions to shared fx.

* Remove InternalsVisibleTo workaround.

Add some dispose logic to TestMeterFactory.

* Fix test build. Add new assemblies to shared fx

* Fix new deps

* Update dependencies from https://github.com/dotnet/runtime build 20230524.13

Microsoft.Bcl.AsyncInterfaces , Microsoft.Bcl.TimeProvider , Microsoft.Extensions.Caching.Abstractions , Microsoft.Extensions.Caching.Memory , Microsoft.Extensions.Configuration , Microsoft.Extensions.Configuration.Abstractions , Microsoft.Extensions.Configuration.Binder , Microsoft.Extensions.Configuration.CommandLine , Microsoft.Extensions.Configuration.EnvironmentVariables , Microsoft.Extensions.Configuration.FileExtensions , Microsoft.Extensions.Configuration.Ini , Microsoft.Extensions.Configuration.Json , Microsoft.Extensions.Configuration.UserSecrets , Microsoft.Extensions.Configuration.Xml , Microsoft.Extensions.DependencyInjection , Microsoft.Extensions.DependencyInjection.Abstractions , Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting , Microsoft.Extensions.Hosting.Abstractions , Microsoft.Extensions.Http , Microsoft.Extensions.Logging , Microsoft.Extensions.Logging.Abstractions , Microsoft.Extensions.Logging.Configuration , Microsoft.Extensions.Logging.Console , Microsoft.Extensions.Logging.Debug , Microsoft.Extensions.Logging.EventLog , Microsoft.Extensions.Logging.EventSource , Microsoft.Extensions.Logging.TraceSource , Microsoft.Extensions.Options , Microsoft.Extensions.Options.ConfigurationExtensions , Microsoft.Extensions.Options.DataAnnotations , Microsoft.Extensions.Primitives , Microsoft.Internal.Runtime.AspNetCore.Transport , Microsoft.NET.Runtime.MonoAOTCompiler.Task , Microsoft.NET.Runtime.WebAssembly.Sdk , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.BrowserDebugHost.Transport , Microsoft.NETCore.Platforms , System.Collections.Immutable , System.Configuration.ConfigurationManager , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices.Protocols , System.IO.Hashing , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Reflection.Metadata , System.Resources.Extensions , System.Runtime.Caching , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceProcess.ServiceController , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Threading.Channels , System.Threading.RateLimiting
 From Version 8.0.0-preview.5.23273.1 -> To Version 8.0.0-preview.5.23274.13

* Update new dependencies to new runtime build

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: James Newton-King <[email protected]>
Co-authored-by: Eric Erhardt <[email protected]>
Co-authored-by: wtgodbe <[email protected]>
…ence-packages build 20230524.2 (dotnet#48408)

Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 8.0.0-alpha.1.23273.1 -> To Version 8.0.0-alpha.1.23274.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
dotnet#48238)

* Change API template to only use Invariant Globalization in Native AOT mode.
…0526.1 (dotnet#48444)

[main] Update dependencies from dotnet/runtime
Bumps [src/submodules/spa-templates](https://github.com/dotnet/spa-templates) from `3881d5a` to `45228c8`.
- [Commits](dotnet/spa-templates@3881d5a...45228c8)

---
updated-dependencies:
- dependency-name: src/submodules/spa-templates
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [src/submodules/googletest](https://github.com/google/googletest) from `cb455a7` to `4580469`.
- [Release notes](https://github.com/google/googletest/releases)
- [Commits](google/googletest@cb455a7...4580469)

---
updated-dependencies:
- dependency-name: src/submodules/googletest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updated `LoginDisplay.IndividualB2CAuth.razor` to use `OptionsMonitor.Get`
…s` (dotnet#48385)

* Fix project resolution logic in user-jwts to close dotnet#46218

* Update write stream construction to close dotnet#44869

* Address review feedback
…0526.2 (dotnet#48467)

[main] Update dependencies from dotnet/runtime
…nals build 20230524.1 (dotnet#48503)

[main] Update dependencies from dotnet/source-build-externals
dependabot bot and others added 13 commits June 6, 2023 18:07
Bumps [src/submodules/spa-templates](https://github.com/dotnet/spa-templates) from `45228c8` to `d60cf22`.
- [Commits](dotnet/spa-templates@45228c8...d60cf22)

---
updated-dependencies:
- dependency-name: src/submodules/spa-templates
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [src/submodules/googletest](https://github.com/google/googletest) from `4580469` to `06f44bc`.
- [Release notes](https://github.com/google/googletest/releases)
- [Commits](google/googletest@4580469...06f44bc)

---
updated-dependencies:
- dependency-name: src/submodules/googletest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tnet#48432)

* Adds support for binding primitive types via [SupplyParameterFromForm]
* Introduces the internal infrastructure to deal with the binding process.
* Adds support for binding dictionaries of primitive types.
* Update SDK to 8.0.100-preview.6.23305.3

* Fix build for new 8.0 SDK

- Add static keyword for method that doesn't need to be an instance method.
- Change workaround for dotnet/linker#3175 to use net7.0 instead of net8.0. The ILLink.Analysis package no longer ships in net8.0. So use net7.0, like the rest of the "unsupported" TFMs use.
@abc516 abc516 requested review from a team, wtgodbe, javiercn and captainsafia as code owners June 7, 2023 19:10
@abc516 abc516 closed this Jun 7, 2023
@abc516
Copy link
Contributor Author

abc516 commented Jun 7, 2023

@BrennanConroy @mkArtakMSFT I had some issues resolving upstream changes in the codebase. I will re-open a PR for this issue once they are fixed.

@ghost
Copy link

ghost commented Jun 7, 2023

Hi @abc516. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.