Warren
9e996c68bb
Refactored the error params, so that exception is before the message/template so its more in sync with Serilog signature & was an easy way to find some more logs I missed too
2018-08-17 15:41:58 +01:00
Warren
2a298aaaf5
FIRST PASS - Updates Umbraco.Core project to not use the func overload & to use new message template instead
2018-08-14 15:08:32 +01:00
Stephan
b3696c29cc
Refactor Variants at service level
2018-07-04 08:59:50 +02:00
Dawid Koruba
51ab9e32de
Change calls to logger.Debug method to use Func<string> parameter
2018-06-29 12:35:31 +02:00
Shannon
5a991c9424
Fixes Publishing/Unpublishing variants and it's nuances
2018-05-07 23:22:52 +10:00
Shannon
23c40cbf2c
Fixes a couple issues, changes name from PublishValues to TryPublishValues
2018-04-26 21:37:29 +10:00
Stephan
edf7df043f
Reorg code, move services
2017-12-28 09:18:09 +01:00
Stephan
9b9c7c8e3a
Refactor content service
2017-11-30 13:57:40 +01:00
Stephan
37171d96bc
Port 7.7 - WIP
2017-09-13 17:35:20 +02:00
Shannon
e20c1cd0bb
U4-8465 Remove Core.Publishing namespace and classes
2016-05-18 13:10:36 +02:00
Stephan
ddf38407d8
U4-4847 Refactor ContentService ( #1266 )
...
* U4-4748 - refactor Content-, Media- and MemberTypeRepository
* Cleanup Attempt
* Cleanup OperationStatus
* U4-4748 - refactor Content-, Media- and MemberTypeService
* U4-4748 - cleanup locking
* U4-4748 - refactor Content-, Media- and MemberRepository
* U4-4748 - refactor ContentService (in progress)
* U4-4748 - all unit of work must be completed
* U4-4748 - refactor locks, fix tests
* U4-4748 - deal with fixmes
* U4-4748 - lock table migration
* Update UmbracoVersion
* Fix AuthorizeUpgrade
* U4-4748 - cleanup+bugfix lock objects
* U4-4748 - bugfix
* updates a string interpolation
2016-05-18 10:55:19 +02:00
Shannon
05d84c6673
updates the operation status to return the event messages used when raising events
2015-08-04 14:52:34 +02:00
Shannon
6d8ffb903f
Ensures events for deleting, trashing and unpublishing are done using the event messages, updates UI to support showing these messages in the list view, Since we cannot change the
...
method results on a service, we've created a new temporary service that we will explicitly implement with an extension method to get it. This is temporary until v8 where we will just replace
the original methods on the service with these methods and then remove this class.
2015-07-29 15:12:12 +02:00
Shannon
445dff7c5e
publicizes the ctor for PetaPocoUnitOfWorkProvider
2015-07-23 18:30:20 +02:00
Stephan
12d51b292c
U4-6154 - fix unpublishing a document with changes
...
Conflicts:
src/Umbraco.Core/Services/ContentService.cs
2015-01-19 14:03:58 +01:00
Shannon
e8f7f77bb6
Fixes: U4-581 Automatic publishing not working in load balanced setup - added some more convention and configuration to distributed calls so that servers are aware of the master and how to call into themselves for scheduled tasks, ping and scheduled publishing. Will need to update the docs on LB regarding this too. Cleaned up the code that does the scheduling and separates it into proper segments. Obsoletes the old presentation classes that were doing it.
2014-06-20 14:34:21 +10:00
Shannon
060e584503
backported IContentService updates
2013-12-16 15:57:59 +11:00
Stephan
32e3048717
Core.Attempt - refactor Succ() into Succeed()
2013-09-11 09:30:00 +02:00
Stephan
85ab96f71a
Core.Attempt - refactor and cleanup
2013-09-10 17:56:47 +02:00
Shannon
b7a1123319
U4-2579 BulkPublishController causes YSOD when there are invalid child elements due to InvalidProperties having a null reference
2013-08-02 16:23:32 +10:00
Shannon
7f4abb4893
Fixed editContent.aspx to let the business logic handle the property validation when trying to publish and show the correct status message result (if it was not publishable). Adds the invalid properties collection to the PublishStatus so those can be shown too.
2013-07-24 12:54:10 +10:00
Shannon Deminick
e921dca9d6
Fixed up more unit tests and issue with publishing logic.
2013-02-15 20:53:44 +06:00
Shannon Deminick
f741861014
WIP - refactored some of the lastest changes with publishing based on Morten's feedback.
2013-02-11 20:07:23 +06:00
Shannon Deminick
c23be1fd96
Fixes #U4-414, #U4-1669 - publish dialog now uses new apis and ensures documents are validated during publishing. This also
...
enhances many other things in the publishing API including giving a status result for each item, ensuring that child items
do not try to get published when the parent item fails (based on a subset of rules)
2013-02-11 03:55:58 +06:00
Shannon Deminick
ded940a757
Updates publishing strategy to allow for validating documents on publishing and reporting on that. Also depending on the
...
rules set, will not continue publishing it's children either. #U4-414
2013-02-09 06:23:51 +06:00
Shannon Deminick
b80415b34e
Fixes PublishingStrategy - It will still check if it's expired even if the event isn't cancelled. It now adheres
...
to some rules about publishing the children if a parent's publishing has failed or was cancelled. Have written unit
tests for these too.
2013-02-09 06:05:35 +06:00
Shannon Deminick
2ecc978591
Got publish strategy working to allow for publishing only descendants that have been previously published, or all descendants.
...
Added unit tests to support. Changed ServiceContext to accept a BasePublishingStrategy object as default and obsoleted the other
contructor... at least that interface should be easy to obsolete in favor of a base class.
2013-02-09 04:33:56 +06:00
Shannon Deminick
de13f7e361
WIP ... Fixes: #U4-1666, Updates documentService to not have to manually
...
refresh content cache (and fix the unpublishing too since that logic wasn't correct)
Adds DebuggerDisplay support to ContentBase and Entity for better debugging info.
Adds new internal publishing methods to support publishing all children or only children previously published. This also adds new support
for getting a published result back even with bulk publishing.
Updates the publish dialog with new code and to use the new API based on issue #U4-1669.
Adds UmbracoUser property to AuthenticatedUmbracoController, Adds all common properties to the abstract UmbracoController.
Changes the legacy Document to allow content cache to be automatically refreshed (based on events)
2013-02-09 04:05:01 +06:00
Morten Christensen
ca2942fdd9
Refactoring ChangePublishedState to use an enum instead of a boolean.
2013-01-10 14:07:07 -01:00
Morten Christensen
34c90e6e72
Removing redundent EventArgs class.
2012-12-28 17:55:00 -01:00
Morten Christensen
5dbcfa57a8
Implements the new publish and unpublish events in the PublishingStrategy.
...
Making the PublishStrategy public, so that its possible to subscribe to the events.
Removing the old PublishingEventArgs, which is no longer used.
Correcting a few comments.
2012-12-28 14:47:09 -01:00
Morten Christensen
8338102944
Reverting use of DateTime.UtcNow to DateTime.Now in the new api.
2012-12-28 10:43:34 -01:00
Shannon Deminick
2035f2d77f
Moved Event Args, etc... for persistence/services to Umbraco.Core.Events namespace
2012-12-15 10:43:03 +05:00
Shannon Deminick
1d259b711c
Changed IsAllRepublished on PublishingEventArgs to be readonly (pretty sure it supposed to be like that)
2012-12-15 10:38:57 +05:00
Morten Christensen
f5bfb90b64
Manually merging a few changes to the ContentService, ContentFactory, ContentRepository and ContentExtensions to avoid a merge hell when pushing latest to the legacy refactor branch.
...
Current checkin has a few new failing tests due to recent changes, but a few should be resolved by adding a DataTypesResolver setup in the ContentServiceTests fixture.
2012-12-14 15:19:54 -01:00
Morten Christensen
d1db48eb72
Moving PublishingStrategy to Core proj.
2012-11-12 07:33:22 -01:00
sitereactor
a130642b02
Correcting .Append to .Where in repositories for base queries.
...
Adding unit tests for MediaTypeRepository.
2012-11-07 14:41:28 -01:00
sitereactor
9b77eefb4c
Adding stragies plus tests for publishing and updating the xml cache.
2012-11-06 15:17:58 -01:00
sitereactor
ec9880968f
Moving interfaces for services to Umbraco.Core.
...
Adding xml extensions for Content to generate xml for the xml cache.
Adding test for xml generation.
2012-11-06 10:47:14 -01:00