Commit Graph

286 Commits

Author SHA1 Message Date
jygaulier
1d5769e002 PHRAS-3393_apiv3-patch-use-recordadapter_MASTER
change : api v3 record metadata post/patch. Use the code that was moved to record adapter
2021-03-29 17:16:10 +02:00
aina esokia
427216ec43 PHRAS-3277 validation reminder in percent 2020-12-02 17:31:05 +03:00
aina esokia
e23b9dd294 PHRAS-3277 create event recordsWitemeta 2020-11-20 17:10:58 +03:00
jygaulier
5ae105d9c2 - fix : error during populate
- add : clear structure cache when structure (field or sb) is changed
2020-11-05 11:27:39 +01:00
jygaulier
5cf7818187 - add timers again 2020-10-27 18:27:12 +01:00
jygaulier
919211d219 - add timers 2020-10-27 18:07:12 +01:00
jygaulier
7c01c34dfc - add timing debug, disable permalinks injection to es 2020-10-27 17:18:37 +01:00
jygaulier
ff44cc379e WIP / DEBUG
- add every subdef in es document, including permalink
2020-10-21 20:07:11 +02:00
jygaulier
d0283913de WIP / DEBUG
- add stopwatches to find slow parts.
- to test : add api-v3/searchraw ; same as "search", but returns raw es docs (shortest way). No objects, no fractal.
2020-10-21 20:07:11 +02:00
jygaulier
4da47a7908 - fix : include=facets now works also in extended mode 2020-09-29 20:00:14 +02:00
jygaulier
d5fc38b459 - fix : restore "suggestions". Declarative : use "...&include[]=suggestions..." 2020-09-25 16:14:47 +02:00
jygaulier
e79f2cb4f2 add:
- multiple pagination methods
- "include" parameter in /search route :
-- facets : facets are no more returned by default
-- results.stories.children : to populate the children of stories
- "story_children_limit" parameter in /search route
  will limit the number of children populated by story
- "count" (for results) and "children_count" (for stories in results) is the number of items in the current page
- "total" (for results) and "children_total" (for stories in results) is the total number of items

todo: swagger doc (but impossible to describe related/excluded parameters (like pagination methods in /search)
2020-09-22 21:30:19 +02:00
jygaulier
236a4a20ac - add : route GET:stories/.../.../children (wip)
- change : now GET record can return a story (return r.is_story = true); GET story will only return a story.
2020-09-17 18:57:13 +02:00
jygaulier
99be4ea1d3 WIP DO NOT MERGE
- add : route GET:records
- add : route POST:records (can create a record without document)
- add : json can be passed in body OR in a multiparm parm named "body" (to allow upload of file along with json)
- change : story content (children) is now a list of urls (=get action on each child)
2020-09-17 18:57:13 +02:00
aynsix
baf22aae86 change key name 2020-08-06 16:14:17 +03:00
aynsix
2e1ce43321 change behavior api_token_header 2020-08-05 19:57:53 +03:00
jygaulier
18f7a658ed change : removed "/setmetadatas" from route, the http verb "PATCH" on "record" entity is ok
fix : unknown field now throws exception (no more erase all...)
add : set "base_id":x to change collection
cleanup : removed unused parm to recordadapter::move_to_collection()
2020-06-22 14:40:27 +02:00
jygaulier
0b099878f5 OK to test 2020-06-04 20:54:21 +02:00
jygaulier
cdadb3acc4 WIP
refacto common code
2020-06-04 14:08:08 +02:00
jygaulier
9272f3642f WIP
refacto : explode v3 controller, fix warnings
2020-06-03 20:32:10 +02:00
jygaulier
aeb7b4e60b WIP
fix ; add errors catch
todo :
- status-bits
- apply changes to record
- json output
2020-06-03 12:48:13 +02:00
jygaulier
b67c37c340 WIP 2020-06-02 20:26:30 +02:00
aynsix
b2bb0c612e fix api upload/enqueue 2020-05-19 15:42:02 +03:00
aynsix
bb2123df5a include plugin worker in phraseanet core 2020-05-12 18:06:45 +03:00
Arthur de Moulins
565e7c450b add doctrine metadata filesystem cache 2020-02-21 10:34:51 +01:00
aynsix
afc5a85edf change param name 2019-12-13 15:28:02 +04:00
aynsix
f475a5c925 fix api/v3 api_version 2019-12-06 14:24:03 +04:00
aynsix
276d5a8ce6 remove unused comment 2019-12-05 14:42:15 +04:00
aynsix
3d6d2e4e64 fix V1Controller 2019-12-05 14:30:17 +04:00
aynsix
e4b29d70c5 route search and storie on api/v3 2019-12-05 12:30:23 +04:00
aynsix
530397db00 do no use header application/vnd.phraseanet.story-paginate 2019-12-04 10:17:59 +04:00
aynsix
c9356ec206 max_items depends on header application/vnd.phraseanet.story-paginate 2019-11-28 18:15:55 +04:00
Nicolas Maillat
77d3405149 Merge branch 'master' into PHRAS-2196-api-stories-pagination 2019-11-21 17:54:23 +01:00
Harrys Ravalomanana
5f2617e5f7 PHRAS-2816 #comment add attribute gui_visible to show fields on roll over and detailled view #time 2h 2019-11-12 18:13:05 +04:00
Jean-Yves Gaulier
b4e848a5e9 PHRAS-2808-2806_disable-cterms_mask-writable-fields_4.1
new : checkbox in admin/field to allow gui (prod) editing, default=checked.
rename "publish_cterms" to "generate_cterms"
todo : implement "gui_editable" in edit ux (hide field when =false)
todo : 2 new strings (ckbox labels) to trans
2019-10-31 19:31:12 +01:00
Jean-Yves Gaulier
ce13112105 PHRAS-2808_disable-cterms_4.1
new : checkbox in admin/field to disable cterms generation.
fix : when cterms is cleared (during reindex), rejected terms are kept
WIP
2019-10-31 18:12:26 +01:00
Nicolas Maillat
b260bc0688 Merge branch 'master' into PHRAS-2741-api-leaves-temporary-file-41 2019-09-06 15:00:20 +02:00
Jean-Yves Gaulier
53272de3f5 PHRAS-2726_setstatus-api_4.1 : port of PHRAS-2716
setstatus api did change unspecified bits due to string offset error
2019-09-03 18:07:36 +02:00
aynsix
645ae0e777 fix api: remove temporary file when upload 2019-08-28 16:41:34 +04:00
aina-esokia
cd3995382c take account all record type for story cover 2019-07-11 11:31:41 +04:00
aina-esokia
fe48e8a305 api stories add cover source 2019-07-10 14:26:34 +04:00
aina-esokia
8ab2888850 port to 4.1 upload by url 2019-03-18 16:16:14 +04:00
aina-esokia
17800bc33c do the pagination for all accept header 2018-10-26 18:12:07 +04:00
aina-esokia
b407a17bdf change query 2018-10-26 18:01:31 +04:00
aina-esokia
9c59477017 change param name 2018-10-11 14:26:36 +04:00
aina-esokia
a76c971ab1 update V1Controller 2018-10-11 14:26:36 +04:00
aina-esokia
e9beafef85 add max_item and page in api route search and stories 2018-10-11 14:26:36 +04:00
jygaulier
e7863122d0 PHRAS-2172_parade-saml-err500_MASTER (#2695)
fix : the user application was updated (=created) after the check
add : "find()" on user repo (type hinted) to allow code sniff, completion etc.
2018-07-26 16:34:20 +02:00
aina-esokia
8c5457d496 fix api version 2018-07-09 14:51:52 +04:00
aina-esokia
82ce18fa00 api substitute update subview when 'document' 2018-07-03 10:05:27 +04:00