Commit Graph

9336 Commits

Author SHA1 Message Date
Jean-Yves Gaulier
249334c7ed wip 2015-06-09 10:48:28 +02:00
Benoît Burnichon
fa2a06a7a3 Merge pull request #1391 from bburnichon/master
try improve tests stability
2015-06-05 15:14:06 +02:00
Benoît Burnichon
3da671649f When retrieving data from memcache, invalid data is sometimes retrieved.
Because of highly concurrent accesses to cache layer, calling isset/get can sometimes fail.

To avoid this, a callback function can be used in memcached driver but it is maintained by doctrine/cache.
To prevent error, check whether returned value is of proper type.
2015-06-05 14:37:50 +02:00
Benoît Burnichon
d0dee9ea2b Delay indexer instantiation, indexer subscriber can be called synchronously or asynchronously 2015-06-05 14:37:50 +02:00
Benoît Burnichon
c362122f3c Delete previous dbs to avoid side effects 2015-06-05 12:39:35 +02:00
Benoît Burnichon
1bb6e78868 Properly stop iptables. 2015-06-05 12:39:03 +02:00
Benoît Burnichon
7be5e332db Add LazyLocator 2015-06-04 12:22:47 +02:00
jygaulier
fe057a8a6b Merge pull request #1389 from jygaulier/RESTORE-INDEXER-TASK
RESTORE-INDEXER-TASK
2015-06-04 10:43:09 +02:00
Benoît Burnichon
f25bdf4171 Merge pull request #1382 from mdarse/private-fields
Refactor merged field structure
2015-06-04 10:08:36 +02:00
Benoît Burnichon
4fcb69ba5c apply change to RecordInterface already implemented in ElasticRecord and record_adapter 2015-06-03 21:11:36 +02:00
Benoît Burnichon
2f39dc5664 Fixup get databoxes fetch in ApplicationTest 2015-06-03 21:11:02 +02:00
Mathieu Darse
3966d23a0d Merge 40e2df6c3f into 06bd5d09bc 2015-06-03 17:47:07 +00:00
Mathieu Darse
40e2df6c3f Search in private fields using new structure features 2015-06-03 19:45:49 +02:00
Mathieu Darse
89957c1104 Limit facets to searchable fields 2015-06-03 19:45:49 +02:00
Mathieu Darse
b14c845811 Remove remaining calls to getFieldsStructure() 2015-06-03 19:45:48 +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
52709fb5af More semantic Structure factory 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
Jean-Yves Gaulier
74e16b4ec2 RESTORE-INDEXER-TASK
#time 1h
2015-06-03 19:21:00 +02:00
Benoît Burnichon
06bd5d09bc Merge pull request #1388 from bburnichon/feature/controller-as-service
Controller as service
PHRAS-529
2015-06-02 17:11:42 +02:00
Benoît Burnichon
6df9626fce Use SubDefinitionSubstituerAware in some Controllers 2015-06-02 13:59:33 +02:00
Benoît Burnichon
4eea27d9be Refactor UploadController 2015-06-02 13:59:16 +02:00
Benoît Burnichon
9ce56ae9ef Split Upload into provider/controller 2015-06-02 13:11:26 +02:00
Benoît Burnichon
16d9922530 Refactor TooltipController 2015-06-02 12:33:28 +02:00
Benoît Burnichon
e268920e47 Split Tooltip into provider/controller 2015-06-02 12:23:27 +02:00
Benoît Burnichon
b346e91912 Move ToolsController to Controller directory 2015-06-02 12:23:26 +02:00
Benoît Burnichon
6b7b56a649 Merge pull request #1387 from bburnichon/feature/update-account-400-error-phras-547
Fixes PHRAS-547 and PHRAS-551
2015-06-02 11:59:46 +02:00
Benoît Burnichon
89df907285 Display registration should use pending Registrations.
fixes PHRAS-551
2015-06-02 11:40:03 +02:00
Benoît Burnichon
9008529952 Prevent updateAccount to generate 400 bad request.
PHRAS-547
2015-06-01 18:03:20 +02:00
Benoît Burnichon
3504d29add Merge pull request #1386 from bburnichon/feature/controller-as-service
PHRAS-529
2015-06-01 16:30:59 +02:00
Benoît Burnichon
9eb9307908 Refactor ToolsController 2015-06-01 15:49:18 +02:00
Benoît Burnichon
40f3dc74ea Move methods from provider to controller 2015-06-01 14:56:38 +02:00
Benoît Burnichon
854467bcbf Split Tools into provider/controller 2015-06-01 14:53:38 +02:00
Benoît Burnichon
f850573cae Refactor TOUController 2015-06-01 14:37:07 +02:00
Benoît Burnichon
2a2fb00b61 Split TOU into provider/controller 2015-06-01 14:29:07 +02:00
Benoît Burnichon
c73f770892 Refactor StoryController 2015-06-01 11:57:42 +02:00
Benoît Burnichon
d7b21c65cb Move methods from Story provider to controller 2015-06-01 11:41:00 +02:00
Benoît Burnichon
2ee8fd3c34 Fixup ShareTests after refactoring. 2015-06-01 11:31:17 +02:00
Benoît Burnichon
d677de03ec Refactor Story Controller to use method names 2015-06-01 11:16:27 +02:00
Benoît Burnichon
4f1c654ede Refactor Prod ShareController 2015-06-01 10:59:05 +02:00
Benoît Burnichon
a02886fa62 Split Share into provider/controller classes 2015-06-01 10:55:06 +02:00
Benoît Burnichon
93a03e79cd Merge pull request #1385 from bburnichon/feature/private-fields-not-displayed-on-production-phras-544
private fields are not displayed on production
PHRAS-544
2015-05-29 18:11:54 +02:00
Benoît Burnichon
649f0fe510 Refactor can see business fields. 2015-05-29 17:53:45 +02:00
Benoît Burnichon
80e2783855 Restore ability to see business fields 2015-05-29 14:19:19 +02:00
Benoît Burnichon
cd20b31a22 PHPCS and slight improve in caption/record 2015-05-29 14:17:24 +02:00
Benoît Burnichon
e4a461ba99 Add all fields to search options when none selected. 2015-05-28 15:58:13 +02:00
Benoît Burnichon
5984a78240 Refactor Prod/RootController 2015-05-28 10:20:06 +02:00
Benoît Burnichon
6f721b5e05 Split Prod/Root Controller into provider/controller 2015-05-28 09:59:16 +02:00
Benoît Burnichon
6c85fb62a8 Rename methods in Prod/Root controller 2015-05-28 09:52:17 +02:00
Benoît Burnichon
7581aada18 Merge pull request #1384 from bburnichon/feature/controller-as-service
controller as service
2015-05-27 18:30:40 +02:00