Commit Graph

730 Commits

Author SHA1 Message Date
leogermani f1dc8cc77e add secondary orderby ID to items query #337 2019-11-29 18:34:38 -03:00
leogermani fbd6e105ce always get fresh related collection #339 2019-11-29 17:27:47 -03:00
Vinícius Nunes c3b4a1517a add sort metadata on test duplicate items 2019-11-18 11:31:54 -03:00
Vinícius Nunes 014c9290cb add sort metadata on test duplicate items 2019-11-18 10:56:14 -03:00
leogermani 11f548999b fix tests for wp 5.3 2019-11-14 17:42:09 -03:00
leogermani 9a2078dd19 fix roles_inherited return #274 2019-11-11 14:57:30 -03:00
Mateus Machado Luna 8fac7ae028 Solving small merge conflicts from develop. 2019-11-07 14:40:34 -03:00
Vinícius Nunes 5e1a4732e0 add test for remove term taxonomy when value is empty 2019-11-06 11:33:40 -03:00
leogermani 7a8dc9c474 tnc_col_edit_users, get_capablities endpoint #274 2019-11-05 17:07:49 -03:00
leogermani 7747778a80 add test to get roles endpoint #274 2019-11-05 12:21:48 -03:00
leogermani 04ecefa297 admin always can tnc_rep_edit_users #274 2019-11-05 12:21:48 -03:00
leogermani 7f4298b3a5 new default roles #274 2019-11-04 18:55:40 -03:00
leogermani 59054f32f6 add endpoint to get a collection caps/roles #274 2019-11-04 15:38:04 -03:00
leogermani 166e92ac68 fix test #274 2019-11-04 12:10:47 -03:00
leogermani ca79ea94a8 only tainacan caps can be edited in api #274 2019-11-01 14:49:14 -03:00
leogermani b22db480f1 automatically add depencies caps #274 2019-11-01 14:35:56 -03:00
leogermani d536e1e992 terms meta capabilities #274 2019-10-31 17:45:20 -03:00
leogermani 2ec0bd1642 Items capabilities #274 2019-10-30 10:59:38 -03:00
leogermani f1a6385698 merge develop 2019-10-29 16:03:11 -03:00
leogermani 79813f79c9 test collections capabilites #274 2019-10-28 20:17:18 -03:00
leogermani 277f061512 separate delete from edit capabilities #274 2019-10-28 19:57:48 -03:00
leogermani c325725990 testing capabilities #274 2019-10-25 17:28:50 -03:00
leogermani fc2898f701 set taxmeta as private when tax turns private #274 2019-10-25 17:28:05 -03:00
leogermani 56b9e76aa1 Make WP update terms count for all items #318 2019-10-24 16:06:46 -03:00
vnmedeiros 678f69f26a remove `enabled_post_types` on declared taxonomy. 2019-10-24 16:06:39 -03:00
vnmedeiros f494a0dc11 add test for object post type of the taxonomies 2019-10-24 16:06:31 -03:00
leogermani f94426580b Remove Custom Interval filter and migrate to new ones #306 2019-10-23 17:29:16 -03:00
Leo Germani 6e7bd268ee refactor filters and meta fetch_by_collection considering perms #274 2019-10-21 19:11:41 -03:00
Leo Germani 6a5c60ed44 removing outdated tests #274 2019-10-21 19:10:10 -03:00
Leo Germani 31ef06a8dd remove collections moderators feature #274 2019-10-21 14:24:34 -03:00
Leo Germani 807fe2759d add tnc_col_all_* capabilities support #274 2019-10-21 11:44:26 -03:00
Leo Germani 7e91b4bd69 reorganizing capabilties #274 2019-10-18 20:44:53 -03:00
Leo Germani eea135a5d2 Structuring capabilities #274 2019-10-17 16:36:23 -03:00
vnmedeiros 86a7ff13e1 fix value of `filter_type` on test api filter 2019-10-16 17:09:29 -03:00
vnmedeiros 19a06adb6a fix test `test_get_filter_types` to get class name of filters 2019-10-16 16:23:42 -03:00
vnmedeiros f24ebfff66 fix test for api filters types 2019-10-16 14:39:20 -03:00
Leo Germani 9440f70551 test and fix metadata and filter type options in API response 2019-10-16 11:05:29 -03:00
Leo Germani 626e1cce60 removed unsed tests. these were migrated to test facets 2019-10-16 07:56:18 -03:00
Leo Germani efa02cda9f update filters count in tests 2019-10-15 17:17:42 -03:00
Leo Germani 89b1737215 Basic roles API endpoints working #274 2019-10-15 17:15:17 -03:00
Leo Germani cc392cf55a starting roles API endpoint #247 2019-10-11 23:14:18 -03:00
vnmedeiros 678a445a4d api-importes test improvements and replace a `$_SESSION` #313 2019-10-11 19:13:51 -03:00
vnmedeiros ff8528893b api-importes test improvements #313 2019-10-11 17:33:43 -03:00
vnmedeiros cfde8abf06 Merge branch 'develop' of https://github.com/tainacan/tainacan into develop 2019-10-11 17:17:48 -03:00
vnmedeiros d0e09f7b7e save_importer_instance #313 2019-10-11 17:17:24 -03:00
Leo Germani e1ede4074c Fix broken test 2019-10-11 17:03:31 -03:00
Leo Germani cb240b66b7 Update tests #311 2019-10-11 16:53:35 -03:00
vnmedeiros 8931c32237 add api terms test to query_params `include` 2019-10-11 13:36:04 -03:00
Leo Germani 15b899af8c Do not allow public filter for private meta #315 2019-10-10 20:40:21 -03:00
Leo Germani 34b817e01d fix tests for filter types count #306 2019-10-10 16:20:03 -03:00
Mateus Machado Luna 7e787068e1 Fix conflits from develop 2019-10-03 15:30:59 -03:00
Leo Germani fc0696751d Relationship only gets one metadata as search option #311 2019-10-02 18:15:28 -03:00
Leo Germani 7f79e64887 starting refactor of repository filter meta #261 2019-09-30 18:00:44 -03:00
Leo Germani 5dc058a787 Clear tests #261 2019-09-13 19:25:42 -03:00
Leo Germani 3f26f79b44 add helper to get related collection for relationship metadata #253 2019-07-30 18:37:27 -03:00
Leo Germani a4fe281ed6 add helper to get related taxonomy for tax metadata #253 2019-07-30 18:25:46 -03:00
Leo Germani 9b95b346ff Create an index of the metadata type options to enable searches #251 2019-07-30 18:04:36 -03:00
Leo Germani 2fd4bb0ad6 add support to NOT LIKE operator in tax_query #266 2019-07-30 15:35:32 -03:00
Leo Germani a80aeff4c1 Bulk edit set_value support array as input 2019-07-30 15:18:03 -03:00
leogermani 1c1f6d3e35 Add support for LIKE operator to Tax_Query in Tainacan API #266 2019-07-29 15:06:05 -03:00
Leo Germani efe4244500 fix broken test. Collections cant be draft 2019-07-23 17:15:55 -03:00
Leo Germani 75cabcdceb private files support for internal and rest API (and tests) #241 2019-07-23 15:49:46 -03:00
Leo Germani 53e783c511 Merge branch 'develop' into feature/241 2019-07-23 10:07:42 -03:00
leogermani 34f570c429 Add copies and status arguments to duplicate endpoint #250 2019-07-22 15:52:01 -03:00
leogermani 46df1f9588 fix set_value() passing an Term Entity #250 2019-07-18 17:57:16 -03:00
leogermani 61e597c6c8 add item duplicate API endpoint #250 2019-07-18 12:22:53 -03:00
leogermani f30365c9b9 fix permission check for items considering collection #241 2019-07-16 18:06:02 -03:00
leogermani 1d6a08c24d trash filter when related metadata is deleted #272 2019-07-01 11:33:53 -03:00
Leo Germani d2b469397f Refactor trash and delete methods in repository #272 2019-06-27 22:53:14 -03:00
leogermani a4ad04c072 delete_filter_when_metadata_deleted in progress 2019-06-26 14:36:47 -03:00
leogermani 3df60abead fix tests 2019-06-26 12:35:00 -03:00
vnmedeiros 7f0f5d5920 fix test case 2019-06-18 17:52:42 -03:00
vnmedeiros d12470bd86 create href with `http://` if protocol is not explicit in link 2019-06-18 16:35:28 -03:00
vnmedeiros 0eaa02ff80
remove the wrong test for comment_status 2019-06-07 14:05:23 -03:00
vnmedeiros 9e4d34a16b Add special field to set comment_status in importer #243 2019-06-07 11:44:25 -03:00
vnmedeiros 1a76604d1c Merge branch 'develop' of https://github.com/tainacan/tainacan into develop 2019-06-06 15:46:34 -03:00
vnmedeiros 8885310232 change regex to support links with only protocol #198 2019-06-06 15:46:20 -03:00
Mateus Machado Luna 999cb8bafb Adjustments to numeric and date filters. 2019-06-04 15:22:49 -03:00
vnmedeiros 339b9f16f3 fix test cases 2019-06-04 15:21:19 -03:00
Leo Germani 58dc05317f refactor filter metadatum_id getters and setters 2019-06-03 11:41:44 -03:00
leogermani 16e8d13e41 New filter type #242 2019-05-21 18:04:34 -03:00
leogermani af2e0b2f9f refactor taxonomy metadata_type_options allow_new_terms to yes/no 2019-05-20 12:49:12 -03:00
leogermani 27c4a66dfc Fix bug in facets search by parent and better document tests 2019-05-14 15:47:57 -03:00
vnmedeiros d21bbb3468 add test to make tag clickable links on text 2019-05-11 10:55:58 -03:00
vnmedeiros 1534017483 Merge branch 'fix_hierarchy_facets' into develop 2019-05-02 15:30:19 -03:00
leogermani 46202e3a8f fix insert item metadata for terms relying on buggy term_exists #231 2019-05-02 15:09:49 -03:00
vnmedeiros fc2e4d773a adds tests for facets with hierarchical taxonomies 2019-05-02 12:20:42 -03:00
vnmedeiros 8b0af53de6 adds tests for facets with hierarchical taxonomies 2019-05-02 11:58:43 -03:00
vnmedeiros a04ad2ecb3 add test facets 2019-04-26 18:05:05 -03:00
vnmedeiros d7ced9480e show all terms in the hierarchical search. 2019-04-26 09:55:16 -03:00
vnmedeiros 0dbd8f09fa add test of facets using a "n-aria" tree 2019-04-24 18:59:44 -03:00
leogermani befb9044bb Solved SQL Query and tree algorithm! #230 2019-04-18 18:01:54 -03:00
vnmedeiros 65c6cd9ad7 Merge branch 'feature/facets_ES' into develop 2019-04-16 16:40:03 -03:00
leogermani 463315b3ba small adjustment in tests for has_value #222 2019-04-16 15:15:44 -03:00
vnmedeiros 2efe886739 fix data struct for test api visibility 2019-04-16 14:11:25 -03:00
vnmedeiros 55e604bc40 Merge branch 'develop' into feature/facets_ES 2019-04-16 11:34:23 -03:00
vnmedeiros 3c59aefba5 add test to includes 2019-04-16 10:40:05 -03:00
vnmedeiros 820b17b2b8 add test to search with relationship and paginations 2019-04-15 16:27:56 -03:00
vnmedeiros b481b75846 add test to facets 2019-04-15 14:56:35 -03:00
Eduardo Humberto c2a6fb8765 update test and fix has value method 2019-04-12 18:46:54 -03:00
Eduardo Humberto a57e2382c5 create test to verify if has_value method returns true if an empty value exists for multi value metadata (#222) 2019-04-12 16:32:33 -03:00
vnmedeiros f130ba95db Merge branch 'develop' of https://github.com/tainacan/tainacan into develop 2019-04-11 17:56:46 -03:00
leogermani f7ac12ec43 more facets tests 2019-04-11 18:00:21 -03:00
vnmedeiros 4aaeaf5b61 add test to default text metadata with filter 2019-04-11 17:56:25 -03:00
leogermani 39f506d371 Writing tests for facets 2019-04-11 15:57:38 -03:00
leogermani 512aed2017 Verify taxonomy visibility when saving metadatum #220 2019-04-08 12:50:19 -03:00
vnmedeiros 4a7e0f1a9a tests to visibility return API #220 2019-04-08 11:57:55 -03:00
vnmedeiros f97e51457b tests to visibility API #220 2019-04-07 22:27:31 -03:00
Mateus Machado Luna 1f19f90b4c Merges with develop and solves conflicts. 2019-04-02 15:19:00 -03:00
leogermani 0256a55dee Fix term_exists method not properly handling search by term_id 2019-03-28 12:34:03 -03:00
leogermani c4da2e01c6 Test and fix capabilities attribution for tainacan roles #205 2019-03-21 12:56:32 -03:00
Eduardo Humberto 6590b525bb test role author to insert items in his own collection (#205) 2019-03-21 12:56:31 -03:00
Eduardo Humberto 9ca75ffd5b update test to create item in collection created by user (#205) 2019-03-21 12:46:32 -03:00
Eduardo Humberto 4ad7667ae3 create test to reproduce error on create item as tainacan author role (#205) 2019-03-21 12:46:32 -03:00
Leo Germani e2a7040930 more taxonomy metadatum tests 2019-03-20 16:40:19 -03:00
leogermani 40cdded733 Test and fix capabilities attribution for tainacan roles #205 2019-03-13 16:01:09 -03:00
Eduardo Humberto fe3866458c test role author to insert items in his own collection (#205) 2019-03-12 21:25:04 -03:00
Eduardo Humberto 166a275872 update test to create item in collection created by user (#205) 2019-03-08 19:49:59 -03:00
Eduardo Humberto b0b5309f6f create test to reproduce error on create item as tainacan author role (#205) 2019-03-08 17:48:59 -03:00
Mateus Machado Luna 01a738f69e Merge from develop. 2019-03-07 15:05:19 -03:00
leogermani 644eb28528 fix creation of child collections #206 2019-03-01 16:24:07 -03:00
leogermani db682c0b7d remove name conflict. try to fix tests on php 5.6 2019-02-25 11:25:10 -03:00
leogermani 9adb8c63a8 remove unecessary use. try to fix tests on php 5.6 2019-02-25 11:06:08 -03:00
vnmedeiros c7488760d5 fix the tests cases. #90 2019-02-22 14:26:45 -03:00
leogermani d292ae828d refactor Entity constructor and repository fetch 2019-02-21 13:55:23 -03:00
weryques aac9d2b85b Fixes function not found in entity taxonomy 2019-01-21 10:32:22 -02:00
leogermani c355f8ad95 Work in progress enable post types for taxonomies. tests failing 2019-01-18 19:49:59 -02:00
leogermani 53618c8e68 write test to detect error fixed in c662bbc 2018-12-19 15:33:32 -02:00
Leo Germani 80a24cb488 refactor mappers and exposers 2018-11-30 10:41:10 -02:00
leogermani c56a9cdf90 avoid errors and fix tests 2018-11-14 14:33:10 -02:00
leogermani 6998dc4297 FIX Filters inheritance! 2018-11-14 11:43:37 -02:00
leogermani 76a52dd8a4 Replace term_exists() native function. Fixes #159 2018-11-13 18:21:22 -02:00
Mateus Machado Luna c409c99945 Merge branch 'refactor-facets' into develop 2018-11-07 11:21:12 -02:00
leogermani a5f9d8bf7d Fix filter by core metadata
This is no longer needed. we now also store coremeta values as postmeta
2018-11-01 15:57:14 -03:00
weryques 49f60fb431 Fixes last commit 2018-10-31 15:33:17 -03:00
leogermani 3177c91cbc Facets refactor. return filtered values for all types 2018-10-31 14:30:27 -03:00
vnmedeiros bd2a89b951 create a tests for metadata with multiples values 2018-10-30 17:14:50 -03:00
Eduardo Humberto 0fddc373fb tainacan csv importer - allow creating metadata (ref. #138) 2018-10-29 22:51:45 -03:00
Eduardo Humberto 0c8545159c tainacan csv importer - add tests for create metadata in csv header 2018-10-23 19:44:07 -03:00
Eduardo Humberto cca72df7fa tainacan csv importer - improve csv multiple test 2018-10-23 18:31:40 -03:00
Eduardo Humberto 16d24828df tainacan csv importer - update hierarchy test 2018-10-22 22:18:36 -03:00
Eduardo Humberto 746721ed8e tainacan csv importer - fix tests and start metadata creation 2018-10-22 21:48:43 -03:00
eduardohumberto cdb26d2c16 taincan csv importer - create test for term hierarchy values 2018-10-17 21:37:57 -03:00
weryques 67048a1381 Refactoring some code in rest facets and metatada repository 2018-10-17 15:26:32 -03:00
eduardohumberto b75109315d Tainacan csv importer - add hierarchical terms in taxonomy metadata (ref. #138) 2018-10-16 21:47:44 -03:00
eduardohumberto e39cae846d tainacan csv importer - starts handle hierarchy in taxonomy metadata (ref. #138) 2018-10-15 22:47:42 -03:00
leogermani 126b6e1d29 Change response of create bulk edit group endpoint #69 #139 2018-10-04 16:52:53 -03:00
leogermani 43f8118b80 Adds GET endpoint to bulk edit API to get group info #139 #69 2018-10-04 15:38:35 -03:00
leogermani 51abff93a2 Methods and endpoints for Sequence edit (refs #139 and #69) 2018-10-03 17:47:36 -03:00
eduardohumberto 8b9916ae1a csv importer- start column for item ID (ref. #138) 2018-10-03 07:51:42 -03:00
eduardohumberto cb6fd738b0 csv importer - create special column for status and create tests (ref. #138) 2018-10-01 21:42:39 -03:00
weryques 8e66ce2c73 Fixes too few parameters errpr on wpdb prepare 2018-09-21 12:10:44 -03:00
Leo Germani 1d868802f9 fix tests 2018-09-18 14:16:10 -03:00
Leo Germani 887b74b16f fix Bulk edit API 2018-09-18 12:17:49 -03:00
Leo Germani ace115837a add validation to date metadata type 2018-09-18 10:20:25 -03:00
eduardohumberto 8036b7e8c1 test importer - verify connection 2018-09-13 22:37:07 -03:00
vnmedeiros 108cce551c add auto HTML link tag in text values #128 and HTML break line tag in textarea #116 2018-09-13 17:07:32 -03:00
Leo Germani 3e3063c448 bulk edit: replace method add new value only when old value is found (#18) 2018-09-05 15:57:00 -03:00
Jacson Passold 9cc01aa0c6 Merge branch 'develop' of github.com:tainacan/tainacan into develop 2018-09-03 15:32:28 -03:00
Leo Germani 09e0ca0f54 fix item_metadata validation on bulk edit #69 2018-08-29 15:54:35 -03:00
Leo Germani a569a87ed6 fix bulk edit primary key violation adding terms #69 2018-08-29 15:54:35 -03:00
Jacson Passold add549b881 fix item comment open test 2018-08-28 00:20:04 -03:00
Leo Germani 507f33de32 set_status method in bulk edit api endpoint (#69) 2018-08-26 17:45:11 -03:00
eduardohumberto 8bc7a9c520 fix error multiple lines - csv import 2018-08-24 22:08:31 -03:00
Jacson Passold 9f6c111f83 Merge remote-tracking branch 'origin/develop' into issue-#92 2018-08-21 01:49:19 -03:00
Jacson Passold d721fd9d28 test comment status 2018-08-21 00:22:47 -03:00
Leo Germani 37586925ce register tax to poststypes considering inheritance of tax metadata #111 2018-08-17 17:01:10 -03:00
weryques 4c3d9c8375 Refactoring delete methods (issue #89) 2018-08-10 14:49:14 -03:00
Jacson Passold 0d64ed773a Merge remote-tracking branch 'origin/develop' into export
# Conflicts:
#	src/admin/class-tainacan-admin.php
#	src/admin/tainacan-admin-i18n.php
2018-08-07 20:58:27 -03:00
Jacson Passold 2ef913b184 test for #108 2018-08-07 20:50:51 -03:00
weryques 967bfc876e Removes useless code and creates a test for fetch items that have a metadata not filled (issue #104) 2018-08-07 09:43:17 -03:00
Leo Germani 5e545cdbca Text search also searches in relationship metadata (refs #100) 2018-08-06 15:22:42 -03:00
weryques 5b40cd1f71 Refactoring fetch all metadatatum value and fixes not removing of duplicated values 2018-08-06 13:42:31 -03:00
Leo Germani 5161747d46 CSV importer correctly handles attachments and documents 2018-08-02 11:01:13 -03:00
eduardohumberto 449234a86c csv importer - create attachments tests (ref. #86 ) 2018-07-31 20:57:22 -03:00
eduardohumberto 7fd2138485 csv importer - create tests for different document types and fix index error on process item 2018-07-30 21:57:01 -03:00
eduardohumberto df47e9dc59 csv importer - allow child importers execute method after item insert 2018-07-27 22:18:18 -03:00
Jacson Passold 3ea5ed42b6 Merge remote-tracking branch 'origin/develop' into issue-#24 2018-07-27 00:33:25 -03:00
Jacson Passold 587e2de121 fix test semantic_uri 2018-07-27 00:32:43 -03:00
Leo Germani abbad9bd42 add methods for bulk trash and delete #69 2018-07-26 14:52:30 -03:00
eduardohumberto ded79f7145 csv import - adapt process item method to skip special columns 2018-07-25 21:35:21 -03:00
eduardohumberto ecc99ebd61 csv import - special fields initial tests ( ref. #86 ) 2018-07-24 21:15:17 -03:00
Leo Germani 7d1f934795 add name to background processes #62 2018-07-20 11:05:27 -03:00
Leo Germani 74adde2255 new template tag to get initials from name 2018-07-19 15:16:35 -03:00
Leo Germani 38f1266855 refactor handling core metadata (refs #79) 2018-07-17 17:04:39 -03:00
weryques 666bfa5870 Merge branch 'develop' of https://github.com/tainacan/tainacan into develop 2018-07-17 12:56:17 -03:00
weryques daa9bbee65 Fixes metadata duplication on son collection (issue #79) 2018-07-17 12:51:59 -03:00
Jacson Passold 43e5a59cf4 Merge branch 'develop' into export 2018-07-16 11:58:31 -03:00
Leo Germani e36ac34936 disable compound metadata (refs #76) 2018-07-14 13:16:05 -03:00
Jacson Passold d0466cd2e7 refactoring exposer type and mapping params to use global const to easy
change names
2018-07-12 15:22:37 -03:00
Jacson Passold 94f02ce0cd prototype urls test, rewrite exposers to use exposer_type instead esposer_type and get all exposer urls 2018-07-10 04:11:35 -03:00
Jacson Passold 3c1d3fd5d9 remove debug info 2018-07-10 03:20:57 -03:00
Jacson Passold 2dc5d81371 right test json-dl 2018-07-10 03:20:14 -03:00
Jacson Passold 59ccca49b6 fix metadatum mapper custom meta 2018-07-10 01:05:56 -03:00
Jacson Passold 0d76dbcac7 support for custom metadatum->mapper->metadatum 2018-07-10 00:49:30 -03:00
Jacson Passold 831ec18fb9 Merge remote-tracking branch 'origin/develop' into field-mapping-interface
# Conflicts:
#	src/admin/tainacan-admin-i18n.php
2018-07-09 21:21:32 -03:00
Jacson Passold 45b2d718ff Merge branch 'export' into field-mapping-interface, fix some field from export and write array to exported file 2018-07-09 18:41:42 -03:00
Jacson Passold 118765ed95 add prototype of jsondl test case 2018-07-09 18:23:45 -03:00
Jacson Passold 7d38dc1cf2 check if is visible for api (show_ui) 2018-07-05 22:17:41 -03:00
Leo Germani 379f8c5f04 Buk edit API endpoints #69 2018-07-05 12:57:39 -03:00