Commit Graph

1765 Commits

Author SHA1 Message Date
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
Benoît Burnichon
fbd2f7bb41 change 3.10 to 4.1 (maximum version limit) 2015-05-04 15:41:32 +02:00
Benoît Burnichon
d3a2de2536 Fixup tests after #1363 2015-05-04 14:58:12 +02:00
Benoît Burnichon
62b8e5a6e4 Refactoring of API V1 Controller 2015-04-27 20:35:36 +02:00
Mathieu Darse
8d767788fe Test raw string parsing 2015-04-15 19:07:00 +02:00
Mathieu Darse
eda8181d87 Test inequality queries with dates 2015-04-15 18:28:12 +02:00
Mathieu Darse
b3f9dd4ca2 Implement inequality in query visitor & fix IN expressions 2015-04-15 18:23:36 +02:00
Mathieu Darse
10395f410c Add tests for query compiler 2015-04-15 18:23:36 +02:00
Benoît Burnichon
21195820f2 Fixup form submission.
In our case, we want to allow empty requests... If using handleRequest, the form should at least contains the CSRF tokens.
2015-04-14 11:07:26 +02:00
Benoît Burnichon
e5c1cab623 Merge pull request #1347 from mdarse/facets-strict-match
Strict facet matching
2015-04-10 17:29:46 +02:00
Mathieu Darse
38465a591f Strict facet matching
Clicking on a facet value on the left pane now return the expected result count.

This commit implement a new "raw" matcher. It can be used like
`r"some raw value"`. It operate on the the `.raw` multi-field and skips all
analysis.
Escaping `"` is supported by prepending a backslash `\"`. You can also escape
the escaping character `\` by doubling it (`\\`).

Adds a new `ContextAbleInterface` to differenciate matcher supporting an
optional context from those who can't.

Fixes an issue with `QueryContext::narrowToFields()` ignoring passed fields.
2015-04-09 20:32:13 +02:00
Jean-Yves Gaulier
56fa78e0ef wip : removed Sphinx and Phrasea search engines 2015-04-08 18:37:11 +02:00
Benoît Burnichon
57736782a9 Add BaseController with helper methods 2015-04-02 13:34:15 +02:00
Benoît Burnichon
08500947de Add max packet to mariadb conf in tests bootstrap 2015-04-01 10:30:04 +02:00
Benoît Burnichon
9c7af31080 Admin Connected Users 2015-03-31 14:29:11 +02:00
Benoît Burnichon
ad51a350b7 Change content type negotiation in API.
Fix typo in negotiator word.
2015-03-27 13:46:54 +01:00
Benoît Burnichon
bf27dcff20 Remove useless Dependency 2015-03-27 12:58:07 +01:00
Benoît Burnichon
1342756b84 Rename Controller to ControllerProvider 2015-03-27 12:55:43 +01:00