Benoît Burnichon
afbacaa640
set_original_name wasn't working as expected. Added test.
2015-07-10 19:06:10 +02:00
Mathieu Darse
d778ab5126
Refactor query context
...
No more private collection map, uses new features from LimitedStructure.
From now on, Context tries to return Field objects instead of strings.
New context methods:
- getUnrestrictedFields()
- getPrivateFields()
- localizeField(Field) (signature changed)
- localizeFieldName(string)
QueryContext::localizeField() now takes a Field object, use localizeFieldName() if you want to pass a string.
Field::getIndexFieldName() renamed to Field::getIndexField().
Raw index fields are now obtained with Field::getIndexField(true).
2015-07-10 17:33:10 +02:00
Thibaud Fabre
569c2ff6d8
Implement save collection VO
2015-07-10 17:32:09 +02:00
Benoît Burnichon
5d8e89363e
Some PHPCS
2015-07-10 16:32:39 +02:00
Mathieu Darse
929705f13e
Structure -> GlobalStructure + LimitedStructure
...
Rename Structure to GlobalStructure.
Add new LimitedStructure to wrap another Structure and transparently restrict
access on private fields.
2015-07-10 12:30:13 +02:00
Benoît Burnichon
2a82477c89
Change record_adapterTest to use method instead of static DI.
2015-07-10 11:59:59 +02:00
Benoît Burnichon
de8657aabf
Restore previous behaviour of get_duration. PHPCS
2015-07-10 11:56:18 +02:00
Benoît Burnichon
3b3f3f4011
Use TechnicalDataSet in record_adapter
2015-07-10 11:56:17 +02:00
Benoît Burnichon
8e6648c512
Add some classes to handle Technical Data
2015-07-10 11:56:17 +02:00
Benoît Burnichon
c9cd428acc
Use of old PDO singleton.
...
Also fixup test suite to check behaviour of set_mime (only setter)
2015-07-10 11:43:51 +02:00
Thibaud Fabre
ea6a4fdbf0
Extract repository and factory classes for collections
2015-07-09 12:32:06 +02:00
Benoît Burnichon
dd73d6dae2
Renaming of Databox{,Field}Repository
2015-07-08 14:58:41 +02:00
Benoît Burnichon
f3834eb083
Add getFirstDatabox and getClient to PhraseanetTestCase
2015-07-08 11:08:07 +02:00
Benoît Burnichon
8ee5279d58
Remove all uses of databox_field::get_instance
2015-07-08 11:08:07 +02:00
Benoît Burnichon
57ae1ade77
Fixup instability on local testsuite.
...
Permalink were checked on a non authentified call. So received resources were watermarked.
2015-07-06 17:01:48 +02:00
Mathieu Darse
aa0b40b679
Test TermNode
2015-07-03 20:01:29 +02:00
Mathieu Darse
6b88b7d17b
Tests & private fields support on QuotedTextNode
2015-07-03 20:01:20 +02:00
Benoît Burnichon
bfcf254390
Fixup SubdefsTest. Databox could not be stored as subdef modification invalidates it.
2015-07-03 18:20:10 +02:00
Benoît Burnichon
cc7a238e92
Remove an SQL statement in databox, along with cache Key
2015-07-03 18:20:09 +02:00
Benoît Burnichon
62ac0e0cbc
Use computed key from appbox.
2015-07-03 18:20:09 +02:00
Benoît Burnichon
26f8869f1e
Remove DataboxHydrator as now too tiny.
...
Add createMany to DataboxFactory.
2015-07-03 18:20:09 +02:00
Benoît Burnichon
c5239259d1
Refactor DataboxRepository
2015-07-03 18:20:09 +02:00
Benoît Burnichon
0eb9ec40d8
Add Tests to DataboxRepository
2015-07-03 18:20:09 +02:00
Benoît Burnichon
00f5f3369e
Add DataboxRepository
2015-07-03 18:20:09 +02:00
Mathieu Darse
386251b91c
Remove duplication & fix test class name
2015-07-03 17:40:56 +02:00
Mathieu Darse
393e4c62c1
Test thesaurus Concept
2015-07-03 16:57:33 +02:00
Mathieu Darse
570e4fea81
Test TextNode
...
Make buildConceptQueries() return early when no concepts are available (do not
call getFields() uselessly anymore).
2015-07-03 16:54:47 +02:00
Mathieu Darse
1d0257554b
Fix code style on latest query parser feature & add tests
2015-07-02 19:06:44 +02:00
Benoît Burnichon
6e52421437
Merge pull request #1390 from mdarse/private-fields-collection-map
...
Fields « used by » collection map
2015-07-02 12:55:45 +02:00
Benoît Burnichon
ff67120388
Fixup some tests that fails with Elasticsearch.
2015-07-02 12:33:19 +02:00
Benoît Burnichon
4cdca486d8
Add getApplication() method PhraseanetTestCase.
2015-07-02 12:33:19 +02:00
Benoît Burnichon
a9160d62f6
Authentication linked test issues fixup
2015-07-02 12:33:19 +02:00
Benoît Burnichon
78187f7103
PHPCS fixup
2015-07-02 12:33:19 +02:00
Benoît Burnichon
d62a4eb4e7
Refactor setAdmin
method to properly handle special cases.
2015-07-02 12:33:19 +02:00
Benoît Burnichon
f920e8354a
Replace phraseanet.appbox by getApplicationBox() method calls.
2015-07-02 12:33:19 +02:00
Benoît Burnichon
19b8d41dcd
Mock AclProvider in pimple AND Application.
...
fix CamelCase in `stubbedACL` name.
2015-07-02 12:33:18 +02:00
Benoît Burnichon
d645b92afa
Add AclAware Trait
2015-07-02 12:33:18 +02:00
Benoît Burnichon
4880f2bf5a
Add getAuthenticator usage
...
Replace $app['authentication']->getUser() by $app->getAuthenticatedUser()
replace twig app['authentication'].getUser() with corresponding method
2015-07-02 12:33:18 +02:00
Benoît Burnichon
5f281fd525
Remove appbox-register service as never used and class not defined
2015-07-02 12:27:26 +02:00
Benoît Burnichon
6e651f3b07
Replace app['phraseanet.appbox']->get_databox using trait
2015-07-02 12:27:26 +02:00
Benoît Burnichon
b79eb27632
Fixup NativeAuthentication arguments
2015-07-02 12:27:25 +02:00
Mathieu Darse
ebbcd3f4dd
Restore privateCollectionMap in context & fix tests
2015-07-02 12:10:36 +02:00
Jean-Yves Gaulier
45d96fa301
PHRAS-482 #time 20m
...
- added tests
2015-07-01 18:30:43 +02:00
Mathieu Darse
4157d14d1b
Get collections by private fields & filter collections by user rights
2015-06-29 19:15:52 +02:00
Benoît Burnichon
fea47ef5ee
Change Elastic Field structure to cope with Collection base_ids
2015-06-29 19:15:52 +02:00
Benoît Burnichon
041f017fd7
Merge pull request #1395 from jygaulier/PHRAS-442_FACETS-IN-API
...
PHRAS-442
2015-06-29 17:55:56 +02:00
Benoît Burnichon
28fee99fc4
Add Form for ElasticSearch Configuration.
...
Also changed type from array to Options object.
2015-06-29 17:10:32 +02:00
Benoît Burnichon
0ea2218982
Fix installer test using proper mysql host.
2015-06-24 14:25:56 +02:00
Jean-Yves Gaulier
0584fddfc8
PHRAS-442 #time 2 m
...
fix tests
2015-06-22 18:20:22 +02:00
Jean-Yves Gaulier
842ce637e7
PHRAS-442 #time 10 m
...
cs
2015-06-22 18:20:22 +02:00