Commit Graph

5319 Commits

Author SHA1 Message Date
Renaud Paquay
4daaeb0b40 Removed unused dependency
--HG--
branch : 1.x
2011-05-31 20:57:54 -07:00
Renaud Paquay
3ac3aead61 Use supported VPP api to retrieve modification date
--HG--
branch : 1.x
2011-05-31 19:19:07 -07:00
Renaud Paquay
1bb16a470c Load features in parallel.
--HG--
branch : 1.x
2011-05-31 18:24:18 -07:00
Renaud Paquay
df9abf1cc0 Load references of dependencies in parallel.
--HG--
branch : 1.x
2011-05-31 18:23:29 -07:00
Renaud Paquay
4c2785024c Ensure task result are returned ordered
This is to avoid a potentially un-wanted side-effect of having
an enumeration returned in a different order when executed
in parallel.

--HG--
branch : 1.x
2011-05-31 18:22:47 -07:00
Renaud Paquay
5f04d394c4 Minor cleanup
--HG--
branch : 1.x
2011-05-31 18:21:41 -07:00
Suha Can
07dbc2b136 #17879: Export a field duplicate settings for all field types
The bug was lower in the stack, in ContentDefinitionWriter. So besides Import/Export, the Experimental
module was also susceptible to the same. There may still be some loose end related to FieldSettings in
general, doesn't seem to be a well explored area.

--HG--
branch : 1.x
2011-05-31 18:09:45 -07:00
Suha Can
1dbc40c6ac Contribution by Piotr.
Fix workitem #17872: Null shape added to Zone causes NotImplementedException being thrown (return to change listing).
Added handling of null shapes. If shape that gets passed to Add method is null - it is simply ignored.

--HG--
branch : contributions
2011-05-31 12:38:34 -07:00
Suha Can
13d921a648 Contribution by mspring.
Added the BlogPart to the shape model of RecentBlogPostsPart just the same way
as being done in BlogArchivesPartDriver.
This enables the use of Html.ItemDisplayLink((IContent)Model.Blog) inside
overwritten shapes which want to show a link to the entire blog.

--HG--
branch : contributions
2011-05-31 12:20:43 -07:00
Renaud Paquay
f04e67d151 PERF: Extension loader probing performed in parallel
--HG--
branch : 1.x
2011-05-30 22:55:44 -07:00
Renaud Paquay
7122000ae0 Refactor cache context to support correct parallel execution
We need a new service, IParallelCacheContext, which allows
tracking the current cache context across threads and tasks
running in the thread pool.

--HG--
branch : 1.x
2011-05-30 22:31:27 -07:00
Renaud Paquay
1c16b10aa0 Run extension harvesting code in parallel task
Extension harvesting is a mix of independent operations requiring
file i/o and cpu usage, so they are good candidate for
parellelization.

Also make module harvesting in ~/Core a separate folder instance.

--HG--
branch : 1.x
2011-05-30 17:37:51 -07:00
Renaud Paquay
750493c447 Abstract away cache context
This is needed to support proper behavior of cache context
when executing tasks in parallel.

--HG--
branch : 1.x
2011-05-30 17:33:59 -07:00
Renaud Paquay
3ca3234bbf Refactor extension folder harvesting
Use composition over inheritance. This will be useful later to
improve performance of module/theme manifest harvesting.

--HG--
branch : 1.x
rename : src/Orchard/Environment/Extensions/Folders/ExtensionFolders.cs => src/Orchard/Environment/Extensions/Folders/ExtensionHarvester.cs
2011-05-30 14:17:06 -07:00
Renaud Paquay
48a48e4cfe PERF: Don't look for themes in "~/Core".
It's not supported, hence it's unecessary disk I/O.

--HG--
branch : 1.x
2011-05-30 12:12:00 -07:00
Renaud Paquay
d6e4297c91 Merge
--HG--
branch : 1.x
2011-05-30 00:01:01 -07:00
Renaud Paquay
1fd64b705d PERF: Move async token monitoring to a service interface
Update UT

--HG--
branch : 1.x
2011-05-29 13:58:06 -07:00
Renaud Paquay
234375704a Fix bug in hashing algorithm
As per .NET guidelines and implementation details, can't use
string.GetHashCode() to persist string hash code values on disk.

--HG--
branch : 1.x
2011-05-29 13:08:38 -07:00
Sebastien Ros
487b04e6b6 Owner Editor is displayed by default for visual compatibility
--HG--
branch : 1.x
2011-05-29 10:51:37 -07:00
Renaud Paquay
a281658f9a Minor code refactoring
Spmplify/relayer things a little bit

--HG--
branch : 1.x
2011-05-29 02:42:57 -07:00
Renaud Paquay
933b625bf0 PERF: Re-use cached filehash for dynamic module hash
Before recompiling a dynamic module (.csproj), the BuildManager
verifies that the file hash (returned from the VPP) has changed
from the previous compilation. Instead of returning of the file
hash of the .csproj file and all its virtual dependencies (source
files and references), use the file hash value stored in the file
managed by IExtensionDependenciesManager.

This improves startup time by 10+ seconds on file i/o bound machines.

--HG--
branch : 1.x
2011-05-28 22:16:14 -07:00
Renaud Paquay
21f1658f48 PERF: During startup, re-use the retrieve file modification dates
to compute the file hash to store into the ExtensionDependencies
file. This allows skipping doing additional file I/O on dynamic
modules when they are activated.

--HG--
branch : 1.x
2011-05-28 21:01:39 -07:00
Renaud Paquay
b97c0f0666 Rename class to be more consistent with similar components
--HG--
branch : 1.x
rename : src/Orchard/FileSystems/Dependencies/DefaultModuleDependenciesManager.cs => src/Orchard/FileSystems/Dependencies/DefaultExtensionDependenciesManager.cs
rename : src/Orchard/FileSystems/Dependencies/IModuleDependenciesManager.cs => src/Orchard/FileSystems/Dependencies/IExtensionDependenciesManager.cs
2011-05-28 20:45:51 -07:00
Renaud Paquay
ec7e44db4f Move last write time computation out of loaders
Loaders should only know about dependencies, not about modification
dates. This will help centralizing and abstracting away (for
performance reason) the algorithm used to pick the correct
module to activate (according to last modification dates).

--HG--
branch : 1.x
2011-05-28 20:44:46 -07:00
Renaud Paquay
23afea8a0e PERF: Monitor modules files asynchronously
Monitoring virtual dependency files for modules takes requires a lot
of file I/O, and can be a significant bottleneck on heavily loaded
disk sub-system (5-10 secs). Making this process asynchronous during
startup decreases startup time by almost that amount of time.

--HG--
branch : 1.x
2011-05-28 19:05:52 -07:00
Louis DeJardin
331a36a703 Small mistakes in last commit
--HG--
branch : 1.x
2011-05-27 19:35:28 -07:00
Louis DeJardin
252cc00196 Refactoring OwnerEditor and DateEditor breakout
Splitting OwnerEditor and DateEditor settings apart. Breaking off any knowledge
in the CommonPart of the OwnerEditor and DateEditor.

Changed the settings to appear as TypePart definition instead of Type.

Based the ViewModel on Shape instead of EditorTemplates.

The goal of these changes is to illustrate how a 3rd party module would
accomplish the same kind of ContentPart extension w/out changing core code.

--HG--
branch : 1.x
rename : src/Orchard.Web/Core/Common/Drivers/DateEditorPartDriver.cs => src/Orchard.Web/Core/Common/DateEditor/DateEditorDriver.cs
rename : src/Orchard.Web/Core/Common/Handlers/DateEditorPartHandler.cs => src/Orchard.Web/Core/Common/DateEditor/DateEditorHandler.cs
rename : src/Orchard.Web/Core/Common/Settings/CommonEditorsSettings.cs => src/Orchard.Web/Core/Common/DateEditor/DateEditorSettings.cs
rename : src/Orchard.Web/Core/Common/Drivers/OwnerEditorPartDriver.cs => src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorDriver.cs
rename : src/Orchard.Web/Core/Common/Settings/CommonEditorsSettings.cs => src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorSettings.cs
rename : src/Orchard.Web/Core/Common/ViewModels/OwnerEditorViewModel.cs => src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorViewModel.cs
rename : src/Orchard.Web/Core/Common/Views/DefinitionTemplates/CommonEditorsSettings.cshtml => src/Orchard.Web/Core/Common/Views/DefinitionTemplates/DateEditorSettings.cshtml
rename : src/Orchard.Web/Core/Common/Views/DefinitionTemplates/CommonEditorsSettings.cshtml => src/Orchard.Web/Core/Common/Views/DefinitionTemplates/OwnerEditorSettings.cshtml
rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts.Common.CreatedUtc.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Date.Edit.cshtml
extra : transplant_source : %D1%21c%ACa%F0%0FO%A1%9A%88YS%1Bk9.%CB%04%08
2011-05-27 19:02:45 -07:00
Sebastien Ros
fd041c3c2e #17842: Exception when content type name contains special chars
Work Items: 17842

--HG--
branch : 1.x
2011-05-27 14:59:45 -07:00
Renaud Paquay
7a35d03902 PERF: Adding various logging calls related to startup performance
--HG--
branch : 1.x
2011-05-27 14:19:46 -07:00
Renaud Paquay
fdbe7fd454 Fixing UT
--HG--
branch : 1.x
2011-05-27 14:19:23 -07:00
Sebastien Ros
5677c4dba9 Changing CreatedUtc behavior to be also set the first time it is published.
Relies on DateEditorPartDriver to be enabled.

--HG--
branch : 1.x
2011-05-27 12:11:31 -07:00
Renaud Paquay
e806b8a1f3 PERF: Adding various logging calls related to startup performance
--HG--
branch : 1.x
2011-05-27 10:58:37 -07:00
Andre Rodrigues
fc6821cb8c Merge
--HG--
branch : 1.x
2011-05-26 13:40:51 -07:00
Andre Rodrigues
2e2e193905 #17297: Setting default container sorting to be by CreatedUtc.
--HG--
branch : 1.x
2011-05-26 13:39:03 -07:00
Suha Can
9c6e953ba7 #17823 Import/Export doesn't export the Display Name of a content type
--HG--
branch : 1.x
2011-05-26 11:29:44 -07:00
Dave Reed
ee35e138a3 #17860: WidgetsService.GetZones can return duplicate zones
--HG--
branch : 1.x
2011-05-25 14:06:24 -07:00
Dave Reed
c17488d329 Merge
--HG--
branch : 1.x
2011-05-25 12:13:53 -07:00
Dave Reed
0aa6757b08 Moving list content to position 7
--HG--
branch : 1.x
2011-05-25 12:07:12 -07:00
Dave Reed
ab71f4cc7f #17426: Content item with Container part renders without other parts
--HG--
branch : 1.x
2011-05-25 12:06:19 -07:00
Dave Reed
f10f1215e6 #17867: OrchardControllerFactory exception on 404s
--HG--
branch : 1.x
2011-05-25 12:03:30 -07:00
Louis DeJardin
39d22e4ec4 Merge
--HG--
branch : 1.x
2011-05-25 11:10:59 -07:00
Andre Rodrigues
e137d146db Removing unused IWorkContextAccessor, logger and localizer.
--HG--
branch : 1.x
2011-05-24 18:46:56 -07:00
Louis DeJardin
c771be816c Using better argument variable names
--HG--
branch : 1.x
2011-05-24 17:39:47 -07:00
Louis DeJardin
08ec2d3674 Adding tests to assert Autofac's expected behavior
--HG--
branch : 1.x
2011-05-24 17:35:31 -07:00
Sebastien Ros
742bafcd39 Merge
--HG--
branch : 1.x
2011-05-24 16:35:10 -07:00
Sebastien Ros
e193b4e3c7 Adding Shape debug viewers
--HG--
branch : 1.x
2011-05-24 16:34:42 -07:00
Louis DeJardin
80bfa368c1 Reversing order of IEnumerable<TService> resolved from IoC
Components are registered in dependency/priority order and
this is also the order events and hooks should fire. The default
order of Autofac is opposite what we need for enumerable services.

The behavior of resolving a single TService is unchanged - the
last-registered of TService is the only returned.

--HG--
branch : 1.x
extra : transplant_source : %87%22%FC%84%A1%0FP%3C%20w%B4%1EQ%CC%90%20%97%C1%EC%BF
2011-05-24 15:52:15 -07:00
Andre Rodrigues
3e74f4a4d6 #17816: Avoiding unecessary allocations and comparisons in the DefaultCacheManager.
--HG--
branch : 1.x
2011-05-24 14:10:40 -07:00
Andre Rodrigues
62c94648ec #17816: Caching current theme name as a way to avoid up to 2 queries per request.
--HG--
branch : 1.x
2011-05-24 12:34:27 -07:00
Renaud Paquay
8e83faa224 PERF: Adding various logging calls related to startup performance
--HG--
branch : 1.x
extra : transplant_source : %DC%AB%0E%89%B4%01%20%17%29%87%0F%D86%3A%FE%EE%A2%FB%D9%94
2011-05-23 17:46:46 -07:00