Skip to content

Commit

Permalink
Merge pull request #127 from bugsnag/next
Browse files Browse the repository at this point in the history
Release v2.2.1
  • Loading branch information
twometresteve committed May 14, 2020
2 parents 8e9f8ae + f0f0698 commit fde4f23
Show file tree
Hide file tree
Showing 28 changed files with 314 additions and 333 deletions.
77 changes: 4 additions & 73 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,84 +1,15 @@
## Goal

<!-- What is the intent of this change?
e.g. "When initializing the Bugsnag client, it is currently difficult to (...)
this change simplifies the process by (...)"
"Improves the performance of data filtering"
"Adds additional test coverage to multi-threaded use of Configuration
objects"
-->

<!-- For new features, include design documentation:
<!-- Why is this change necessary? -->

## Design

Why was this approach to the goal used?
-->
<!-- Why was this approach used? -->

## Changeset

<!-- What structures or properties or functions were:
### Added
### Removed
### Changed
-->
<!-- What changed? -->

## Tests

<!-- How was this change tested? What manual and automated tests were
run/added? -->

## Discussion

### Alternative Approaches

<!-- What other approaches were considered or discussed? -->

### Outstanding Questions

<!-- Are there any parts of the design or the implementation which seem
less than ideal and that could require additional discussion?
List here: -->

### Linked issues

<!--
Fixes #
Related to #
-->

## Review

<!-- When submitting for review, consider the points for self-review and the
criteria which will be used for secondary review -->

For the submitter, initial self-review:

- [ ] Commented on code changes inline explain the reasoning behind the approach
- [ ] Reviewed the test cases added for completeness and possible points for discussion
- [ ] A changelog entry was added for the goal of this pull request
- [ ] Check the scope of the changeset - is everything in the diff required for the pull request?
- This pull request is ready for:
- [ ] Initial review of the intended approach, not yet feature complete
- [ ] Structural review of the classes, functions, and properties modified
- [ ] Final review

For the pull request reviewer(s), this changeset has been reviewed for:

- [ ] Consistency across platforms for structures or concepts added or modified
- [ ] Consistency between the changeset and the goal stated above
- [ ] Internal consistency with the rest of the library - is there any overlap between existing interfaces and any which have been added?
- [ ] Usage friction - is the proposed change in usage cumbersome or complicated?
- [ ] Performance and complexity - are there any cases of unexpected O(n^3) when iterating, recursing, flat mapping, etc?
- [ ] Concurrency concerns - if components are accessed asynchronously, what issues will arise
- [ ] Thoroughness of added tests and any missing edge cases
- [ ] Idiomatic use of the language
<!-- How was it tested? -->
11 changes: 8 additions & 3 deletions Bugsnag.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
# Visual Studio Version 16
VisualStudioVersion = 16.0.29209.62
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bugsnag", "src\Bugsnag\Bugsnag.csproj", "{6786F339-353C-413B-9165-422ED8D9EDF5}"
EndProject
Expand All @@ -27,12 +27,17 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
build.cake = build.cake
CHANGELOG.md = CHANGELOG.md
CONTRIBUTING.md = CONTRIBUTING.md
src\Directory.build.props = src\Directory.build.props
LICENSE.txt = LICENSE.txt
README.md = README.md
UPGRADING.md = UPGRADING.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bugsnag.AspNet.WebApi.Tests", "tests\Bugsnag.AspNet.WebApi.Tests\Bugsnag.AspNet.WebApi.Tests.csproj", "{584E892B-5A65-4484-9F0E-CD58EFDA75BD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bugsnag.AspNet.Core.Tests", "tests\Bugsnag.AspNet.Core.Tests\Bugsnag.AspNet.Core.Tests.csproj", "{C86A5E8F-5402-49D8-BDD3-0C96D89B6E2E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bugsnag.AspNet.Core.Tests", "tests\Bugsnag.AspNet.Core.Tests\Bugsnag.AspNet.Core.Tests.csproj", "{C86A5E8F-5402-49D8-BDD3-0C96D89B6E2E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
Changelog
=========

## Unreleased
## 2.2.1 (2019-05-14)

### Bug fixes

* Handle any exceptions raised when reading files for code segments.
| [twometresteve](https://github.com/twometresteve)
| [#123](https://github.com/bugsnag/bugsnag-dotnet/pull/123)

* Account for process termination behavior when handling UnobservedTaskExceptions.
| [twometresteve](https://github.com/twometresteve)
| [#125](https://github.com/bugsnag/bugsnag-dotnet/pull/125)

## 2.2.0 (2018-07-19)

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018 Bugsnag
Copyright (c) 2020 Bugsnag

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
12 changes: 6 additions & 6 deletions examples/aspnet35/Bugsnag.Sample.AspNet35.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Bugsnag, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.2.0.2\lib\net35\Bugsnag.dll</HintPath>
<Reference Include="Bugsnag, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.2.2.0\lib\net35\Bugsnag.dll</HintPath>
</Reference>
<Reference Include="Bugsnag.AspNet, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.AspNet.2.0.2\lib\net35\Bugsnag.AspNet.dll</HintPath>
<Reference Include="Bugsnag.AspNet, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.AspNet.2.2.0\lib\net35\Bugsnag.AspNet.dll</HintPath>
</Reference>
<Reference Include="Bugsnag.ConfigurationSection, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.ConfigurationSection.2.0.2\lib\net35\Bugsnag.ConfigurationSection.dll</HintPath>
<Reference Include="Bugsnag.ConfigurationSection, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.ConfigurationSection.2.2.0\lib\net35\Bugsnag.ConfigurationSection.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
6 changes: 3 additions & 3 deletions examples/aspnet35/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Bugsnag" version="2.0.2" targetFramework="net35" />
<package id="Bugsnag.AspNet" version="2.0.2" targetFramework="net35" />
<package id="Bugsnag.ConfigurationSection" version="2.0.2" targetFramework="net35" />
<package id="Bugsnag" version="2.2.0" targetFramework="net35" />
<package id="Bugsnag.AspNet" version="2.2.0" targetFramework="net35" />
<package id="Bugsnag.ConfigurationSection" version="2.2.0" targetFramework="net35" />
</packages>
20 changes: 10 additions & 10 deletions examples/aspnet45-mvc-webapi/aspnet45-mvc-webapi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Bugsnag, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.2.0.2\lib\net45\Bugsnag.dll</HintPath>
<Reference Include="Bugsnag, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.2.2.0\lib\net45\Bugsnag.dll</HintPath>
</Reference>
<Reference Include="Bugsnag.AspNet, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.AspNet.2.0.2\lib\net45\Bugsnag.AspNet.dll</HintPath>
<Reference Include="Bugsnag.AspNet, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.AspNet.2.2.0\lib\net45\Bugsnag.AspNet.dll</HintPath>
</Reference>
<Reference Include="Bugsnag.AspNet.Mvc, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.AspNet.Mvc.2.0.2\lib\net45\Bugsnag.AspNet.Mvc.dll</HintPath>
<Reference Include="Bugsnag.AspNet.Mvc, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.AspNet.Mvc.2.2.0\lib\net45\Bugsnag.AspNet.Mvc.dll</HintPath>
</Reference>
<Reference Include="Bugsnag.AspNet.WebApi, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.AspNet.WebApi.2.0.2\lib\net45\Bugsnag.AspNet.WebApi.dll</HintPath>
<Reference Include="Bugsnag.AspNet.WebApi, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.AspNet.WebApi.2.2.0\lib\net45\Bugsnag.AspNet.WebApi.dll</HintPath>
</Reference>
<Reference Include="Bugsnag.ConfigurationSection, Version=2.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.ConfigurationSection.2.0.2\lib\net45\Bugsnag.ConfigurationSection.dll</HintPath>
<Reference Include="Bugsnag.ConfigurationSection, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Bugsnag.ConfigurationSection.2.2.0\lib\net45\Bugsnag.ConfigurationSection.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.7\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
Expand Down
12 changes: 6 additions & 6 deletions examples/aspnet45-mvc-webapi/packages.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Antlr" version="3.4.1.9004" targetFramework="net45" />
<package id="bootstrap" version="3.0.0" targetFramework="net45" />
<package id="Bugsnag" version="2.0.2" targetFramework="net45" />
<package id="Bugsnag.AspNet" version="2.0.2" targetFramework="net45" />
<package id="Bugsnag.AspNet.Mvc" version="2.0.2" targetFramework="net45" />
<package id="Bugsnag.AspNet.WebApi" version="2.0.2" targetFramework="net45" />
<package id="Bugsnag.ConfigurationSection" version="2.0.2" targetFramework="net45" />
<package id="Bugsnag" version="2.2.0" targetFramework="net45" />
<package id="Bugsnag.AspNet" version="2.2.0" targetFramework="net45" />
<package id="Bugsnag.AspNet.Mvc" version="2.2.0" targetFramework="net45" />
<package id="Bugsnag.AspNet.WebApi" version="2.2.0" targetFramework="net45" />
<package id="Bugsnag.ConfigurationSection" version="2.2.0" targetFramework="net45" />
<package id="jQuery" version="1.10.2" targetFramework="net45" />
<package id="Microsoft.ApplicationInsights" version="2.2.0" targetFramework="net45" />
<package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.0.6" targetFramework="net45" />
Expand Down
79 changes: 46 additions & 33 deletions examples/aspnetcore11-mvc/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
@@ -1,42 +1,55 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Bugsnag;

namespace aspnetcore11_mvc.Controllers
{
public class HomeController : Controller
public class HomeController : Controller
{
private readonly IClient _client;
private Dictionary<string, string> _messageLookup = new Dictionary<string, string>()
{
private readonly IClient _client;

public HomeController(IClient client)
{
_client = client;
}

public IActionResult Index()
{
return View();
}

public IActionResult About()
{
_client.Breadcrumbs.Leave("Here comes the exception...");
throw new NotImplementedException();
}

public IActionResult Contact()
{
ViewData["Message"] = "Your contact page.";

return View();
}

public IActionResult Error()
{
return View();
}
{
"Contact", "Contact page"
}
};

public HomeController(IClient client)
{
_client = client;

}

public IActionResult Index()
{
return View();
}

public IActionResult About()
{
_client.Breadcrumbs.Leave("Here comes the exception...");
throw new NotImplementedException();
}

public IActionResult Contact()
{
try
{
ViewData["Message"] = _messageLookup["Cotnact"];
}
catch (Exception e)
{
_client.Notify(e);
ViewData["Message"] = "Your contact page.";
}

return View();
}

public IActionResult Error()
{
return View();
}
}
}
4 changes: 3 additions & 1 deletion examples/aspnetcore11-mvc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ services.AddBugsnag(config => {
});
```

From within Visual Studio you can compile and start the website.
From within Visual Studio you can compile and start the website. Once the index page loads:
- Navigating to About will invoke an unhandled exception
- Navigating to Contact will invoke a handled exception

### Steps taken to install Bugsnag

Expand Down
Loading

0 comments on commit fde4f23

Please sign in to comment.