Colin Kuskie
7e7bc9ca20
Label loop inside getLineage. Drop a clause from getLineageSql, since we can use LIKE to make sure the lineage does not include the parent. Move getLineage tests to the top since downstream tests depend on getting assets in lineage order.
2010-01-26 12:55:40 -08:00
Colin Kuskie
eb60168627
sessionification of AssetLineage, conversion to use moose accessors.
2010-01-26 07:25:51 -08:00
Colin Kuskie
de34ab3b95
fix getLineage. All tests in t/Asset/AssetTrash.t are passing.
2010-01-22 15:25:50 -08:00
Colin Kuskie
a00d173fe6
Rough conversion of Shortcut to Moose, so Asset cleanup works. Fix a bug in getLineage. Update tests for get_tables.
2010-01-20 19:12:04 -08:00
Colin Kuskie
caa1f330b8
Fix newByPropertyHashRef, which is required for class dispatch. Add tests. Fix addChild to use newByPropertyHashRef.
2010-01-20 18:44:48 -08:00
Colin Kuskie
41b741d41b
Convert Snippet to moose accessors.
2010-01-19 11:34:23 -08:00
Colin Kuskie
b7761ce50e
Move getParent over to using Moose attributes.
2010-01-15 16:59:34 -08:00
Colin Kuskie
d47438d9ae
More _properties work, converted into proper methods.
2010-01-14 16:41:23 -08:00
Colin Kuskie
86b5157e4d
Hand backport a patch from master. Do not cache the parent when adding a child.
2010-01-13 11:16:16 -08:00
Colin Kuskie
22823339ab
Sessionize addChild
2010-01-13 10:30:29 -08:00
Colin Kuskie
ce3edcf743
Move get_tables from Meta/Class into Meta/Asset. s/getTables/meta->get_tables/;
2010-01-04 15:34:24 -08:00
Colin Kuskie
49bd7f5032
newByDynamicClass changed to newById
2009-12-27 19:08:15 -08:00
JT Smith
95ecfc0adf
added getTables()
2009-10-22 15:03:38 -05:00
JT Smith
ebb6134c2d
bug fixes
2009-09-25 22:50:59 -05:00
JT Smith
ccff9c7014
Converted all existing uses of cache.
2009-09-25 22:24:33 -05:00
JT Smith
af705232a8
added exceptions, docs, and removed disableCache
2009-09-25 18:41:03 -05:00
Paul Driver
2621f92471
Small bug with the memory leak fix... fixed
2009-08-19 21:37:17 +00:00
Paul Driver
0a0ee3e6df
Fixed semi-rare memory leak in getLineage
2009-08-19 20:32:05 +00:00
Colin Kuskie
5e4db3adb4
Provide a framework for CSRF protection, with tests.
...
Add CSRF protection to Asset editSave, AssetManager, VersionTags and Group operations.
2009-07-06 16:58:57 +00:00
Colin Kuskie
8bcfa301b3
Make the AssetManager use Asset*.pm for cut, copy, paste, rank and duplicate.
2009-06-25 14:40:22 +00:00
Colin Kuskie
35749ff8c6
Add a progress bar for reordering rank in the Asset Manager.
2009-06-19 18:06:46 +00:00
Colin Kuskie
e518dbe1b3
Instrument www_demote, www_promote, demote, promote and swapRank with ProgressBar code.
2009-06-19 15:34:31 +00:00
Graham Knop
269227aa07
setParent shouldn't check user permissions, only www_ methods should
2009-04-03 19:26:13 +00:00
Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Graham Knop
ede922e060
fix small issue in addChild
2009-02-06 01:04:27 +00:00
Martin Kamerbeek
1dde85aad0
Merging fixed #8775 : Miscount in number of replies in CS Thread.
2008-12-03 15:39:33 +00:00
Colin Kuskie
1c8dbfe5b4
fix POD related to asset mixin classes, Asset*.pm
2008-11-24 22:22:39 +00:00
Graham Knop
3cb07d4152
fix lineage cache clearing, syntax warning, db cache storable usage
2008-11-04 22:47:11 +00:00
Graham Knop
b7937249d6
sped up lineage changes significantly
2008-11-04 22:46:55 +00:00
Graham Knop
d529da257d
improve documentation of lineage iterator
2008-09-23 21:32:40 +00:00
Graham Knop
a2757494af
use Module::Find instead of enumerating over the files
2008-09-17 15:38:01 +00:00
Frank Dillon
1eeb3e0eea
Fixed a bug in getLineageSql which was returning an empty array ref in certain cases.
2008-09-07 16:30:17 +00:00
Graham Knop
29a419e1eb
added: getLineageIterator method to simplify working on large sets of assets
2008-09-05 22:14:04 +00:00
Frank Dillon
102fb221f9
Added a new method getLineageSql() which is called the same was that getLineage is called but returns the SQL that is generated by the getLineage call rather than and arrayRef of assetIds or instantiated assets. This method is now called by getLineage.
2008-09-05 17:47:56 +00:00
Chris Nehren
a57f091370
Fix the "get all assets" code example in getLineage to show that getRoot needs a $session.
2008-07-03 19:33:41 +00:00
JT Smith
f88cf54053
shelves can see skus under them as well as by keyword
2008-05-18 17:23:03 +00:00
Graham Knop
74381281fa
fixed: getLineage with joinClass only joins first table in definition
2008-04-10 22:15:09 +00:00
Graham Knop
35bfeac0ef
fixed: Wiki attachments uploaded by non-Content Managers deleted by maintenance workflow
...
fixed: Non-Content managers unable to paste assets even with edit privileges
2008-04-01 14:42:11 +00:00
Graham Knop
77b09dee37
fixed: Child assets not indicated by plus sign in uncommited tags
2008-03-05 04:56:44 +00:00
JT Smith
93b5ca16e4
updating copyright year
2008-02-07 23:28:18 +00:00
Colin Kuskie
53b7a7bfcb
convert AssetLineage from stringy to blocky eval
2007-12-24 06:50:02 +00:00
Doug Bell
01c6379224
fixed some Gallery tests failing. removed some unnecessary ones. still bunch more to go...
2007-12-19 16:41:39 +00:00
Doug Bell
5222ad6be1
merged with SVN HEAD
2007-12-18 12:22:37 +00:00
Doug Bell
82e9bf8448
Finished? Ready for merge at least.
2007-12-17 22:22:06 +00:00
Doug Bell
ac1a7dc3a3
fix: CS posts get re-ordered when copy/paste
2007-12-13 17:26:28 +00:00
Colin Kuskie
185a582ef9
State and status fix for AssetLineage->getDescendantCount, and tests to
...
double check it.
2007-11-21 03:43:20 +00:00
Colin Kuskie
80333b1141
add more tests to cover AssetLineage->getChildCount. Optimize the new SQL query in getChildCount
2007-11-20 21:15:06 +00:00
Colin Kuskie
0799d70428
Fix for AssetLineage's getChildCount. It did not consider the
...
asset's status, only the state. Change the SQL query to always
look at status, and consider state based on the options passed
to the method.
Add two quick tests to test that. More to follow.
2007-11-20 04:46:45 +00:00
Colin Kuskie
d9fc434a78
POD documentation for the argument to getChildcount
2007-11-19 04:46:37 +00:00
Graham Knop
ad85d802fe
lineage protection
2007-10-17 00:53:49 +00:00