Commit Graph

9955 Commits

Author SHA1 Message Date
Sipke Schoorstra
c5b0cac24a Removed unnecessary lock statements and updated tests.
The updated test needs to refresh the lock record entity since the DB record is updated using different connections (from child lifetime scopes).
2015-08-22 20:15:20 +01:00
Sipke Schoorstra
5f4cd14937 Changed the lifetime of DB services to match their lifetime scope.
This enables tests that involve multi threading and child lifetime scopes.
2015-08-22 20:13:46 +01:00
Sipke Schoorstra
7673e2e12f Non-functional change but more explicit.
Perhaps a bit subjective, but passing in a null value or a zero value controls whether the AcquireLockInternal will block or not, so probably better to provide an explicit Zero value from TryAcquireLock instead.
2015-08-22 18:10:43 +01:00
Sipke Schoorstra
3615cbe6db Added table index to DistributedLockRecord. 2015-08-22 18:04:12 +01:00
Sipke Schoorstra
5dcbad2235 Formatted code.
Moved static members to top of class.
2015-08-22 17:51:34 +01:00
Sipke Schoorstra
079fb1f84b Narrowed the lock scope to per-thread. 2015-08-22 17:11:03 +01:00
Sipke Schoorstra
1cf2b6cf27 Corrected message on ObsoleteAttribute applied to ITaskLeaseService/TaskLeaseService. 2015-08-22 17:05:42 +01:00
Jack Cheng
28a1b4d663 #5618 taxonomy in autoroute needs to be saved twice
Fixes 5618
2015-08-21 19:27:29 -07:00
Gustavo Tandeciarz
bbcdd67b95 Cleanup
gulp-util was previously used during development and is no longer required.
2015-08-21 20:15:51 -04:00
Gustavo Tandeciarz
cfc1dc2379 Enables gulp watch of Assets.json
Will restart the watch task when Assets.json is changed.
2015-08-21 20:08:41 -04:00
Sebastien Ros
9e95f96195 Supporting .. syntax in watched assets 2015-08-21 16:01:44 -07:00
Daniel Stolt
ff6cb5688d Removed incorrect unique constraints and added missing ones. 2015-08-21 23:43:33 +01:00
Sipke Schoorstra
2555302ed7 Removed unintentionally added file. 2015-08-21 23:21:13 +01:00
Sipke Schoorstra
811001143e Corrected interface name.
Potentially breaking, but I highly doubt anyone implemented this interface.
2015-08-21 23:14:37 +01:00
Sipke Schoorstra
412c531027 Merge branch 'dev' into feature/auto-enable-dependencies
Conflicts:
	src/Orchard/Orchard.Framework.csproj
2015-08-21 19:45:53 +01:00
Sipke Schoorstra
81bf5d94fd Updated usages of ITaskLeaseService with IDistributedLockService. 2015-08-21 19:35:42 +01:00
Jeff
770704f3a7 Added required attribute to enumeration and numeric fields.
Fixes #3404.
2015-08-21 16:40:01 +01:00
Sipke Schoorstra
6c712a9840 Fixed bugs, refactored and polished distributed lock service.
- Added machine and thread scoped locking.
- Added support for blocking acquisitions.
- Added thread synchronization when creating and committing nested transactions for lock record creation and updates.
2015-08-21 15:22:32 +01:00
qt1
d9a3db1ebf Support htmlAttributes in ItemEditLink 2015-08-21 03:09:50 +03:00
Thierry Fleury
9980633ac3 Use Enumerable.Empty 2015-08-20 23:57:38 +02:00
Sébastien Ros
5b42c707b1 Merge pull request #5627 from Codinlab/fixes/ContentTypeEncoding
Fixes 5591 : ContentType's name encoding
2015-08-20 13:03:28 -07:00
Sébastien Ros
73683ec057 Merge pull request #5640 from jtkech/patch-4
#5552: ContentPicker Search Route issue

Fixes #5552
2015-08-20 12:26:09 -07:00
Sébastien Ros
83a35f89cf Merge pull request #5644 from mvarblow/patch-1
Allow for packaging a debug build
2015-08-20 12:22:00 -07:00
Daniel Stolt
2a9d931e39 Shortened unique constraint names for compatibility with MySQL.
MySQL has a maximum identifier length of 64 chars for constraints and indexes.
2015-08-20 12:38:58 +01:00
Daniel Stolt
aa7f9dd1cd Added unique constraints to core settings tables. 2015-08-20 12:38:57 +01:00
Daniel Stolt
aae53c3909 Added unique constraints to data migration records. 2015-08-20 12:38:57 +01:00
Daniel Stolt
90b3c1e7f6 Added unique constraints to ContentItemVersionRecord table. 2015-08-20 12:38:56 +01:00
Daniel Stolt
1c7ed9cb94 Added support for unique constraints to SchemaBuilder. 2015-08-20 12:38:55 +01:00
Sipke Schoorstra
61f1c3ae00 Simplified distributed locking implementation and did the following:
- Added Support for re-entry
- Made TryAcquireLock method thread-safe.
- Changed the way locks are released by decreasing their ref count. A lock is expired if: a) ref count == 0 or b) ExpiredUtc lies in the past. It is no longer necessary to delete a lock record (but would be fine, maybe as a background task).
2015-08-19 23:05:39 +01:00
Daniel Stolt
6b4a497e2d Merge pull request #5659 from planetClaire/5658
Show Default layer by default in Widgets admin
2015-08-19 14:03:38 +01:00
marshy
8cbb1d6960 Show Default layer by default in Widgets admin 2015-08-19 13:41:49 +08:00
Thierry Fleury
746d3d54c2 Fixes 5614 : ContentPickerField and LayoutPart throws argument null exception. 2015-08-18 12:46:09 +02:00
Daniel Stolt
1b55f42754 Merge branch '1.9.x' into dev 2015-08-17 00:26:33 +01:00
Daniel Stolt
f19b57c1e6 Fixed one remaining unit datetime localization unit test on Windows 10. 2015-08-17 00:25:34 +01:00
Daniel Stolt
9429ad6e63 Merge branch '1.9.x' into dev 2015-08-17 00:03:59 +01:00
Daniel Stolt
7533cd8879 Improved DateTime localization and unit tests on Windows 10.
Added support for era names to date formatting/parsing framework. Added handling of cultures with missing AM/PM designators. Fixes failing unit tests on Windows 10. Fixes #5595.
2015-08-17 00:01:32 +01:00
Daniel Stolt
75609bf2ce Excluded private locator URLs from JSON serialization in Azure Media Services. Fixes #4686. 2015-08-16 20:13:33 +01:00
Daniel Stolt
6228f4e8fb Merge branch '1.9.x' into dev 2015-08-16 18:02:29 +01:00
Daniel Stolt
4b44827f2a Added skeleton Assets.json to codegen theme template. 2015-08-16 17:50:47 +01:00
Daniel Stolt
a04195ee0e Added a simple skeleton Assets.json to codegen module template. Fixes #5606. 2015-08-16 17:38:16 +01:00
Daniel Stolt
3183df5b4a Recreated folder to resolve git case inconsistency. 2015-08-16 16:27:09 +01:00
Daniel Stolt
dfa1ada978 Deleted folder to resolve git case inconsistency. 2015-08-16 16:25:58 +01:00
Daniel Stolt
a6a6cb2d90 Merge branch '1.9.x' into dev 2015-08-16 16:19:59 +01:00
Daniel Stolt
b2c131f516 Refactored watch task in Gulpfile.js. 2015-08-16 16:15:46 +01:00
Daniel Stolt
359d25c1f2 Merge branch 'patch-5' of https://github.com/dcinzona/Orchard into 1.9.x 2015-08-16 14:43:36 +01:00
Lombiq
6552735df3 Media Library now correctly handles files with a # character in their name, fixes #5421. 2015-08-16 02:23:11 +02:00
Lombiq
59b3d50e03 Fixing that the empty username validation message wasn't shown on the Lost Password page, fixes #5353 2015-08-16 02:08:12 +02:00
Daniel Stolt
c508584e63 Merge branch '1.9.x' into dev 2015-08-14 11:57:38 +01:00
Daniel Stolt
f2bf75328e Merge pull request #5642 from paynecrl97/5520/tenantAwareConfig
#5520 AppConfigurationAccessor is now tenant aware.

Fixes #5520.
2015-08-14 11:43:09 +01:00
Chris Payne
0213524317 AppConfigurationAccessor is now tenant aware 2015-08-14 11:34:28 +01:00