Shannon
13a4d5c81c
WIP - have added LightInject as a fast and tiny IoC container that is embedded. Have updated all required SingleObjectResolverBase and non lazy ManyObjectResolverBase to use a Container implementation. Have updated the boot managers to use IoC to instantiate all their requirements. This is so much nicer now by using IoC to ctor all of the objects in these resolvers we can get ctor injection OOTB so no more singletons. Need to create resolver to support the lazy resolver with IoC next. Updated IContentFinders, IThumbnailProviders to use ctor injection.
2015-01-21 12:48:08 +11:00
Shannon
44257e361a
Fixes refs to Microsoft.Net.Http
2015-01-21 10:41:01 +11:00
Shannon
f6a547d681
Merge remote-tracking branch 'origin/7.3.0' into dev-v8
2015-01-19 19:10:56 +11:00
Shannon
d4b718d615
Creates common base class for services, this streamlines all ctors and exposes correct services. Gets the TaskRepository working with a test, now to get it fully implemented.
2015-01-19 18:37:48 +11:00
Shannon
280826f3e8
Fixes: U4-6110 Cleanup the Audit trail code - this should be a service, remove all internal statics
2015-01-19 15:12:34 +11:00
Shannon
f9159a0afc
Merge remote-tracking branch 'origin/7.3.0' into dev-v8
...
Conflicts:
build/UmbracoVersion.txt
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Core/CoreBootManager.cs
src/Umbraco.Core/DataTypesResolver.cs
src/Umbraco.Core/PropertyEditors/PropertyEditorValueConvertersResolver.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Tests/CodeFirst/Definitions/ContentTypeDefinitionFactory.cs
src/Umbraco.Tests/CodeFirst/TypeInheritanceTest.cs
src/Umbraco.Tests/Macros/MacroTests.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/Plugins/PluginManagerTests.cs
src/Umbraco.Tests/Plugins/TypeFinderTests.cs
src/Umbraco.Tests/Services/ThreadSafetyServiceTest.cs
src/Umbraco.Tests/TestHelpers/BaseDatabaseFactoryTest.cs
src/Umbraco.Tests/TestHelpers/BaseSeleniumTest.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web.UI/config/ClientDependency.config
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadStylesheetProperty.cs
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadStylesheets.cs
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadTemplates.cs
src/Umbraco.Web/umbraco.presentation/umbraco/settings/stylesheet/property/EditStyleSheetProperty.aspx.cs
src/umbraco.cms/businesslogic/CMSNode.cs
src/umbraco.cms/businesslogic/propertytype/propertytype.cs
src/umbraco.cms/businesslogic/web/StyleSheet.cs
src/umbraco.editorControls/tinyMCE3/TinyMCE.cs
2015-01-19 13:16:56 +11:00
Shannon
02a903f77b
Merge remote-tracking branch 'origin/dev-v7' into dev-v8
...
Conflicts:
build/UmbracoVersion.txt
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web.UI/packages.config
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/UmbracoHelper.cs
src/Umbraco.Web/umbraco.presentation/CompatibilityHelper.cs
src/Umbraco.Web/umbraco.presentation/library.cs
src/Umbraco.Web/umbraco.presentation/macro.cs
src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
src/umbraco.MacroEngines/RazorDynamicNode/DynamicBackingItem.cs
src/umbraco.MacroEngines/app.config
src/umbraco.MacroEngines/packages.config
src/umbraco.MacroEngines/umbraco.MacroEngines.csproj
src/umbraco.cms/businesslogic/Packager/Installer.cs
src/umbraco.editorControls/app.config
src/umbraco.editorControls/packages.config
src/umbraco.editorControls/umbraco.editorControls.csproj
src/umbraco.providers/app.config
2015-01-19 13:11:51 +11:00
Shannon
16f63b7fd9
Creates migration to remove stylesheet tables! and cleans up the singleton usage of sql syntax in the migrations.
2015-01-16 17:18:07 +11:00
Shannon
1cb0cd296c
Decoupling more things, mostly to do with the PluginManager and logging which now requires an IServiceProvider so have created a simple instance of that.
2015-01-16 15:47:44 +11:00
Shannon
ed95ccc18e
Creates ProfilingLogger in order to decouple the DisposableTimer from LogHelper and ProfilerResolver
2015-01-16 12:07:29 +11:00
Shannon
6f76377a9e
Gets the stylesheet migrations all working, updates other post migrations to use a common base class, adds ILogger to the MigrationContext
2015-01-16 10:57:49 +11:00
Shannon
5cbfa7bd91
Updates how the stylesheet file works, uses v5 style logic for naming a stylesheet rule, adds plenty of tests to support, fixes validation methods on the file service, removes the css parser library stuff as it's overkill for what we want.
2015-01-14 14:10:55 +11:00
Shannon
b3a93e369a
WIP - bit of a refactor on the IFile stuff, moves all validation to the service level and obsoletes the IFile.IsValid methods. Adds v5 style CSS property parsing, but might integrate that with this zany css parser in the core for 'safer' parsing.
2015-01-14 12:09:30 +11:00
Shannon
10aad7e048
More decoupling from the SqlSyntaxContext singleton, repositories now all use an injected SqlSyntaxProvider, the respository factory, service context, etc... is now much more streamlined with classes created with a propery dependency chain.
2015-01-13 19:38:23 +11:00
Shannon
cc396c8b96
Removes more unecessary singletons and simplifies/refactors some internal parts like the ctors for the ServiceContext, DatabaseContext. No more RepositoryResolver or SqlSyntaxProvidersResolver these are entirely uncessary and complicate things.
2015-01-13 18:19:52 +11:00
Shannon
d5c8430cd2
Removes all IRepositoryCacheProvider's, we are just using a single cache construct to which is much easier to manage.
2015-01-13 13:33:39 +11:00
Shannon
e3acdbe85b
Fixes up dictionary and language repositories to have underlying simple get repositories since they support getting by id, unique id and string variations but we want to have native repository enabled caching for these items so these get methods now use private repositories based on these keys. Adds more tests, removes N+1 queries for languages and dictionary items. Removes RuntimeCacheProvider, we only want one type of cache, this simplifies things a lot.
2015-01-13 13:25:36 +11:00
Shannon
6457a1a2ca
Fixes: U4-6088 Publicize all partial view methods on IFileService & U4-6087 Fix Partial View macro repository usage so that when a macro is created from the FileService, the MacroService events are raised
...
Conflicts:
src/Umbraco.Core/Umbraco.Core.csproj
2015-01-09 19:15:01 +11:00
Shannon
31a1ee9145
Fixes: U4-6088 Publicize all partial view methods on IFileService & U4-6087 Fix Partial View macro repository usage so that when a macro is created from the FileService, the MacroService events are raised
2015-01-09 18:39:44 +11:00
Shannon
fafe056db0
More refactoring with ILogger and reducing the dependencies on all of these singletons. Created new DatabaseSchemaHelper to be used instead of the extension methods that require singletons to be set.
2015-01-09 13:00:26 +11:00
Shannon
9f30a9b0fc
Removes more singletons and reliance on singletons/statics
2015-01-09 12:04:33 +11:00
Shannon
defc9d3bc2
Updated all repo's to have their correct ctor's with their correct dependencies. Updated them all to accept ILogger updated all other dependencies with the same without breaking anything since all is internal, or obsoleted other public methods. Updates lots of the tests with mock instances instead, now more tests have less singleton dependencies, easier to test, much clearer and more IoC driven. Updated unit tests to supply the ILogger for required objects, tests should run faster now since most things are just mocked.
2015-01-09 10:51:15 +11:00
Shannon
519b06fe30
Moves logging interface to Logging namespace called ILogger, creates a resolver for it, updates the boot process to ensure it exists first and anything during the boot process that is logging ensures that if it is not resolved that it logs elsewhere. Wraps LogHelper to use the ILogger based on the resolver. Updates all services that used LogHelper to have an ILogger injected into them. This is really only the start, there's a ton of places that use LogHelper (508) other places so we'll need to start looking at changing those over. All base classes will need to expose an Ilogger so people can use that.
2015-01-07 17:23:24 +11:00
Shannon
7e1b20e600
Merge branch 'umbUKFest-U4-5231' of https://github.com/AnthonyCogworks/Umbraco-CMS into 7.3.0
...
Conflicts:
src/Umbraco.Core/Services/ServiceContext.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Tests/MockTests.cs
2015-01-07 16:13:47 +11:00
Shannon
f6cd597841
Fixes up some things from PR 610 and fixes up quoted values when using the Insert.IntoTable migration.
2015-01-06 13:44:42 +11:00
Shannon
fa48af02a1
Merge branch 'leekelleher-U4-337' into 7.3.0
...
Conflicts:
src/Umbraco.Core/Umbraco.Core.csproj
2015-01-06 12:24:29 +11:00
Shannon
8509aef99a
Merge branch 'U4-337' of https://github.com/leekelleher/Umbraco-CMS into leekelleher-U4-337
2015-01-06 12:23:31 +11:00
leekelleher
eace046342
Moved the SQL insert (to create the new relation type) to a separate DB migration for v7.3.0.
...
(This may need to be reviewed by Core team?)
2015-01-03 22:20:19 +00:00
Shannon
8c619e92d9
Merge branch 'dev-v7' into 7.3.0
...
Conflicts:
build/UmbracoVersion.txt
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Core/Persistence/Repositories/TemplateRepository.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
2014-12-29 14:30:01 +11:00
Shannon
5b9a98ad6a
Simplifies the ILocalizedTextService to not have an extension method for null tokens, adds another extension method to accept an array of tokens, adds null checks.
2014-12-18 12:45:04 +11:00
Shannon
da25970f79
wip - working on U4-5966
2014-12-17 15:19:03 +11:00
Shannon
d4fd58e038
Completes: U4-5846 Remove cmsTemplate.master column and transfer those values over to umbracoNode.parentId, U4-5847 Ensure the path is set correctly for templates in the db, almost done the other template service tasks too.
2014-12-05 17:29:47 +11:00
Shannon
c656bb632e
WIP more template repo work and more unit tests
2014-12-01 16:22:18 +11:00
Shannon
520955a8db
WIP - ported over viewhelper and MasterpageHelper to the Core lib, still wrapping new file service from old template class.
2014-12-01 12:59:36 +11:00
Shannon
2b25815eee
Merge branch '7.2.0' into 7.3.0
...
Conflicts:
src/Umbraco.Web/Umbraco.Web.csproj
2014-12-01 12:22:19 +11:00
Sebastiaan Janssen
d8909fe09c
Also adds migration for U4-5837
2014-11-27 14:11:18 +01:00
Sebastiaan Janssen
a1c223bc2b
Revert to using MVC 4.0.0.0 OOB so that people who have only 4.0.0.0 in the GAC can actually install Umbraco. If 4.0.0.1 is in the GAC that version will be taken.
...
Leaves the additional reference to System.Web.Http in web.config so that you don't get the System.Web.Http.ApiController when 4.0.0.1 is indeed in the GAC.
2014-11-26 10:43:46 +01:00
Shannon
3cd949d49c
Completes: U4-5861 and removes the very old legacy umbraco context, server, request, etc... stuff
2014-11-21 17:19:06 +11:00
Shannon
9cc584ae52
Completes: U4-5484 Remove /base REST support
2014-11-21 16:39:27 +11:00
Shannon
c3523a09ec
WIP WIP WIP. Started working on U4-5648 which led to quite a lot of other things, once IDataType was removed (U4-5858), this lead to U4-5546, U4-5416, U4-5484, U4-5805. So much of this stuff is etched deep into the codebase, so nice to get rid of it. Had to remove the codefirst tests too for now since they relied on old apis and we don't really support it/use it. Commented out all of the code relating to the document type editor UI bits since they need to be rewritten and removed.
2014-11-21 16:34:47 +11:00
Anthony Dang
7f78aef05f
Issue U4-5231 - Created an interface based on the LogHelper, and created a service, exposed through Application.Services.
2014-11-20 16:11:04 +00:00
Shannon
df3d427c0b
WIP - Updates templates service and repo with some extra methods, creates new template tree, updates template model with some more properties, still need to finish the template tree, it's missing some menu actions.
2014-11-20 19:51:42 +11:00
Shannon
55190b7318
Fixes: U4-5707 Cannot upgrade 6.2.2 site to 7.2
2014-11-18 15:59:15 +11:00
Sebastiaan Janssen
cb869b9064
Merge branch '7.1.9' into 7.2.0
...
Conflicts:
build/Build.bat
2014-11-14 16:53:34 +01:00
Sebastiaan Janssen
b20fc22577
U4-5814 Apply MVC 4.0.0.1 security update
2014-11-14 16:51:51 +01:00
Shannon
fbb023f844
working on U4-5648 Remove legacy razor macro's entirely - removes lots of legacy
2014-11-14 17:15:38 +11:00
Shannon
d7948a79e2
working on U4-5648 Remove legacy razor macro's entirely - removes old config section, bumps version to 8
2014-11-14 15:11:46 +11:00
Shannon
5aeecf7701
working on U4-5648 Remove legacy razor macro's entirely
2014-11-14 14:05:46 +11:00
Shannon
86e82c7674
Updates PartialView & PartialViewMacros models/services/repositories, streamlines their operations, fixes up other underlying problems with the FileRepository, fixes tree syncing for partial views, partial view macros and scripts, fixes scripts being created in folders, allows partial views and partial view macros to be managed and created in folders, fixes FileUnitOfWork to use a queue, publicizes some internal test classes, fixes tree syncing when dealing with invariant case, adds correct validation to the create dialogs of scripts and partial views (and partial view macros)
2014-10-22 16:44:45 +10:00
Sebastiaan Janssen
f4231b1692
Upgrade to System.Web.Mvc 4.0.0.1 (or 4.0.40804.0 whatever you want to call it)
2014-10-17 17:24:32 +02:00