Commit Graph

9318 Commits

Author SHA1 Message Date
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
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
Benoît Burnichon
90c0053483 Bump composer.lock. 2015-05-27 16:33:42 +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
a85f495b23 Fixup return on getEntry to Collection.
PHRAS-542.
2015-05-27 11:11:20 +02:00
Benoît Burnichon
84295780f7 Small perfs improve in appbox and SearchEngineOptions 2015-05-26 18:38:19 +02:00
Benoît Burnichon
692de2dd47 DefaultSecretProvider to cache requested Secrets to avoid too many queries 2015-05-26 18:37:08 +02:00
Benoît Burnichon
c083cd5d53 Allow API to be used with WebProfiler 2015-05-26 18:35:57 +02:00
Benoît Burnichon
2523320850 Refactor RecordController. Adding SearchEngineTrait 2015-05-25 17:38:09 +02:00
Benoît Burnichon
4536a14f30 Split Record provider into controller/provider 2015-05-25 16:28:06 +02:00
Benoît Burnichon
3ef3a8e697 Refactor QueryController 2015-05-25 16:12:31 +02:00
Benoît Burnichon
2eeef9aa05 Split Query provider into controller/provider 2015-05-25 15:49:08 +02:00
Benoît Burnichon
1a6fa2423f Refactor PushController 2015-05-25 15:42:28 +02:00
Benoît Burnichon
cab9a66082 Split Push provider into controller/provider 2015-05-25 14:19:47 +02:00
Benoît Burnichon
9ec06701dc Refactor PropertyController 2015-05-25 12:38:21 +02:00
Benoît Burnichon
0dd5fffa30 Split Property provider into controller/provider 2015-05-25 12:29:35 +02:00
Benoît Burnichon
32204ebe7c Refactor PrinterController 2015-05-25 12:22:04 +02:00
Benoît Burnichon
3864a31cc8 Split Printer provider into controller/provider 2015-05-25 12:17:20 +02:00
Benoît Burnichon
82da488ba2 Refactor OrderController 2015-05-25 12:01:58 +02:00
Benoît Burnichon
94133aabe4 Create UserQueryAware trait. 2015-05-25 10:49:05 +02:00