Commit Graph

2594 Commits

Author SHA1 Message Date
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
c5239259d1 Refactor DataboxRepository 2015-07-03 18:20:09 +02:00
Benoît Burnichon
a22ef5fa27 Rename AccessRestriction::filterAvailableDataboxes 2015-07-03 18:20:09 +02:00
Benoît Burnichon
00f5f3369e Add DataboxRepository 2015-07-03 18:20:09 +02:00
Mathieu Darse
e4aafaac10 Restrict search on visible private fields
Search on private fields is only supported on bare text search right now (TextNode).
This also fix and issue on databox::get_collection_unique_ids() returning the
value from the first call over and over.
2015-07-03 14:33:48 +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
f920e8354a Replace phraseanet.appbox by getApplicationBox() method calls. 2015-07-02 12:33:19 +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
6e651f3b07 Replace app['phraseanet.appbox']->get_databox using trait 2015-07-02 12:27:26 +02:00
Benoît Burnichon
360e69ff8d Remove Commented method 2015-07-02 12:27:25 +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
acb8ed86c8 Retrieve Collections indexed by field name 2015-06-29 19:15:51 +02:00
Benoît Burnichon
a0cc568a0c CS fixes 2015-06-29 19:15:43 +02:00
Mathieu Darse
9172da904b Braindump of collection-fields map 2015-06-29 19:13:56 +02:00
Benoît Burnichon
dd0b661dac Refactor AccountController
PHRAS-529 #time 1h
2015-06-18 14:49:52 +02:00
Thibaud Fabre
22b912fa87 Cast coll_id to int 2015-06-18 11:40:59 +02:00
Thibaud Fabre
af1dc9126b Return base_id in API & remove unneeded conversions 2015-06-18 11:24:11 +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
ea7fb2b182 Refactor ActivityController 2015-06-15 16:51:23 +02:00
Benoît Burnichon
43d93eef36 More checks on cache returned values.
Switched to Redis in tests.
2015-06-12 12:09:00 +02:00
Benoît Burnichon
4241fd0e6c WIP with cache 2015-06-10 19:09:38 +02:00
Thibaud Fabre
c425c3391a CS fixes 2015-06-10 10:50:52 +02:00
Thibaud Fabre
265b40c6e0 List collection rights in /me 2015-06-09 16:51:05 +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
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
84295780f7 Small perfs improve in appbox and SearchEngineOptions 2015-05-26 18:38:19 +02:00
Benoît Burnichon
c2ff3b6575 Add Secrets to ApplicationBox. 2015-05-19 18:26:57 +02:00
Benoît Burnichon
61206fd517 Replace calls to mediavorus to getMediaFromUri 2015-05-12 18:12:02 +02:00
Benoît Burnichon
414111f7f2 Refactor EditController 2015-05-12 10:40:31 +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
20d6564b44 Remove useless Permalink Interface 2015-05-07 13:57:13 +02:00
Benoît Burnichon
a4f530a00c Change some phpdocs 2015-05-07 13:30:51 +02:00
Benoît Burnichon
f4b24c41d9 Change permalink delivery to always check activated state
Changed permalink constructor visibility to public to allow search of a permalink
2015-05-07 11:12:39 +02:00
Benoît Burnichon
4db591a12a PHPCS fixing and avoid returns in some constructors 2015-05-07 11:04:45 +02:00
Benoît Burnichon
8f8030bb11 Remove $app dependency on FeedItemRepository::isRecordInPublicFeed() method. 2015-05-07 11:03:27 +02:00
Benoît Burnichon
0349db4adb Remove useless cache.paths services, use cache.path instead 2015-05-06 11:59:49 +02:00
Benoît Burnichon
50ea2e26cb Remove ArrayCollection as there is no benefits to use it.
Change twig from ArrayCollection to plain array.
2015-05-05 11:09:28 +02:00
Nicolas Le Goff
2d5a36f5a2 Add highlights query 2015-05-05 11:09:28 +02:00
Benoît Burnichon
3464a82522 Reduce field size down to 255 utf8 characters
MySQL count 3 bytes per UTF8 character which makes the index go too large

Remove indexation of appli field which is too wide for MySQL
Remove use of appli index as was deleted
2015-04-30 16:27:26 +02:00
Benoît Burnichon
62b8e5a6e4 Refactoring of API V1 Controller 2015-04-27 20:35:36 +02:00
Olivier Mayer
b4bebbe77a fix preview title
fix #71
2015-04-21 21:39:52 +09:00
Benoît Burnichon
6d4fcbbe9a Refactor SearchEngineController 2015-04-13 17:44:44 +02:00