Commit Graph

34 Commits

Author SHA1 Message Date
Aina Sitraka
a29aa3355b PHRAS-3770: generate translation (#4414)
* generate translation

* fix
2023-11-17 16:04:09 +01:00
jygaulier
179431d1b5 PHRAS-3931_phraseanet_local_id_in_api (#4400)
* add "resource_id" to record / story ; formula defined into InstanceIdAware.php

* fix tests

* fix tests

* switch to main/instance_id
2023-10-30 17:15:04 +01:00
jygaulier
e7027c7220 PHRAS-3800_xss (#4219)
* add encode option to record::get_title ; render preview.record_title in twig

* html-escape facet values
2023-03-15 11:05:34 +01:00
Aina Sitraka
8efdc36efa PHRAS-3712 admin - sudefinition - property to define building rules on subdefinition (#4104)
* add building rules

* setting in first position

attribute `tobuild` on subdefinition

limit subdef name to 64 like db

taken account tobuild in tools rebuild GUI

taken account tobuild in command `bin/console records:build-subdefs`

* add check

* add tobuild in api response

* fix command `bin/console records:build-subdefs`
2022-07-27 18:25:44 +02:00
aynsix
e882021019 PHRAS-3642 api return subdefs 2022-02-24 16:07:54 +03:00
aynsix
518d2d94ff use the guzzle 6 version 2022-02-07 17:29:30 +03:00
aynsix
cb206c79bf PHRAS-3555 add description in record.edit webhook 2021-12-07 15:24:58 +03:00
jygaulier
e247c8b576 Merge branch 'master' into PHRAS-3582_missing-apiv3-data 2021-12-06 10:16:27 +01:00
jygaulier
9fd6c50377 PHRAS-3582
WIP
fix missing data on apiv3 stories (not implemented includes)
todo : check apiv1 "metadataS" (aka dublin core) output.
2021-12-01 20:35:27 +01:00
jygaulier
623d087a44 Merge branch 'master' into PHRAS-3584_story-cover-link 2021-11-26 12:08:35 +01:00
jygaulier
fba12a64aa PHRAS-3564
fix: wmark is applied
better internal callback
2021-11-25 19:23:30 +01:00
jygaulier
a6f1d40517 PHRAS-3564
WIP fix
2021-11-25 17:24:15 +01:00
jygaulier
12cb9b582b PHRAS-3584
add databox.record.cover_record_id
add get/set coverRecordId() to record adapter
include cover_record_id to api results (V1 & V3)
2021-11-25 11:52:11 +01:00
Arthur de Moulins
8bbdfe07ee PHRAS-3564 fail fast, turn off ssl verification 2021-11-17 15:16:24 +01:00
jygaulier
ac3aa6e1ba PHRAS-3564
fix video work location
subdefs posted
result set with sent/failed & durations
add test callback route
2021-11-17 15:16:24 +01:00
jygaulier
10127a21b1 PHRAS-3564 WIP
wip
2021-11-17 15:16:24 +01:00
jygaulier
0553f6152c PHRAS-3564 WIP
create subdefs (on tmp) from file passed as upload or reference
route /api/v3/subdefs_service/{{base_id}}
subdef setttings comes from base_id
todo : pass settings in json ; remove base_id from route
todo : return files by upload
2021-11-17 15:16:24 +01:00
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
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
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