Commit Graph

96 Commits

Author SHA1 Message Date
Robbie Averill
9c0ec616d1 NEW Relate documents to other documents
* Modularise templates, add missing localisations, add related documents to template
* Add getRelatedDocuments as an extensible getter in DMSDocument
2017-05-02 12:38:55 +12:00
Robbie Averill
e5f1b5c9db FIX Skip dodgy inconsistent unit test. Needs re-implementation. 2017-05-02 09:36:32 +12:00
Robbie Averill
39ce206b55 FIX Updates for coding standards, move second classes in files to their own files, fix comments 2017-05-01 15:56:27 +12:00
Daniel Hensby
97ec75df59
Added test 2016-12-20 15:15:37 +00:00
helpfulrobot
bd707c4ffc Converted to PSR-2 2015-12-18 07:48:37 +13:00
Will Rossiter
8e534e99f2 Make DMSDocument methods chainable. PHPDoc cleanup.
- Remove unimplemented getAllTags()
- Add .DS_Store as ignored file
- Add gridfieldextensions as a declared dependancy.
2014-01-10 15:21:50 +13:00
Ingo Schommer
fbb36c2e2c Fixed tests to allow running in subfolder 2013-11-01 00:57:36 +01:00
Andrew Short
76c4692d13 NEW: Add metadata to DMS links.
Shortlink links are now augmented with data attributes containing the
file extension and size.
2013-10-09 20:54:08 +11:00
Ingo Schommer
cad9042d5f Simplified travis support (using external scripts)
Also testing the 3.1 release
2013-03-29 10:07:05 +01:00
Ingo Schommer
f7e4e279ee More DB quoting 2013-03-11 15:32:51 +01:00
Ingo Schommer
38c99fc66b Added cms dependency to travis scripts 2013-03-11 14:31:20 +01:00
Ingo Schommer
437e6a4326 Exclude travis from manifest 2013-03-11 13:46:38 +01:00
Ingo Schommer
6b9ffa39d3 Travis support 2013-03-11 01:44:45 +01:00
Ingo Schommer
d95af01fbb Delete fixtures BEFORE test teardown, avoid problems with shutdown registrations
We've had some custom code register shutdown methods for reindexing.
This code is triggered on delete() amongst other actions.
It's conditional on SapphireTest::is_running_tests() which is
unset in SapphireTest->tearDown(), so we have to place any
delete operations before that.
2013-01-09 23:54:35 +01:00
Ingo Schommer
5d3f06b69a Force versioning on in tests 2013-01-07 17:38:14 +01:00
Julian Seidenberg
841afad0da BUGFIX: fixing unit tests to account for the ability for Admins to download embargoed files 2012-11-21 18:34:25 +13:00
Julian Seidenberg
1bd5d929ef API-CHANGE: adding document versioning 2012-11-21 18:24:46 +13:00
Julian Seidenberg
c72bbefabc ENHANCEMENT: using a defined directory for the dms so you can change the directory, if you want 2012-11-21 10:22:40 +13:00
Ingo Schommer
d207e8af34 MINOR Manually marking test run in DMSDocumentTest to avoid triggering solr reindex
Should really be handled by SapphireTest, tearDownOnce()
is technically still part of the test run, but this
is a quick enough fix
2012-11-01 12:42:21 +01:00
Ingo Schommer
f2d81e26df BUG Don't delete docs if respective other stage of SiteTree still exists 2012-10-15 01:01:58 +02:00
Julian Seidenberg
8895b4f907 BUGFIX: fixing unit tests 2012-10-10 13:44:10 +13:00
Ingo Schommer
75d9e06d7f BUG ID comparisons in test assertions
More solid than object comparisons, which was broken
by introduction of the "DocumentSort" flag,
which doesn't seem to be consistently added to the
object value map.
2012-08-27 13:29:30 +02:00
Julian Seidenberg
1f0c08db5d BUGFIX: fixing all the API changes made by Ingo in an earlier commit by searching for usage and updating places where the APIs are used 2012-08-27 15:07:01 +12:00
Julian Seidenberg
bac9666597 API-CHANGE: dms shortcode system 2012-08-21 14:31:13 +12:00
Julian Seidenberg
1a4ba2b5dd MINOR: renaming forever to indefinitely (embargo) 2012-08-14 17:26:26 +12:00
Julian Seidenberg
ca18b3fac0 API-CHANGE: working embargo API (with lots and lots of unit tests) 2012-08-13 14:14:31 +12:00
Julian Seidenberg
9e9cc995b3 ENHANCEMENT: warning when deleting a page with documents that exist only on this page. Also, when actually deleting the page, delete the associated documents that only exist on that page 2012-08-07 14:39:07 +12:00
Julian Seidenberg
043bfb98f6 API-CHANGE: refactoring static methods to adhere to coding conventions. 2012-08-07 11:19:54 +12:00
Julian Seidenberg
6fa0cc5a32 API-CHANGE: refactoring getDMSinstance() to inst() 2012-08-07 11:19:54 +12:00
Normann Lou
09a8229ec0 APICHANGE: change DMSDocumentInterface::downloadLink() to DMSDocumentInterface::getDownloadLink() so that a $DownloadLink could be used as a field to make GridField for DMSDocument to have a formatted linkable column
ENHANCEMENT: make "Filename" column of a GridField clickable hence make the document downlaodable.
ENHANCEMENT: make "Last Changed" column show as a "Ago" format, ie. 'A day ago' or 'there months ago'.
2012-08-01 12:35:44 +12:00
Julian Seidenberg
4aba2774a7 BUGFIX: fixing unit tests so they don't delete existing data 2012-07-30 12:57:27 +12:00
Julian Seidenberg
e0c028f87f BUGFIX: renaming method to prevent conflicts 2012-07-30 12:33:01 +12:00
Julian Seidenberg
17ea520f98 ENHANCEMENT: download link functionality 2012-07-27 17:40:17 +12:00
Julian Seidenberg
0f6e7be3b9 API-CHANGE: enabling replace document 2012-07-27 14:21:24 +12:00
Julian Seidenberg
6a40448609 API-CHANGE: refactoring to support replace document functionality 2012-07-27 14:02:46 +12:00
Julian Seidenberg
cb2f61c260 BUGFIX: fixing DMS unit tests 2012-07-27 13:11:28 +12:00
Julian Seidenberg
7b18e3ba7e BUGFIX: working DMS tags 2012-07-27 12:37:39 +12:00
Julian Seidenberg
03da4c3ff5 API-CHANGE: improved DMS tagging functionality 2012-07-27 12:37:39 +12:00
Julian Seidenberg
7a4444fd80 BUGFIX: fixing unit test 2012-07-25 18:59:01 +12:00
Julian Seidenberg
e50f776a0d ENHANCEMENT: implementing adding tags 2012-07-25 18:56:43 +12:00
Julian Seidenberg
5c6f57a6c1 MINOR: removing comment 2012-07-25 18:11:05 +12:00
Julian Seidenberg
ac826784f1 BUGFIX: fixing DMS Document unit test 2012-07-25 18:08:15 +12:00
Andrew O'Neil
5681f028ea MINOR: Mark tests incomplete 2012-07-23 13:50:10 +12:00
Julian Seidenberg
5e4c295853 API-CHANGE: additional DMS implementation code 2012-07-17 17:58:33 +12:00
Julian Seidenberg
27d666a08d API-CHANGE: fixing up the DMS and tests 2012-07-17 13:52:58 +12:00
Julian Seidenberg
2068a6d590 API-CHANGE: DMS interface and mock implementation 2012-07-16 18:21:48 +12:00