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
Mathieu Darse
878d4011a8
Fix tests & add PHPUnit groups
2015-06-22 10:36:21 +02:00
Mathieu Darse
6821f22be7
Move structure tests together
2015-06-19 21:53:08 +02:00
Mathieu Darse
a74d0cd7bd
Fix thesaurus regression from f25bdf4171
...
- Field class is now immutable, mergeWith() returns a new instance
- Thesaurus roots are recursively merged
- In case of field merge, Structure class do not index the previous field
- Added failing test case for previous bugs
- Added merge tests on Field class
- Added tests for all indexed stuff inside Structure class
2015-06-19 21:53:08 +02:00
Benoît Burnichon
488a6f6d24
Use ArrayCache as default caching provider.
...
This should speed up tests and also prevent external service dependency
2015-06-18 12:39:02 +02:00
Benoît Burnichon
5b2e81264a
Add $objectForMap parameter.
...
due to commit 238589d4e8
2015-06-17 17:54:34 +02:00
Benoît Burnichon
e1510143a7
Merge pull request #1392 from bburnichon/feature/controller-as-service
...
Controller as service
PHRAS-529
2015-06-16 11:08:03 +02:00
Benoît Burnichon
b272ce5aac
Add some groups legacy, functional, web, authenticated
2015-06-15 19:30:51 +02:00
Mathieu Darse
ea8eb4dc07
Fix another IN search regression from 40e2df6c3f
...
Move getIndexFieldName() from `RecordHelper` to `Field`.
Also remove an unused injected dependency
2015-06-15 19:18:06 +02:00
Benoît Burnichon
3dff76f651
Refactor InformationController
2015-06-15 17:13:27 +02:00
Benoît Burnichon
ea7fb2b182
Refactor ActivityController
2015-06-15 16:51:23 +02:00
Mathieu Darse
605c943af5
Fix IN search regression from 40e2df6c3f
2015-06-15 16:13:44 +02:00
Benoît Burnichon
627475799f
Change travis configuration
2015-06-12 12:25:04 +02:00
Benoît Burnichon
d473a6f69c
Fixup tests with proper clearing of cache.
2015-06-10 14:50:29 +02:00
Benoît Burnichon
92636bfe5a
Properly initialize value.
...
Change call to protected method to public one.
2015-06-09 11:26:20 +02:00
Benoît Burnichon
cd7d8b5d3b
Properly clear cache at end of tests. Avoid side-effects on others tests.
...
Also prevent flushing empty queues as it load mocked configuration
2015-06-09 11:12:01 +02:00
Benoît Burnichon
c362122f3c
Delete previous dbs to avoid side effects
2015-06-05 12:39:35 +02:00
Benoît Burnichon
2f39dc5664
Fixup get databoxes fetch in ApplicationTest
2015-06-03 21:11:02 +02:00
Mathieu Darse
1e4669c122
Test structure more extensively & make isPrivate() throw on invalid field name
2015-06-03 19:45:48 +02:00
Mathieu Darse
421684757a
Refactor merged field structure
...
Here is the new model:
+-----------------------------+
| Structure |
+-----------------------------+
| +createFromDataboxes() |
| getAllFields() |
| getUnrestrictedFields() |
| getPrivateFields() |
| getFacetsFields() |
| getThesaurusEnabledFields() |
| getDateFields() |
|- - - - - - - - - - - - - - -|
| add() |
| get() |
| typeOf() |
| isPrivate() |
+-------+-+-+-----------------+
| | | +---------------------+
| | +--------> | Field |
| | +---------------------+
| | | getName() |
| | | getType() |
| | | isXXX() |
| | | getThesaurusRoots() |
| | +---------------------+
| |
| | +-------+
| +----------> | Field |
| +-------+
|
| +-------+
+------------> | Field |
+-------+
It was driven by the following use cases:
- Get list of facets (only searchable fields)
- Get list of fields with concept inference
- Get list of all fields
- Splitted in private / public fields (to define mapping)
- Get all date fields
- Get field type
- To apply sanitization rules
- To define mapping
- Check if concept inference enabled
- Check if the field is searchable
- Check if the field is a facet
- Check if the field is private
- Dereference field from label (still to be done)
(The last two UCs are new)
Also removed old code from legacy search engines.
[#PHRAS-500]
2015-06-03 19:45:48 +02:00
Benoît Burnichon
2ee8fd3c34
Fixup ShareTests after refactoring.
2015-06-01 11:31:17 +02:00
Benoît Burnichon
2489cc6ffe
Rework FeedAggregate. Issue with embedded entry collection.
...
PHRAS-542
2015-05-27 12:56:46 +02:00
Benoît Burnichon
3577ef12f8
Merge pull request #1378 from jygaulier/TASK_SUBDEF_FILTERS
...
PHRAS-524
2015-05-18 18:20:48 +02:00
Jean-Yves Gaulier
72f6444ba7
fix test
2015-05-18 12:16:05 +02:00
Jean-Yves Gaulier
eeed4d3120
task subdef
...
- better format of xml settings
- fix filter on document type
- fix filter on multiple databoxes
- fix unit tests
2015-05-13 19:38:39 +02:00
Benoît Burnichon
beabf90fdf
Refactor Notifier
2015-05-12 21:05:29 +02:00
Benoît Burnichon
72fdfa7141
Fixup ApiTests about Content-Type
2015-05-11 18:11:51 +02:00
Benoît Burnichon
8c037232d5
Merge pull request #1374 from jygaulier/API_STORY
...
report des routes api/story de 3.8
2015-05-11 12:18:45 +02:00
Benoît Burnichon
80bb56b875
Merge pull request #1373 from bburnichon/feature/phras-519-revocable-permalinks
...
PHRAS-519 avoid public feeds not to check permalink status (is_enabled status field)
2015-05-07 17:35:06 +02:00
Jean-Yves Gaulier
3305329501
report des routes api/story de 3.8
...
#time 1.5d
2015-05-07 16:53:53 +02:00
Benoît Burnichon
5eb7af9542
Merge pull request #1360 from bburnichon/feature/controller-as-service
...
controller as service
2015-05-07 16:09:40 +02:00
Benoît Burnichon
79ddd6c54e
Update test to ensure permalink is created before accessing it.
2015-05-07 11:46:32 +02:00
Benoît Burnichon
8f8030bb11
Remove $app dependency on FeedItemRepository::isRecordInPublicFeed() method.
2015-05-07 11:03:27 +02:00
Benoît Burnichon
31116a14a9
Remove OpCache options as now bundled with PHP5.5+
2015-05-06 12:00:28 +02:00