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

Fix invalid JSON format for ${aspnet-request-cookie} and ${aspnet-request-querystring}, added extra formatting options, consistent rendering of multiple values #132

Merged
merged 5 commits into from
May 13, 2017

Conversation

304NotModified
Copy link
Member

@304NotModified 304NotModified commented Apr 9, 2017

No breaking changes in config, but change in output of multiple values. It's now consistent and configurable.

fixes #119

todo:

  • option to add newline? -> separator options
  • option to join multiple cookie values (non core) -> no multivalue cookies
  • option for quotes? -> maybe later
  • separator flat, : or = -> option

@codecov
Copy link

codecov bot commented Apr 29, 2017

Codecov Report

Merging #132 into master will increase coverage by 3.64%.
The diff coverage is 94.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #132      +/-   ##
==========================================
+ Coverage   59.03%   62.68%   +3.64%     
==========================================
  Files          25       26       +1     
  Lines         310      343      +33     
  Branches       77       82       +5     
==========================================
+ Hits          183      215      +32     
  Misses         91       91              
- Partials       36       37       +1
Impacted Files Coverage Δ
...enderers/AspNetRequestQueryStringLayoutRenderer.cs 73.91% <100%> (-6.65%) ⬇️
...etCore/LayoutRenderers/AspNetLayoutRendererBase.cs 91.66% <100%> (+4.16%) ⬆️
...youtRenderers/AspNetRequestCookieLayoutRenderer.cs 80.76% <90%> (+0.76%) ⬆️
...outRenderers/AspNetLayoutMultiValueRendererBase.cs 95.12% <95.12%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 56ad4ef...32be01d. Read the comment docs.

@304NotModified 304NotModified changed the title [WIP] Cookies tests on .NET core [WIP] Fix corrupt JSON format May 1, 2017
@304NotModified 304NotModified changed the title [WIP] Fix corrupt JSON format [WIP] Fix invalid JSON format May 1, 2017
@304NotModified 304NotModified changed the title [WIP] Fix invalid JSON format [WIP] Fix invalid JSON format for ${aspnet-request-cookie} and ${aspnet-request-querystring} May 1, 2017
Copy link
Member Author

@304NotModified 304NotModified left a comment

Choose a reason for hiding this comment

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

todo

@@ -98,7 +98,7 @@ public void KeyFoundRendersValue_QueryString_Single_Item_Json_Formatting()
[Fact]
public void KeyFoundRendersValue_QueryString_Multiple_Item_Flat_Formatting()
{
var expectedResult = "Id:1," + Environment.NewLine + "Id2:2";
var expectedResult = "Id=1,Id2=2";
Copy link
Member Author

Choose a reason for hiding this comment

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

todo

@@ -113,7 +113,7 @@ public void KeyFoundRendersValue_QueryString_Multiple_Item_Flat_Formatting()
[Fact]
public void EmptyProperyShouldListAll()
{
var expectedResult = "Id:1," + Environment.NewLine + "Id2:2";
Copy link
Member Author

Choose a reason for hiding this comment

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

todo

@304NotModified 304NotModified changed the title [WIP] Fix invalid JSON format for ${aspnet-request-cookie} and ${aspnet-request-querystring} Fix invalid JSON format for ${aspnet-request-cookie} and ${aspnet-request-querystring}, added extra formatting options, consistent rendering of multiple values May 13, 2017
@304NotModified 304NotModified merged commit 6711a28 into master May 13, 2017
@304NotModified 304NotModified deleted the cookies_tests_on_core branch May 13, 2017 14:21
@snakefoot snakefoot added ASP.NET Core ASP.NET Core - all versions and removed ASP.NET Core 1 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASP.NET Core ASP.NET Core - all versions ASP.NET 4 ASP.NET MVC Classic bug enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

problems in AspNetRequestCookieLayoutRenderer
2 participants