Commit Graph

28629 Commits

Author SHA1 Message Date
Stephan 3a93da6256 U4-1212, U4-1312 - fix Document.PathPublished 2012-12-13 15:48:46 -01:00
Sebastiaan Janssen b1091f91dc Fixes U4-1320 - Dictionary delete query isn't paremterized 2012-12-13 15:48:18 -01:00
Morten Christensen 207c651743 Refactoring the Document class for publishing and unpublishing.
Bumped into an issue with nullable datetime and petapoco, which now has a workaround in our IMapper.
Fix a few issues around the Published state on previous versions.
2012-12-13 13:05:23 -01:00
Sebastiaan Janssen e2eee711d8 Fixes U4-483 - Replace illegal characters in media with a dash, not underscore
Also removing multiple repeating dashes, leaving only one in place.
2012-12-13 09:26:34 -01:00
Morten Christensen fa80356a49 Implements two subscribers for the PublishingStrategy for updating cache after publish and unpublish.
With this in place it should only be necessary to call Publish in the ContentService, and not worry about refreshing the cache.
2012-12-12 19:47:28 -01:00
Morten Christensen 0cdb7af3eb Adding internal constructor overloads to Document, Content and CMSNode for better setup of legacy objects using new objects. 2012-12-12 18:44:55 -01:00
Morten Christensen 029824c8bc Reverting internal methods to public methods in RepositoryFactory 2012-12-12 17:37:13 -01:00
Morten Christensen 6dd63aa0b3 Adding comment 2012-12-12 15:26:28 -01:00
Morten Christensen c386aa491b Merge with 6.0.0 2012-12-12 15:18:31 -01:00
Morten Christensen 3f35f1df00 Refactoring Document class to use new public api.
Adding Obsolete attributes to methods in Document class that has been updated.
Updating the PublishingStrategy to fire final event after content and xml has been properly updated in the db.
Adding a few new methods to the ContentService.
2012-12-12 15:17:48 -01:00
Shannon Deminick e5ddcc756c Changed boot managers to public 2012-12-12 20:10:50 +05:00
Sebastiaan Janssen 21ead72d48 Add en_us files in VS project file so they'll actually be in the built zip file 2012-12-12 12:40:18 -01:00
Sebastiaan Janssen c3c3c3856f Update unit tests to reflect removal of cachebrowser trees 2012-12-12 12:26:28 -01:00
Morten Christensen 877c38b8bc Moving RepositoryFactory to constructor to avoid hard dependency on the RepositoryResolver in the services. 2012-12-12 10:47:14 -01:00
Sebastiaan Janssen 23fff9be8c Remove the legacy Cache Browser 2012-12-12 10:25:34 -01:00
Morten Christensen 29762e227a Refactoring the usage of Copy in the ContentService, so that it could be implemented in the Document class. 2012-12-12 10:22:58 -01:00
Sebastiaan Janssen 849a9892c5 #U4-1246 Increase the version number in ClientDependency.config after install 2012-12-12 09:07:06 -01:00
Morten Christensen 6c7484a1bf Merge with 6.0.0 2012-12-12 09:01:26 -01:00
Morten Christensen f800744e4f Merge with 6.0.0 2012-12-12 09:00:25 -01:00
Morten Christensen e71a5fd5eb Fixing an issue with the MediaService.
Making the two UOW Providers public, so they can be used for newing up services.
Adding a few constructor options to the PP UOW Provider to avoid config lookup.
2012-12-12 09:00:00 -01:00
Sebastiaan Janssen 5f93e20fab Merge 2012-12-12 07:21:17 -01:00
Sebastiaan Janssen 094fbf2e6b Putting ClienntDependency.Mvc back now that we have assembly redirects 2012-12-12 07:20:58 -01:00
Shannon Deminick 41403c13a9 Fixes a ContentService 'using' of the repo. Updated the MediaService to use the correct logic for UOWs. 2012-12-12 06:40:38 +05:00
Shannon Deminick 1e41db6d69 Removed any manual instantiation of PetaPocoUnitOfWork as this should generally always
be done by the PetaPocoUnitOfWorkProvider to ensure that for a UOW it always uses a new database
instance, not a shared one.
2012-12-12 06:08:03 +05:00
Shannon Deminick a3938edde2 Changed the PetaPocoUnitOfWorkProvider to ensure that a new Database object is used for each new
unit of work (transaction). When the UOW is diposed, the database instance will also be disposed.
2012-12-12 05:57:52 +05:00
Shannon Deminick 1132547c24 Changed required Database references to UmbracoDatabase 2012-12-12 05:48:18 +05:00
Shannon Deminick a0e4492a35 New implementation of IDatabaseFactory, allows setting the DatabaseContext.Current at runtime
with a custom IDatabaseFactory (mostly for testing).
Changes AuditTrail to internal so the public way is just with the 'Audit' class.
Fixed ThreadSafetyServiceTests which was failing with the new AuditTrail stuff because of the
Database instances, this is not solved with the new PerThreadDatabaseFactory for the unit test.
Created new 'UmbracoDatabase' object which inherits from the PetaPoco one so that we can future proof
the implementation as we might want some custom logic on there. Now the IDatabaseFactory returns
an UmbracoDatabase instead of just Database.
2012-12-12 03:47:04 +05:00
Shannon Deminick 6ac2db9497 removed database factory, changed audit trail stuff to internal, not sure it needs to be public. 2012-12-12 00:17:59 +05:00
Shannon Deminick aa574ac32f Merged with 6.0 and fixed a couple merge issues 2012-12-11 23:19:07 +05:00
Shannon Deminick cfa8fc2bba Removed the uow ctor from the SaveEventArgs for testing as the test will still prove that
multi-threading works with the services without proving access to a single uow, the db will error first anyways.
2012-12-11 22:56:34 +05:00
Sebastiaan Janssen 73d541ad80 Preserve existing whitespace in web.config file to make upgrades a LITTLE easier 2012-12-11 16:23:15 -01:00
timothy.beutels@bluecherry.be 7d26ae520e U4-580 Fixes an issue introduced by the bugfix for U4-580 in fdec8c2f6a62
The preview button got pushed out of view when the rte toolbar was loaded.
2012-12-11 15:10:16 -01:00
Morten Christensen 1eaa117883 Adding HasChildren check to ContentService and ContentTypeService.
Correcting an issue with loading of template ids in DocumentType class.
2012-12-11 14:27:18 -01:00
Morten Christensen 64b91ae1e4 Refactoring DocumentType class to use new public api in the following methods:
MakeNew
setupNode
GetByAlias
GetAllAsList
2012-12-11 13:34:00 -01:00
Morten Christensen 170293da41 Adding a few new methods to the ContentService and refactoring a few quirks.
Refactoring following methods in the Document class:
setupNode
MakeNew
GetRootDocuments
GetDocumentsOfDocumentType
GetDocumentsForExpiration
GetDocumentsForRelease
Rollback
GetVersions
GetPublishedVersion
GetDescendants
MoveToTrash
2012-12-11 12:15:37 -01:00
Morten Christensen 6516041617 Merge with 6.0.0 2012-12-11 08:55:45 -01:00
Morten Christensen 3a9e66b442 Merge 2012-12-11 08:44:50 -01:00
Sebastiaan Janssen 155a98a3dc Ammending commit 94f54db3ef7e, VirtualPathUtility didn't work, found that we
have a lovely new Umbraco.Core.IO.IOHelper for the thing we're trying to do here
2012-12-11 08:34:50 -01:00
Morten Christensen 01baef6bc2 Removing unused files 2012-12-11 08:00:23 -01:00
Morten Christensen 614ef15f8a Removing infrastructure setting, as its not needed any more 2012-12-11 08:00:06 -01:00
Shannon Deminick feff68ada8 Refactor new Services for thread safety, plus unit tests. Not all services are updated to be correct, only the
ContentService, the rest need to be updated as well.
2012-12-11 12:03:36 +05:00
Morten Christensen 15c78b539d Merge 2012-12-10 15:00:54 -01:00
Morten Christensen f114b06531 Adding events to MacroService 2012-12-10 14:59:33 -01:00
Morten Christensen 0613a422fb Adding events and audit trail for LocalizationService 2012-12-10 14:53:36 -01:00
Shannon Deminick aeab577627 Ensures that our view engines inherit from FixedRazorViewEngine as per #U4-1305 2012-12-10 20:48:04 +05:00
Morten Christensen 190cdaacb5 Adding events and audit trail to MediaService 2012-12-10 14:28:46 -01:00
Morten Christensen 3f846e188a Adding events and audit trail to FileService - templates, scripts and stylesheets. 2012-12-10 13:49:20 -01:00
Morten Christensen 7e728af93c Adding events and audit trail to DataTypeService 2012-12-10 13:04:18 -01:00
Morten Christensen fc188b6c8a Adding events and audit trail to ContentTypeService 2012-12-10 12:47:36 -01:00
Sebastiaan Janssen 1674b440ee Make sure to always use only the Web.Template.Config when transforming during build.bat 2012-12-10 12:12:32 -01:00