Commit Graph

725 Commits

Author SHA1 Message Date
vnmedeiros b5d486961e changes core author metadata to user metadata #354 2020-04-17 09:29:11 -03:00
mateuswetah c136f375c0 Merges conflicts from develop. 2020-04-10 09:00:15 -03:00
vnmedeiros c015b37ac8 add endpoint methed `DELETE` for remoce a value of metadata compound #17 2020-04-10 00:08:37 -03:00
vnmedeiros 2aa94b5065 add/fix tests for core metadata author #354 2020-04-08 15:35:28 -03:00
vnmedeiros 2bb1e83f84 add test for multiple compound metadatum API #17 2020-03-27 15:32:59 -03:00
vnmedeiros 85b7568d34 add teste `test_create_compound_metadatum_API` #17 2020-03-24 08:46:53 -03:00
vnmedeiros 41dea9f2e6 fix tests compound metadatum order #17 2020-03-14 00:50:35 -03:00
vnmedeiros dbed32b98d fix test instanceof Item_Metadata_Entity #17 2020-03-14 00:24:08 -03:00
vnmedeiros 875b828eea remove `validate_metadata_order` #17 2020-03-13 14:22:00 -03:00
vnmedeiros 966aa2adf1 add validate metadata order #17 2020-03-05 14:02:48 -03:00
vnmedeiros 0d1256c66d add test group compound_metadatum #17 2020-03-05 11:04:44 -03:00
vnmedeiros a3e67b6276 fix count metadata type #17 2020-03-04 10:59:13 -03:00
vnmedeiros 2c2ee72617 fix paramenrs `parent_meta_id` #17 2020-03-02 14:58:42 -03:00
vnmedeiros 85bc6c996e add `parent_meta_id` on endpoint #17 2020-02-29 10:21:36 -03:00
leogermani 29977826d9 disallow new terms on meta when tax changes #366 2020-02-20 14:57:18 -03:00
vnmedeiros 56dc4d5206 fix indentation 2020-02-19 15:46:18 -03:00
vnmedeiros 146e6169d2 add test to change status of taxonomy 2020-02-19 15:39:27 -03:00
Vinícius Nunes 8dc2761c44 Merge branch 'release/0.15' of https://github.com/tainacan/tainacan into release/0.15 2020-02-11 11:27:41 -03:00
leogermani 5724260bbf fix tests for older php versions 2020-02-11 11:00:01 -03:00
leogermani a9e5f8d58a remove private filter and meta from api response
it was showing up in metadata and filters_order
2020-02-11 10:52:26 -03:00
vnmedeiros 5f5a8ae414 add new assert test #344 2020-02-11 10:51:41 -03:00
vnmedeiros 13f48bd63a add text api search #344 2020-02-11 10:51:24 -03:00
leogermani e2e57d05bd more tests for private meta and filters visibility 2020-02-11 10:09:45 -03:00
leogermani 7d42f87982 add test for visibility of private filters 2020-02-11 09:48:22 -03:00
vnmedeiros bf8070abe7 fix the call of function `permission_callback` 2020-02-03 16:53:23 -03:00
vnmedeiros a58104874f change method `set_comments` to `set_comment_status` #171 2019-12-19 12:41:29 -03:00
leogermani e94a08269d fix exclude param in rest api 2019-12-18 17:28:56 -03:00
Vinícius Nunes fb567051e7 add teste to set status of coments items #171 2019-12-18 17:03:22 -03:00
Vinícius Nunes 69b7251dbe add test to action clear metadada #200 2019-12-18 16:27:00 -03:00
Mateus Machado Luna b2f5a68a4c Merge conflicts from develop. 2019-12-17 09:42:04 -03:00
leogermani e17c5241cf Merge branch 'feature/274' into develop 2019-12-16 16:00:53 -03:00
Vinícius Nunes f17a4fb9cb add `collection_id` on bulk-edits tests #200 2019-12-16 13:49:38 -03:00
Vinícius Nunes 39c89d343d fix tests, pagination on query and pos on delete #200 2019-12-15 22:05:30 -03:00
leogermani bccc745806 Disabling old Bulk Edit Class and tests #200 2019-12-13 18:33:35 -03:00
leogermani 2528fd9034 remove deprecated tests from old bulk edit #200 2019-12-13 18:23:38 -03:00
leogermani 559e09ea31 add refactored tests for bulk edit #200 2019-12-13 18:23:16 -03:00
leogermani 453cc4b8a1 fix capablities list in roles retunr #274 2019-12-11 19:11:21 -03:00
leogermani 04ed966369 Refactoring Sequence Edit API #200
Sequence edit now do not rely on Bulk edit actions.
Front end still needs to change
2019-12-10 22:15:50 -03:00
leogermani a472915b11 fix capabilities validation api roles #274 2019-12-10 16:51:05 -03:00
Vinícius Nunes c2f02e048d fix tests #200 2019-12-10 12:56:30 -03:00
leogermani 907d0df7b9 open context edit #274
context edit was basicaluu only hiding entity permissions.
No sensitive information. Removed cause needed in front-end
If sensitive info is added, check shoud be done when building response
2019-12-09 18:16:35 -03:00
leogermani 221e6b3ab8 return only tainacan caps on roles endpoint #274 2019-12-09 17:20:37 -03:00
leogermani f6527c5067 fix one test. waiting for others #200 2019-12-06 19:59:52 -03:00
leogermani 0b1460cd1a validate caps on roles endpoint #274 2019-12-06 16:53:49 -03:00
leogermani 5ce4707230 add capabilities param to POST and PATCH roles #274 2019-12-02 16:35:34 -03:00
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