Commit Graph

8840 Commits

Author SHA1 Message Date
Sipke Schoorstra
86742c53c4 #20728: Optimizing query. 2014-12-04 21:09:15 -08:00
Sipke Schoorstra
5c2d394f32 #20728: Optimizing query. 2014-12-04 21:08:27 -08:00
Daniel Stolt
6340e504bc Various improvements to OutputCache module.
- Added synchronization of multiple concurrent content regeneration on cache miss.
- Added support for grace time, configurable per route.
- Refactored and cleaned up code and comments througout the module.
- Made many members "protected virtual" on OutputCacheFilter for easier substitution.
- Made various usability improvements in admin UI.
- Added support for "vary by authentication state".
2014-12-04 19:41:05 +08:00
Bertrand Le Roy
d7edef9bb8 Use TrimStart rather than a loop to remove leading slashes in autoroute driver. 2014-12-03 22:02:18 -08:00
Bertrand Le Roy
bd605810a8 Use string.Join instead of obscure and inefficient Aggregate pattern
CultureCommand change actually fixes a benign bug in one of the commands (extra space at the end).
DisplayHelper is clarified by better typing of intermediate results.
2014-12-03 16:31:57 -08:00
Sipke Schoorstra
8e530cf82d Adding back <T> argument for serialization purposes and updating extension methods to disambiguate between "object Get<T>(string)" and "T Get<T>(string)". 2014-12-02 13:20:09 -08:00
Sipke Schoorstra
acd4cdef08 Maintaining EmailField state after postback and adding default value field. 2014-12-01 23:04:52 -08:00
Sipke Schoorstra
804fef5e3d Adding support for draftable element widgets. 2014-12-01 22:53:35 -08:00
Sipke Schoorstra
3fdbd218d0 #20918: Updating Azure libraries. 2014-12-01 21:49:52 -08:00
Sipke Schoorstra
97267dec50 Improving caching API.
This changeset cleans up Orchard.Caching by having the service accept and return plain objects to support both class and value types, while providing extension methods offering a strongly typed approach.
Orchard.Redis is updated as the changes break any implementation of ICacheService and ICacheStorageProvider.
2014-12-01 20:36:28 -08:00
Sipke Schoorstra
a0c3f97cb2 Adding support for StopRoutingHandler.
Before this change, the StopRoutingHandler wouldn't work, since the wrapping HttpHandler would invoke the GetHttpHandler on the nested route handler, which in the case of StopRoutingHandler would throw a NotSupportedException.
Maybe a better, more generic way would be to somehow identify which routing handlers should be wrapped and which shouldn't be, maybe based on the result of the GetVirtualPath method on the RouteData object (e.g. if it returns "null", don't wrap).
2014-12-01 16:29:46 -08:00
Sipke Schoorstra
aae36c5458 Fixing SigninUserActivity bug.
The bug caused to always fail authentication if no username/password was present, even if the workflow context was a User.
2014-11-28 22:34:14 -08:00
Sipke Schoorstra
6b32f6db3c Making the SigninUserActivity support logging in the contextual content item if that content has the UserPart attached. 2014-11-28 20:26:22 -08:00
Sipke Schoorstra
da72fc9809 #21091: Fixing audit trail bug.
This fixes an issue causing a YSOD on the AuditTrail screen by recording all relevant data for the AuditTrailSettings event provider, such that the event providers themselves can be disabled without breaking the recorded events (which relied on the Event Descriptor to be available when rendering the event, which is unavailable if its providing feature is disabled).

Work Item: 21091
2014-11-27 16:55:18 -08:00
Sipke Schoorstra
ae9c8a9457 Adding SiginInUser workflow activity. 2014-11-24 14:52:31 -08:00
Sipke Schoorstra
dc9490d895 Correcting checkbox element such that it maintains postback state.
This fixes the issue where a checkbox would lose its checked state after posting back and a model validation occurs.
2014-11-24 14:50:44 -08:00
Sipke Schoorstra
8b1b2bfc1b Correcting checkbox shape with runtime value rather than default value. 2014-11-24 14:47:34 -08:00
Sipke Schoorstra
90a61ea1f3 Making Updater available for AddModelError activity. 2014-11-24 13:14:22 -08:00
Sipke Schoorstra
d84c5b2566 Adding DynamicForm activities.
These activities are useful to perform customized form validation.
2014-11-23 01:00:32 -08:00
Sipke Schoorstra
1557f64ccc Adding user activities.
These activities are useful when customizing user signup forms.
2014-11-23 00:58:27 -08:00
Sipke Schoorstra
c5dbb80a72 Fixing a content field binding issue.
The issue was that if you first "new up" a content item, update its content fields, and then invoke "create", its version record will be created, effectively wiping out the content fields' state.
Since we already know we want to create the content item, we can new up the content item and go ahead and create its version record, deferring event handlers from being triggered when we would start out with "Create".
2014-11-22 22:31:23 -08:00
Sipke Schoorstra
db6112d835 Fixing broken DynamicFormSubmittedActivity. 2014-11-22 22:14:50 -08:00
Sipke Schoorstra
d2e126c82f Improving UserPartBinding. 2014-11-22 22:08:03 -08:00
Sipke Schoorstra
cfd5b83c48 Supplying token source to notification. 2014-11-22 17:56:54 -08:00
Sipke Schoorstra
f79e0462c0 Initializing T with a proper NullInstance.
This allows for easier testing where client code will not inject T (which would cause null reference exceptions down the line).
2014-11-22 17:09:10 -08:00
Sipke Schoorstra
b492a5676a Adding Shape element. 2014-11-22 16:37:05 -08:00
Sipke Schoorstra
9f3647bb7a Correcting Column element editor shape. 2014-11-22 16:20:02 -08:00
Sipke Schoorstra
a3da7de0be Adding missing OrchardFeature attribute. 2014-11-22 16:12:32 -08:00
Sipke Schoorstra
088e04b49d Adding element token provider and HTML token filter. 2014-11-22 00:04:42 -08:00
Sipke Schoorstra
1a9e5f4681 Adding support for fetching of element descriptors from the blue print element harvester.
The problem before this change was that the cache manager would cache an empty list of elements when trying to locate a blueprint element without specifying a content item.
The VaryByParam property allows additional control over the cache key.
2014-11-21 23:57:26 -08:00
Sipke Schoorstra
06ebab41fe Adding TextArea validation. 2014-11-21 17:47:32 -08:00
Sipke Schoorstra
fe19427ee8 Fixing blueprint state inheritance. 2014-11-20 23:44:53 -08:00
Sipke Schoorstra
e1ed30a1f8 Pushing driver and editor down to ElementDescriptor.
This allows for more granular control over what gets rendered when.
One scenario that this enables is where one can create an Element Blueprint and use it as a widget via the ElementWrapperPart.
2014-11-20 23:37:40 -08:00
Sipke Schoorstra
88d165e31c Fixing Tags feature spec flow test. 2014-11-20 19:16:25 -08:00
Sipke Schoorstra
1732090e11 Fixing Setup spec flow test. 2014-11-20 19:13:19 -08:00
Sipke Schoorstra
159a707130 Fixing Pages spec flow test. 2014-11-20 19:12:37 -08:00
Sipke Schoorstra
89dae6ee08 Fixing SpecFlow tests by adding Orchard.Layouts to the mix. 2014-11-20 14:17:11 -08:00
Sipke Schoorstra
7143edca05 Creating content item after binding against submitted values. 2014-11-19 21:54:52 -08:00
Sipke Schoorstra
07e462144e Removing unused import. 2014-11-19 21:54:27 -08:00
Sipke Schoorstra
a7b0308e9a Simplifying LayoutPart indexing.
- Removed all the infrastructural code that enabled each element to contribute to the index.
- Indexing now happens in the LayoutPartHandler, where the LayoutPart is rendered to HTML, which is then being indexed.
2014-11-19 21:40:04 -08:00
Daniel Stolt
004caf387f Added missing projects to Orchard.Azure.sln. Retargeted Orchard.Azure.Web.csproj to .NET Framework 4.5.1. 2014-11-17 02:46:39 +01:00
Daniel Stolt
4a18247588 Moved IMachineNameProvider into Orchard.Framework. 2014-11-17 02:30:25 +01:00
Daniel Stolt
9855914af2 Removed IDependency from AzureBlobShellSettingsManager and AzureMachineNameProvider to prevent them from being registered as part of the default feature of the Orchard.Azure module. IShellSettingsManager and IMachineNameProvider implementations should always be registered using Host.config. 2014-11-17 00:01:44 +01:00
Daniel Stolt
ffe6a733ea Various TinyMCE improvements:
- Removed png image for toolbar buttons in mediapicker and medialibrary plugins and replaced with vector icon to harmonize with other toolbar buttons.
- Fixed styling of menu items and enabled menu bar and status bar.
- Improved toolbar button ordering.
- Enabled more features.
- Added styling of pre and code elements in editor.
- Cleaned up JavaScript formatting.
2014-11-16 19:46:32 +01:00
Sipke Schoorstra
3fb84f80ef #21075: Fixing outcome labels.
Work Item: 21075
2014-11-16 02:24:38 -08:00
Sipke Schoorstra
61b73d84ea Fixing Core recipe scenario.
Because Orchard.Pages no longer adds the BodyPart by default, the Core recipe will have to add it, since it uses the "page create" command which expects the BodyPart to be there.
2014-11-15 16:29:18 -08:00
Sipke Schoorstra
15387e961e Swapping out BodyPart for LayoutPart for new sites.
Also, the three widgets created by default are replaced with HTML elements inside of the layout, since they appear on the home page only.
2014-11-15 15:54:26 -08:00
Sipke Schoorstra
9581cd583e Simplifying summary shape for LayoutPart. 2014-11-14 20:43:06 -08:00
Sebastien Ros
93a13c5b9c Fixing compilation 2014-11-14 14:22:46 -08:00
Sebastien Ros
065e4fdf42 #21068: Fixing caching of value types
Work Item: 21068
2014-11-14 11:21:36 -08:00