Commit Graph

71 Commits

Author SHA1 Message Date
sachajudd
11819a1e16 Merge pull request #140 from creative-commoners/pulls/2.0/rename-json-field
FIX Rename JsonField to DMSJsonField to add a pseudo-namespace
2017-05-24 15:38:34 +12:00
Robbie Averill
0ffd4d8584 FIX Rename JsonField to DMSJsonField to add a pseudo-namespace 2017-05-24 14:29:51 +12:00
Robbie Averill
80e36c3350 NEW Add friendly URL segments for DMS documents 2017-05-24 11:43:23 +12:00
Robbie Averill
9b42effeb5 FIX Refactor SCSS, convert to more BEM-like names, add admin icon
* Remove "small" class from inline edit form for documents
* Swap relationeditor GridFieldConfig for record editor to ensure that document sets can be deleted from a page context rather than unlinked (natively)
* Fix to ensure that related documents can be autocompleted via partial matching on filename
* Add 2 space indentation rule to editorconfig for .js and .scss files
2017-05-22 15:20:16 +12:00
Robbie Averill
489a62abb2 API Remove DMSGridFieldDeleteAction, add query builder filter for taxonomy terms 2017-05-18 17:30:25 +12:00
Robbie Averill
17d97d65ce API Remove DMSTag, replace with optional extension for taxonomy module 2017-05-18 17:30:24 +12:00
sachajudd
e4ab2b0861 Merge pull request #127 from robbieaverill/feature/change-storage-path
API Make storage path configurable. Fix instance singleton and remove static methods.
2017-05-18 17:20:59 +12:00
sachajudd
6afab52a09 Merge pull request #131 from robbieaverill/pulls/2.0/add-belongstoset-column
NEW Add column to document set GridField to show whether added manually or not
2017-05-18 15:42:10 +12:00
Robbie Averill
283f9fff7a API Make storage path configurable. Fix instance singleton and remove static methods 2017-05-18 15:14:09 +12:00
Franco Springveldt
03fe480ca5 Merge pull request #128 from robbieaverill/feature/configurable-shortcode-handler-key
NEW Allow shortcode handler key to be configurable
2017-05-18 15:11:54 +12:00
Robbie Averill
84e1d3ff80 NEW Add column to document set GridField to show whether added manually or not 2017-05-18 15:07:12 +12:00
Robbie Averill
8d2f707f48 FIX Ensure after uploading document you are redirected back to the document set 2017-05-18 11:51:32 +12:00
Robbie Averill
a6743b03f5 NEW Allow shortcode handler key to be configurable 2017-05-17 17:24:50 +12:00
Franco Springveldt
6b25237ec6 NEW Query Builder functionality added
This enhancement adds the ability to add documents to a document set based on a list of filters added from DMSDocument. Fixes #96
2017-05-16 13:26:01 +12:00
sachajudd
a59349e37f Merge pull request #113 from robbieaverill/feature/document-set-migration-guide
NEW Add migration task and documentation for 1.x to 2.x upgrade
2017-05-10 10:20:34 +12:00
Robbie Averill
a376b3480a FIX Move permissions for documents into the "actions panel" 2017-05-09 16:47:05 +12:00
Robbie Averill
aafcc35f6c NEW Add migration task and documentation for 1.x to 2.x upgrade 2017-05-09 13:20:30 +12:00
Robbie Averill
1c1b1d2aeb FIX Don't show GridField until set has been saved. Add more tests, fix typos in docs. 2017-05-09 13:06:37 +12:00
Robbie Averill
66abd22ee5 FIX Allow linking existing documents to document sets via add existing upload field 2017-05-09 13:04:29 +12:00
Robbie Averill
b80aa645f8 MINOR Add more tests for classes in the "cms" code folder 2017-05-09 13:04:29 +12:00
Robbie Averill
e4bc553521 API Add document sets, remove *Page methods from DMSDocument
* Add 2.0.0 changelog
* Update DMSInterface and DMSDocumentInterface removing *page and adding getDocumentSetsByPage to DMSInterface
* Update use documentation and update unit tests

This commit changes the relationship from Pages has_many Documents to Pages has_many DocumentSets which are many_many to Documents. The upload field has been upated to attach documents to a set instead of a page, the tests updated and the DMSInterface and DMSDocumentInterface updated to be less relevant to pages and more relevant to document sets.
2017-05-09 13:04:29 +12:00
Robbie Averill
2329ba4f40 FIX Do not allow documents to be related to themselves 2017-05-09 10:59:33 +12:00
Franco Springveldt
8682c7fca9 Added ability to secure DMS assets by user groups. 2017-05-08 16:12:46 +12:00
Sacha Judd
d29a115f7b NEW add DMSDocumentAdmin and new "add document" GridField component
The add new button wasn't modular so have added a GridField component which can be reused
2017-05-04 10:10:20 +12:00
Franco Springveldt
1f07069363 Merge pull request #105 from robbieaverill/bugfix/skip-dodgy-test
FIX Skip dodgy inconsistent unit test. Needs re-implementation.
2017-05-02 13:18:01 +12:00
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