Commit Graph

201 Commits

Author SHA1 Message Date
Pranav K 3e7eb6df61 Skip auto generated files from API consistency 2015-10-22 10:29:22 -07:00
Rowan Miller 1c26436041 Bring back "Apply Migrations" button on database error page
Mostly just a revert of the commit that removed this functionality, with a few changes:
* Perform proper JavaScript encoding in the script part of the database error page Views/BaseView.cs
* Use the builder pattern in the UseXyz extension methods on IApplicationBuilder (per #184). Also applying this to DatabaseErrorPageOptions to keep things consistent.
* Fixing a few tests that were getting the context from DI but putting it in a using block so that it got disposed (rather than letting DI handle disposing).
2015-10-20 09:29:15 -07:00
Rowan Miller 111dab7ddf 🐛 No database error page for existing databases
When there is an existing database and no migrations are present, then we should just display the standard error page as they are not using migrations and need to adjust their mapping code to match the existing schema.
Resolve #182
2015-10-20 09:23:42 -07:00
John Luo 793504843e reacting to telemetry rename 2015-10-19 17:17:40 -07:00
Chris R b144f5fd7c React to HttpRequestIdentifierFeature default change. 2015-10-16 10:15:56 -07:00
Pranav K 84b91c95fe Turn off warningsAsErrors in tests to unblock CI 2015-10-09 10:45:41 -07:00
Nate McMaster ba2bb3f0c9 React to EF rename 2015-10-05 13:44:26 -07:00
John Luo 7b9cfac65a Adding telemetry publish for unhandled exceptions to developer exception page and exception handler #180 2015-10-03 17:00:22 -07:00
Pranav K 3657a1a14b Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:46 -07:00
Arthur Vickers 6afe357271 Strategy rename 2015-09-24 11:08:41 -07:00
Arthur Vickers 062d072712 React to EF fluent API changes 2015-09-24 10:38:13 -07:00
Pranav K af4f0fc6f0 Reacting to IChangeToken changes 2015-09-22 08:32:52 -07:00
Nate McMaster 8e7fca953c React to changes in EF. https://github.com/aspnet/EntityFramework/pull/3108 2015-09-15 11:43:00 -07:00
Kiran Challa 1a708b8479 Fixed razor view as its compilation fails due to changed apis
Updated PageGenerator to consider the modified Views folder paths
More restructuring of files
2015-09-09 09:38:42 -07:00
Kiran Challa c46615dc53 Added new extensions UseExceptionHandler & UseDeveloperExceptionPage 2015-09-09 09:38:39 -07:00
Kiran Challa 5cb8ad3d87 Skipped tests using file paths not supported on Mono 2015-09-04 01:07:03 -07:00
Kiran Challa 12d9302a31 Skipped Database error page tests temporarily to fix Travis CI 2015-09-04 00:46:23 -07:00
N. Taylor Mullen a8df52fa7c Update project.json to have warningsAsErrors accept a bool. 2015-09-02 15:34:39 -07:00
Hao Kung 088f2f81cc React to options 2015-09-02 14:26:42 -07:00
Chris R ecc5874b6c Fix test. 2015-08-31 10:51:48 -07:00
Chris R 0bb77764d3 Use the new HttpContext.Features API. 2015-08-31 07:51:36 -07:00
Brice Lambson b95f67733d React to aspnet/EntityFramework#2948 2015-08-28 12:11:30 -07:00
Brice Lambson 8ccfb99624 React to aspnet/EntityFramework#2902 2015-08-24 10:41:56 -07:00
Kiran Challa 09b1c0fa63 [Fixes #167]Error page/handler should reset any buffered data, clear headers, etc. 2015-08-20 10:21:34 -07:00
Brice Lambson e8fc5a970a React to aspnet/EntityFramework#2831 2015-08-17 10:24:21 -07:00
Kiran Challa 97e66878a7 Reacting to disposable logger provider 2015-08-12 16:07:16 -07:00
Chris R 0e05c64855 React to IFeatureCollection changes, test cleanup. 2015-08-04 09:09:53 -07:00
mikary c0255f4188 React to aspnet/EntityFramework#2757 2015-07-31 12:38:57 -07:00
Victor Hurdugaci 15c0e16a91 React to DNX changes 2015-07-29 03:38:40 -07:00
Kiran Challa 8d583a4718 [Fixes #157] ErrorPage middleware doesn't show source code lines of Razor files 2015-07-28 08:49:53 -07:00
Brice Lambson 6e72a3935d Merge branch 'release' into dev 2015-07-22 08:34:30 -07:00
Andrew Stanton-Nurse 4656872876 react to DNX renames 2015-07-21 16:43:57 -07:00
Brice Lambson 3a7c0132c1 Revert "React to aspnet/EntityFramework#2613"
This reverts commit 97459de509.
2015-07-21 15:35:20 -07:00
Kiran Challa ab124d2ca0 Reacting to merging of FeatureModel into Http.Features 2015-07-17 10:06:24 -07:00
Kiran Challa fea15eb8de Removed creation of request id logging scope 2015-07-16 18:51:57 -07:00
Kiran Challa 236d4009c3 [Fixes #40] Suppress caching for ErrorHandler 2015-07-14 21:15:51 -07:00
Brice Lambson 97459de509 React to aspnet/EntityFramework#2613 2015-07-14 10:16:41 -07:00
Arthur Vickers 83c6ea7116 React to EF namespace changes 2015-06-30 10:59:15 -07:00
Arthur Vickers 15fa458362 React to EF changes 2015-06-25 16:00:00 -07:00
Arthur Vickers 33a673cd35 React to EF name changes 2015-06-23 16:00:32 -07:00
Arthur Vickers 791ec1a016 Use ApplyMigrations extension method 2015-06-19 11:37:01 -07:00
Arthur Vickers 7f63665607 Stop using GenerateValueOnAdd. 2015-06-17 11:54:48 -07:00
Arthur Vickers ccdedc704d React to EntityOptions -> DbContextOptions rename 2015-06-15 23:01:16 -07:00
Henk Mollema 6dbbe831c4 Removed SetDefaultVisibility for ErrorPageOptions
- Removed `SetDefaultVisibility` method from `(Database)ErrorPageOptions`
- `(Database)ErrorPageOptions` properties are now auto-properties since there is no default visibility anymore
- Removed `isDevMode` parameter from `ErrorPageMiddleware` ctor
- Removed comments from `ErroPageExtensions.UseErrorPage()`
- Updated Entity tests

#130
2015-06-09 10:14:22 -07:00
Arthur Vickers 760be0c77c React to DbContextOptions name change 2015-05-26 11:34:48 -07:00
Smit Patel c6c5c94971 React to EF: changes in ModelSnapshot 2015-05-14 14:01:06 -07:00
Smit Patel 499f62c596 React to EF Changes: Remove Usage of BasicModelBuilder 2015-05-11 14:59:38 -07:00
N. Taylor Mullen b1643b438a Update LICENSE.txt and license header on files. 2015-05-01 13:46:24 -07:00
Praburaj b27c6fc1e2 Fixing runtime info middleware on coreclr
Also adding more information like OS, runtime type and architecture to the info page.
2015-04-17 11:47:46 -07:00
Praburaj 14ee7abf22 Remove hosting dependency on diagnostics package 2015-04-08 19:16:36 -07:00
ajcvickers c72add2736 Merge branch 'dev' of github.com:aspnet/Diagnostics into dev 2015-04-07 21:51:30 -07:00
ajcvickers 027cbdac04 React to EF change 2015-04-07 21:51:11 -07:00
Praburaj 888ed48249 Using in memory store on mono 2015-04-06 11:06:27 -07:00
Kiran Challa bd1e282e58 Reacting to ILogger api changes 2015-04-04 00:34:07 -07:00
Doug Bunting b76de57432 Merge remote-tracking branch 'origin/release' into dev 2015-04-03 11:40:43 -07:00
N. Taylor Mullen cb6c01b8da Update project.json, code=>compile. Also remove **/*.cs and **/*.vs from compile section. These are now defaulted to on. 2015-04-02 16:15:43 -07:00
Doug Bunting 9d095e2f21 Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename 2015-04-02 13:49:24 -07:00
N. Taylor Mullen cfb20ff33c Add travis and appveyor CI support. 2015-04-01 15:42:06 -07:00
Brice Lambson ebda837e35 React to Migrations API changes 2015-03-30 09:13:23 -07:00
Praburaj ac63ee96ae Fixing tests after ElmMiddleware change 2015-03-24 10:55:10 -07:00
Rowan Miller 105d3353cf 🔥 Remove migrations end point 2015-03-23 15:56:30 -07:00
N. Taylor Mullen 890fce4eed React to EF changes. 2015-03-22 12:11:42 -07:00
Smit Patel ad009c05d6 Reacting to EF: Setting Identity as ValueGenerationStrategy explicitly 2015-03-20 17:39:02 -07:00
Hao Kung b66b2df264 React to hosting 2015-03-19 11:22:22 -07:00
Praburaj 6ee155c40f Move IServiceCollection extension to Microsoft.Framework.DependencyInjection namespace
Fixes: https://github.com/aspnet/Diagnostics/issues/96
2015-03-13 17:11:23 -07:00
N. Taylor Mullen 2641c41ed5 Update xunit.runner.kre => xunit.runner.aspnet. 2015-03-12 17:11:14 -07:00
N. Taylor Mullen b07a656b8a Update .kproj => .xproj. 2015-03-11 14:05:30 -07:00
ajcvickers 79c1672e65 Another namespace issue 2015-03-11 14:02:14 -07:00
ajcvickers 616ccb514f Missed update to use builder in one place 2015-03-11 13:55:31 -07:00
ajcvickers b016764f26 Went a bit too far. :-) 2015-03-11 13:47:33 -07:00
ajcvickers e2b83aee92 Use some namespaces 2015-03-11 13:43:31 -07:00
ajcvickers f4c05c8b09 Update to use DbContextOptionsBuilder 2015-03-11 13:15:22 -07:00
N. Taylor Mullen c746f2beb7 Remove BOM from project.json, *.cmd, *.sh and *.shade files. 2015-03-09 12:52:44 -07:00
N. Taylor Mullen 684983effb Update aspnet50/aspnetcore50 => dnx451/dnxcore50. 2015-03-08 12:48:36 -07:00
Praburaj 18696828cc Using new IHtmlEncoders
Fixes: https://github.com/aspnet/Diagnostics/issues/89
2015-03-06 11:29:58 -08:00
Brennan 00a1127676 Missed some logging API 2015-03-04 20:38:11 -08:00
Brennan 4887a77498 Logging API changes 2015-03-04 17:04:05 -08:00
ajcvickers a65ebbf1f1 React to EF change 2015-02-26 15:31:49 -08:00
ajcvickers 66252ff736 React to EF namespace change 2015-02-13 14:56:28 -08:00
Pranav K e78dadcf0a Reacting to EF renames 2015-02-12 17:47:27 -08:00
Brice Lambson a09d8a4ead React to Migrations changes 2015-02-10 11:07:18 -08:00
ajcvickers 4139f3f18b React to EF changes in tests. 2015-02-05 11:09:32 -08:00
Chris Ross 44dadb1d0f Handle ReadForAsync changes. 2015-01-07 18:30:36 -08:00
mikary 32e28a8fc8 Reacting to API changes in EntityFramework Migrations 2015-01-07 14:51:05 -08:00
mikary f76583b18b Reacting to API changes in EntityFramework 2014-12-19 10:47:45 -08:00
rowanmiller 5e00937d59 Handle wrapped exceptions in Database Error Page
If a database exception is wrapped later in the request (after EF has logged it) then we were not displaying the database error page.
This was occurring in ASP.NET Identity where the exception was getting wrapped in an AggregateException.
We now walk the tree of inner exceptions looking for a match.
Also adding some extra logging as this was hard to debug without resorting to source code.
2014-12-18 14:16:38 -08:00
Brennan b014a9ef41 Update tests to use the official xunit 2014-12-17 10:23:40 -08:00
SonjaKhan 4f75ae6485 grouping elm by activity context 2014-12-12 17:12:11 -08:00
SonjaKhan 62ec496aa3 fixing test failures 2014-12-08 10:38:00 -08:00
Pranav K b8626a75ca Updating Elm to depend on Razor instead of Mvc.Razor
* Removing dependencies that are transitively included.
2014-11-25 17:07:04 -08:00
SonjaKhan ce59419893 elm logger 2014-11-25 14:58:04 -08:00
ajcvickers e6fdb8cbd2 React to EF dynamic services changes 2014-11-25 13:38:22 -08:00
Victor Hurdugaci eb99bf25a3 Add schema version to kproj files 2014-11-25 10:39:01 -08:00
ajcvickers 6f8407bca4 Reacting to EF change 2014-11-21 11:42:38 -08:00
rowanmiller ef544d9baa Update Microsoft.AspNet.Diagnostics.Entity to build in this repo
Previous commit copied code verbatim from EF repo
This commit updates it to build in this repo
2014-11-18 15:12:13 -08:00
rowanmiller fad5ba4323 Copy of Microsoft.AspNet.Diagnostics.Entity code from EntityFramework
Straight copy of code with no modification so that we have a baseline of changes made to port the code to the Diagnostics repo
2014-11-17 15:49:09 -08:00
Victor Hurdugaci b466013235 Update KProj to the latest format 2014-11-12 15:01:34 -08:00
David Fowler 28bdedab22 Fixed FakeLibraryInformation 2014-10-15 00:35:01 -07:00
Pranav K 3279c15047 Reacting to CLR package versioning changes 2014-10-10 10:31:13 -07:00
Chris Ross 536f6830ba Fix ILibaryInformation.Version break. 2014-10-07 09:31:08 -07:00
Victor Hurdugaci 0c3f7eab9e Runtime information page 2014-10-01 15:20:44 -07:00