Commit Graph

346 Commits

Author SHA1 Message Date
Jean-Yves Gaulier
c6186abe56 PHRAS-946_delete-record-api
- add : api route to delete record : verb DELETE ; /api/v1/records/{{databox_id}}/{{record_id}}
2016-09-29 15:54:04 +02:00
Jean-Yves Gaulier
9e891d4ae9 PHRAS-1164_Backport-PHRAS-1158-to-4.0
#time 20m
2016-06-16 16:02:26 +02:00
Florian BLOUET
b7a3571d04 PHRAS-851 - add databox name, collection name and logo to record title in preview 2016-05-23 11:36:25 +02:00
Benoît Burnichon
db3bb2d4c4 Slight refactor of set_export to avoid N+1 2016-05-20 10:18:30 +02:00
Benoît Burnichon
8e693964df Refactor getChildren() and get_grouping_parents() 2016-05-11 17:50:57 +02:00
Benoît Burnichon
ea9458da77 Avoid calling cache when data is already present 2016-05-11 17:50:57 +02:00
Benoît Burnichon
1e18b3e69f This is a combination of 33 commits.
- Squashed Pull request #1730
- Squashed Pull request #1741
- Squashed Pull request #1742
- Squash merge branch 4.0
- Squashed Pull request #1744
- Squashed Pull request #1746
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed Pull request #1758
- Avoid using imagine/imagine alias as it is causing install issues
- Squashed merge branch 4.0
- Squashed Pull request #1763
- Squashed merge branch 4.0
- Squash of 6 commits
- Squashed merge branch 4.0
- This is a combination of 2 commits.
- Squashed Pull request #1775
- Squashed Pull request #1777
- Squashed Pull request #1779
- Squashed Pull request #1780
- Squashed Pull request #1782
- Adds a Pull request template
- Squased Pull request #1783
- Squash Pull request #1786
- Squashed Pull request #1796
- Squashed merge branch 4.0
- Squash Pull request #1791
- Squashed merge branch 4.0
- Squashed Pull request #1808
- Squashed Pull request #1811
- Squashed Pull request #1809
2016-04-20 16:22:14 +02:00
Jean-Yves Gaulier
e6b1ad4f2f PHRAS-1055 #time 1h
- no bug concerning --max_record
- add try/catch so the job don't stop on errors

PHRAS-1055 #time 5h
- add option --dry
- add verbose print (-v)
- add "ALL" for type and subdef arguments
- fix "substitute" options
- fix show sql with arguments

PHRAS-1055 #time 5h
- better error handling
- argument "databox" can be specified as id, dbname or viewname
- add option "--partition=n/N"
- argument "type" changed to option "--record_type=a,b,c" (can also be set as "--record_type=a,b --record_type=c")
- argument "subdefs" changed to option "--name=x,y,z" (can also be set as "--name=x,y --name=z")
- option "--with-substitution" changed to "--with_substituted"
- option "--substitution-only" changed to "--substituted-only"

PHRAS-1055 #time 2h
- change lone argument (databox) to option "--databox" (mandatory)
- add option "--missing_only" to create missing subdefs after structure change.
- add option "--garbage_collect" to remove orphan subdefs left by structure change.

PHRAS-1055 #time 1m
- cleanup

PHRAS-1055 #time 2h
- cleanup
- add option "--reset_subdef_flag"
- add option "--set_writemeta_flag"

PHRAS-1055 #time 1m
- fix vocabulary (flag)
2016-04-06 11:36:00 +02:00
Benoît Burnichon
5ee7f3689a Use recently added getDataboxConnection method 2016-03-07 12:29:05 +01:00
Benoît Burnichon
e01088d38d Add RecordReference into record_adapter 2016-03-07 12:28:40 +01:00
Benoît Burnichon
6e1be6099f Avoid cache requests on subdef already in cache. 2016-02-26 16:18:11 +01:00
Benoît Burnichon
8a907e9bb0 Add touch capability to record_adapter. 2016-02-23 10:40:01 +01:00
Benoît Burnichon
fae284d482 media_subdef could sometimes be constructed without a proper URL
Introduced by #1626
2016-02-05 15:36:19 +01:00
Benoît Burnichon
afde09645a WIP 2016-02-05 15:36:19 +01:00
Benoît Burnichon
3544f70130 PHPCS record_adapter 2016-01-27 11:00:54 +01:00
Benoît Burnichon
14cd8a1903 Use existing SubdefSubstituer service i/o record_adapter 2016-01-26 19:17:41 +01:00
Benoît Burnichon
614394edc7 Method renaming 2016-01-26 14:25:08 +01:00
Benoît Burnichon
f501cba16b Extract whether subdef metadata updates are required 2016-01-22 17:39:33 +01:00
Benoît Burnichon
85c5311281 Move removal in symlink in symlinker 2016-01-14 11:07:17 +01:00
Thibaud Fabre
c92d5da9fe Merge branch 'clean-boxes' into merge-clean-boxes 2016-01-06 19:53:43 +01:00
Benoît Burnichon
51023c5533 bump copyright year 2016-01-05 13:38:14 +01:00
Benoît Burnichon
af25e6bfd8 Remove status table 2015-12-23 14:13:07 +01:00
Benoît Burnichon
3b6cd117bb Merge pull request #1607 from bburnichon/feature/PHRAS-867
API Basket elements add/removal
2015-12-22 19:08:42 +01:00
Benoît Burnichon
c532e01c40 fixup Change record_adapter 2015-12-22 17:44:33 +01:00
Benoît Burnichon
00d0ea66bb Change getIsRead to isRead 2015-12-22 14:25:13 +01:00
Jean-Yves Gaulier
80f3285737 #PHRAS-874 time 2d
type hinting / cs
events renamed / deleted
n+1 removed for status-bits & technical meta
events added (subdef creation / created)
fix : es indexes after all subdefs are created
2015-12-17 20:07:48 +01:00
Jean-Yves Gaulier
18909462fa #PHRAS-840 time 12h
add : es "technical" fields (_index, _type, _version, ...) to es-record
fix: add etag to thumbnail on es answers, based on document _version
clean : obsolete methods calls changed, cs, ...
2015-12-10 17:58:16 +01:00
Benoît Burnichon
2e1ad08383 Fixup build-missing-subdef command.
PHRAS-855
2015-12-03 15:00:44 +01:00
Benoît Burnichon
8aca5f6126 Use Uuid with its new namespace 2015-10-27 20:14:01 +01:00
Jean-Yves Gaulier
c751605554 #PHRAS-602 #time 6h
new : api to delete records from story
2015-07-16 15:52:05 +02:00
Benoît Burnichon
e8d4d5f38d Record_adapter now uses a specific repository from databox 2015-07-15 11:26:13 +02:00
Benoît Burnichon
fd530d8795 Deprecate get_databox in favor of getDatabox 2015-07-13 18:47:10 +02:00
Benoît Burnichon
0b36d706a0 Deprecate {set,get}_type in favor of {set,get}Type 2015-07-13 18:43:28 +02:00
Benoît Burnichon
d5d9699397 Deprecated {set,get}_mime in favor of {set,get}MimeType 2015-07-13 18:35:20 +02:00
Benoît Burnichon
a4637c2e72 Deprecate get_record_id in favor of getRecordId 2015-07-13 18:24:06 +02:00
Benoît Burnichon
ff7801132d Deprecate get_collection_id instead of getCollectionId 2015-07-13 18:22:21 +02:00
Benoît Burnichon
8d4cf71d6d Deprecate get_base_id in favor of getBaseId 2015-07-13 18:19:42 +02:00
Benoît Burnichon
c97eedd40f Deprecate is_grouping in favor of isStory 2015-07-13 18:14:51 +02:00
Benoît Burnichon
2107cd28df Deprecated get_uuid in favor of getUuid 2015-07-13 18:08:04 +02:00
Benoît Burnichon
38ae7bc2ac Rename get_number/set_number to getNumber/setNumber 2015-07-13 17:50:20 +02:00
Benoît Burnichon
e14b2155aa Deprecated get_modification_date 2015-07-13 17:08:22 +02:00
Benoît Burnichon
9fea438079 Deprecated old underscore get_creation_date. Use getCreated instead. 2015-07-13 17:08:22 +02:00
Benoît Burnichon
f5949cd9f4 Fix story set metadata collection. 2015-07-13 11:18:12 +02:00
Benoît Burnichon
afbacaa640 set_original_name wasn't working as expected. Added test. 2015-07-10 19:06:10 +02:00
Benoît Burnichon
c0ceb65ba2 Prepared statements does not handle string to int conversion.
Convert it from PHP.
2015-07-10 17:19:00 +02:00
Benoît Burnichon
277808c441 Reduce code complexity using Dbal methods. 2015-07-10 16:34:04 +02:00
Benoît Burnichon
5d8e89363e Some PHPCS 2015-07-10 16:32:39 +02:00
Benoît Burnichon
de8657aabf Restore previous behaviour of get_duration. PHPCS 2015-07-10 11:56:18 +02:00
Benoît Burnichon
4c1fcff4e6 Better checking TechnicalDataSet return type. 2015-07-10 11:56:17 +02:00
Benoît Burnichon
02cd830491 Fixup typo that leads to Fatal Error. 2015-07-10 11:56:17 +02:00