weryques
c94faa619d
Test meta query and date query
2018-02-21 12:06:11 -03:00
Eduardo humberto
91095aade2
add unique ID for each importer created
2018-02-21 09:41:56 -03:00
weryques
230814ac2d
Merge branch 'develop' of https://github.com/tainacan/tainacan into develop
2018-02-20 16:06:41 -03:00
weryques
fd6af15303
Initiated Meta Query Tests
2018-02-20 16:06:18 -03:00
Eduardo humberto
5440a41331
create upload function importer
2018-02-20 15:11:10 -03:00
Eduardo humberto
5452928b0a
begin tainacan importer
2018-02-20 10:35:51 -03:00
Leo Germani
fd36aa195b
new tests for private objects
2018-02-19 14:10:21 -03:00
Eduardo humberto
783818bb5a
fix error on save core field value - array values are not being save - and fix test metadata api - searching the specified field on array of fields
2018-02-19 13:29:43 -03:00
Eduardo humberto
16e8575fcf
create test for ordinate fields in collection and allow disable fields
2018-02-19 11:20:17 -03:00
Jacson Passold
6f1d97fc23
begin test of api item_metadata relation
2018-02-16 20:41:43 -02:00
Leo Germani
ab26bf6f53
fix api metadata test
2018-02-16 17:16:52 -02:00
Leo Germani
f33d474bde
fetch items returns items from private collections correctly
2018-02-16 16:48:58 -02:00
Leo Germani
853239c0cc
Default fetch items return private items correctly
2018-02-16 16:48:58 -02:00
Eduardo humberto
f173852c68
fix core fields tests
2018-02-16 15:50:28 -02:00
Eduardo humberto
6c8650ceda
alter repository fields to create in each collection, update tests to support those new fields and remove hooks to create option for repostiory fields
2018-02-16 15:35:28 -02:00
Jacson Passold
5fb73b3b8e
Merge branch 'develop' of github.com:tainacan/tainacan into develop
2018-02-16 13:18:19 -02:00
weryques
ecd453b3cf
Atributes for pagination are visible and initiated the refactoring of prepare item for response
2018-02-16 10:58:55 -02:00
Eduardo humberto
6437dd9939
creating on activate plugin the core fields (repository)
2018-02-15 16:29:46 -02:00
weryques
01a7c41d71
Field type object is now returned with item metadata
2018-02-15 11:27:45 -02:00
weryques
785a94690d
Fixes API item metadata
2018-02-15 09:24:44 -02:00
weryques
195133a02c
Fixes return of update metadata
2018-02-14 16:52:50 -02:00
weryques
60e362e624
Now metadata multiple and status of entities is working through API
2018-02-14 16:15:19 -02:00
Jacson Passold
d7c58b17ca
diff multi value
2018-02-14 15:23:46 -02:00
Jacson Passold
3666792e8d
add field suggestion permition prop
2018-02-13 22:35:12 -02:00
Jacson Passold
fb26ba456d
Merge branch 'develop' of github.com:tainacan/tainacan into develop
2018-02-13 21:42:49 -02:00
Jacson Passold
6e13222ad1
do not get thumb from entity with no post ID, add diff function to entities and repositories, simple collection diff test
2018-02-13 21:41:06 -02:00
Leo Germani
74d0009609
Description core field type
2018-02-13 12:03:29 -02:00
Leo Germani
1c43769a9e
first funcional commit of core field types
2018-02-10 00:36:57 -02:00
Leo Germani
0d10196abc
various fixes in items api controller and permissions handling
2018-02-10 00:36:57 -02:00
Jacson Passold
1c52d84127
fix test group name
2018-02-09 16:59:57 -02:00
Leo Germani
dbc3349d46
fix and test deleting entities attributes
2018-02-09 16:04:52 -02:00
Leo Germani
7a3188a572
fix collections test
2018-02-09 16:04:52 -02:00
Leo Germani
6fd5aa31b4
item metadata creation and testing improved
2018-02-08 16:28:45 -02:00
Eduardo humberto
a80a9ad6e1
alter get_field to get_fields
2018-02-08 11:15:44 -02:00
weryques
fcaaaf0438
Now the routes accept queries
2018-02-01 14:51:38 -02:00
weryques
9ef5d3ad6e
Refactoring API
...
New routes
Update methods refactored
Log Controller created and it test
2018-02-01 13:17:23 -02:00
weryques
1e2c2a4321
New routes - Item Metadata
2018-01-31 13:50:10 -02:00
Eduardo humberto
722b5387d1
Alter Metadata to Fields/Field (Big changes)
2018-01-31 12:51:43 -02:00
weryques
73d86d59bf
Refactoring capabilities
2018-01-31 11:06:46 -02:00
weryques
60bd3753c4
Refactoring some controllers
2018-01-30 15:33:06 -02:00
Leo Germani
bd0b34cd2c
Merge branch 'master' into develop
2018-01-30 12:01:24 -02:00
Jacson Passold
bf4f254df7
better debug
2018-01-29 18:36:15 -02:00
Jacson Passold
0e01a2bff7
Merge branch 'Item_moderation' of github.com:tainacan/tainacan into Item_moderation
2018-01-29 18:22:56 -02:00
Jacson Passold
a9bcd0292a
better handler response errors
2018-01-29 18:18:40 -02:00
Leo Germani
764ec9b681
removing endpoint tha needs refactoring
2018-01-29 17:08:34 -02:00
weryques
cf5cb62d21
Allow insert draft Items
2018-01-29 11:09:44 -02:00
Leo Germani
1b54969c4d
Improves capabilities tests and fixes set_items_capabilities
2018-01-28 23:34:12 -02:00
Leo Germani
979c80eb92
fix permissions for moderators. still have to fix can_* methods in repoitory
2018-01-27 00:23:25 -02:00
Jacson Passold
35ba99d882
test item moderation
2018-01-26 16:44:45 -02:00
weryques
f8d7393e2f
Merge branch 'master' into feature/user-admin-interface
2018-01-26 14:23:32 -02:00
weryques
01f42d5c0c
API routes changed
2018-01-25 11:47:09 -02:00
Jacson Passold
e1a54d96f4
test moderators and debug metas support
2018-01-24 17:32:06 -02:00
weryques
49df60f989
Limitation of attributes returned from API GET Collections
2018-01-24 14:08:17 -02:00
weryques
1d473b1b6c
Merge branch 'master' of https://github.com/tainacan/tainacan
2018-01-22 09:50:31 -02:00
weryques
f91d19abbb
Fix build for macOS and Fix autoload for uppercase directories
2018-01-22 09:48:51 -02:00
Jacson Passold
7c6932ac1f
Merge branch 'master' of github.com:tainacan/tainacan
2018-01-19 20:46:08 -02:00
Jacson Passold
86d45910d4
add test group "api"
2018-01-19 20:39:32 -02:00
weryques
856ea0b4a7
Update collection metadata
2018-01-19 14:56:36 -02:00
weryques
814884b404
Update Item Metadata
2018-01-19 12:55:39 -02:00
Jacson Passold
2301029bf8
Merge branch 'master' of github.com:tainacan/tainacan
2018-01-18 12:34:23 -02:00
Jacson Passold
44aebc95ea
better caps test and test moderators_ids is stored
2018-01-18 12:34:08 -02:00
Jacson Passold
e8462872e1
test item permissions
2018-01-18 12:30:57 -02:00
Jacson Passold
87df13cbc7
doc fix
2018-01-18 12:28:51 -02:00
weryques
15612ef35a
Fetch a Term
2018-01-18 11:38:31 -02:00
weryques
a37e56e424
Get a filter
2018-01-18 11:23:16 -02:00
weryques
ab081cc992
Fetch all terms of a taxonomy
2018-01-18 10:45:31 -02:00
weryques
027fd43030
Fetch filters
2018-01-17 15:48:44 -02:00
weryques
b3d92b7abb
Update terms
2018-01-17 12:33:28 -02:00
weryques
e37d4a6465
Update taxonomies
2018-01-17 10:02:22 -02:00
weryques
036d5e2661
Update filter
2018-01-16 11:41:24 -02:00
weryques
e961943e8c
Update item
2018-01-16 10:47:29 -02:00
weryques
ec07dd9cd2
Update collection
2018-01-16 10:31:52 -02:00
weryques
eac7db72c4
Delete Term
2018-01-15 17:47:27 -02:00
weryques
a2d6c38c13
Delete filter
2018-01-15 09:15:21 -02:00
weryques
43b15b55ba
Test for filters delete or trash and started delete endpoint
2018-01-12 14:17:52 -02:00
Jacson Passold
ae8f2f7dde
can_publish test
2018-01-10 21:42:51 -02:00
Jacson Passold
1b8c7f63ca
Merge branch 'master' of github.com:tainacan/tainacan
2018-01-10 21:09:48 -02:00
Jacson Passold
6ba5122dfe
simple perm test using map
2018-01-10 21:09:41 -02:00
weryques
0541d78b5f
Create endpoint to POST filters and your test.
2018-01-10 13:56:55 -02:00
Jacson Passold
b95161792b
Merge branch 'master' of github.com:tainacan/tainacan
2018-01-08 19:53:20 -02:00
Jacson Passold
2851d8b545
user already set at super class
2018-01-08 19:30:26 -02:00
weryques
a9edd8ef19
Create term in a taxonomy and test that creation.
2018-01-08 15:33:47 -02:00
weryques
a3a8c10e4a
Test delete or trash Taxonomy
2018-01-08 10:53:28 -02:00
Jacson Passold
441d337f26
filter need names because post_title can not be null
2018-01-03 17:39:10 -02:00
Jacson Passold
f0caa21bab
setup test for user support
2018-01-03 17:38:00 -02:00
Jacson Passold
b1f8759a6b
funtion to check read and write perm and read test
2017-12-26 20:08:15 -02:00
Jacson Passold
5bbe4ebe7e
move roles test from collections to a new file
2017-12-20 22:26:48 -02:00
Jacson Passold
b2e4639e43
simple capabilities ecosystem
2017-12-20 22:13:33 -02:00
weryques
167867620e
Api updates
...
Created taxonomies Controller;
Now the entities have the method __toArray();
Created test for taxonomies Controller;
Added more exceptions treatments;
terms Controller was initiated;
And other improvements.
2017-12-19 14:24:30 -02:00
weryques
96aa29d61b
Now the basic user capabilities are working
2017-12-18 10:52:45 -02:00
weryques
e4175f83ab
Added error messages
2017-12-13 13:07:01 -02:00
weryques
3550c8b614
Get item metadata and Get Collection metadata
2017-12-12 15:17:55 -02:00
weryques
94d6ca8dc6
Removed unecessary verification
2017-12-12 12:16:17 -02:00
weryques
876bd47539
Removing duplicated validation
2017-12-12 12:11:50 -02:00
weryques
b9ef55c21f
Remove translations
2017-12-12 12:01:41 -02:00
Jacson Passold
f04fb3d81c
Merge branch 'master' of github.com:tainacan/tainacan
2017-12-12 11:46:50 -02:00
Jacson Passold
1f440bafad
add publish to factory param
2017-12-12 11:40:01 -02:00
weryques
c4f47882b4
Exception treatments
2017-12-12 09:59:50 -02:00
weryques
3485669367
API and API Tests
...
Created Metadata controller;
Improved Item Controller;
Created Test for metadata controller
2017-12-11 14:46:26 -02:00
Jacson Passold
a00bbc3abb
print invalid props
2017-12-11 12:57:15 -02:00
Jacson Passold
36fcc6e7f3
set type for eclipse doc helper
2017-12-11 12:36:24 -02:00
Jacson Passold
c10407f74b
move prop id to super class, check post_types on object creation, set some defaults props, abstract get_map fucntion, fix map filter for use only in the right entity, add initial objects tests
2017-12-11 12:25:28 -02:00
weryques
3b3cfda7fb
Collections API and Repository
...
Endpoint DELETE is working;
Method delete is implemented;
2017-12-08 13:09:36 -02:00
weryques
ecf8a171d3
Items Api and Repository
...
Endpoint DELETE is working;
Method delete is working;
A route was changed in Items Controller.
2017-12-08 12:53:55 -02:00
weryques
d2495af712
Test delete or trash items and collections
2017-12-07 13:49:11 -02:00
Leo Germani
139e93f191
fixing assert arguments order on tests
2017-12-07 11:54:43 -02:00
weryques
b5a247e4e5
API
...
Test create item in a collection;
Implemented create item in Items controller;
Implemented prepare item for database in Item controller;
2017-12-07 10:46:31 -02:00
weryques
75a64ebed1
Test fetch items from a collection
2017-12-07 10:00:35 -02:00
Eduardo humberto
11a40ddee9
update field and filter type properties in entities, save options in database
2017-12-05 15:42:15 -02:00
weryques
ff0fd7ba8e
Merge branch 'master' of https://github.com/tainacan/tainacan
2017-12-05 10:29:48 -02:00
weryques
b433cf3d60
Improvements on catch errors
2017-12-05 10:28:38 -02:00
Eduardo humberto
e9813b1592
add test new field type
2017-12-05 08:37:50 -02:00
Jacson Passold
a6d39f7666
phpunit api group (phpunit --group api)
2017-12-04 17:01:34 -02:00
Jacson Passold
043a5a02a0
Merge branch 'master' of github.com:tainacan/tainacan
2017-12-04 16:47:46 -02:00
Jacson Passold
fd63a432cd
separate hoot test
2017-12-04 16:47:38 -02:00
Jacson Passold
9da2c61044
new api test method, using wordpress rest team form ( https://github.com/WP-API/WP-API/blob/develop/tests/test-rest-posts-controller.php )
2017-12-04 16:46:56 -02:00
Jacson Passold
a867901849
remove a not working forced plugin installation
2017-12-04 16:45:57 -02:00
Jacson Passold
440d433df3
call the parent setUp
2017-12-04 16:44:48 -02:00
Jacson Passold
3607d99181
add a base class for api test cases
2017-12-04 16:42:41 -02:00
Eduardo humberto
ff09c7bf11
register default types on init
2017-12-04 16:30:58 -02:00
weryques
3b0d738fc2
Now factories are used in all tests
2017-12-04 16:20:49 -02:00
weryques
ed0c3d9674
Factories and Test adaptations
...
Factories field and filter were created.
Tests from collection, filters and item metadata
were adapted it.
2017-12-04 12:58:19 -02:00
Leo Germani
e6cf022ffe
Merge branch 'master' of github.com:tainacan/tainacan
2017-12-03 19:49:58 -02:00
Leo Germani
3f21743672
[dev-interface] display items metadata
2017-12-03 19:49:50 -02:00
weryques
a17e647d52
Tainacan Entity Factory and other things
...
Added __toString in all entities;
Created Entity Factory;
Entity factory added in test add collection;
2017-12-03 18:33:16 -02:00
Eduardo humberto
f8b64edd6f
insert validation methods in repositories mapping
2017-12-01 14:06:35 -02:00
Eduardo humberto
420e4a311f
display custom errors on validate insert and fix tests
2017-12-01 11:09:08 -02:00
Jacson Passold
185e0dd5ea
manualy set metadata status to publish
2017-12-01 00:54:14 -02:00
Jacson Passold
c7394be0b5
check if a new created collection is draft by default
2017-12-01 00:53:20 -02:00
Jacson Passold
eba6eb55e2
check if last log is a log
2017-12-01 00:52:26 -02:00
Leo Germani
0124e57c07
forçando entidades a serem validadas antes de salvar
2017-11-30 16:00:25 -02:00
Leo Germani
23631665b5
Merge branch 'master' of github.com:tainacan/tainacan
2017-11-30 14:42:22 -02:00
Leo Germani
6676d03aa0
improving fetch!
2017-11-30 14:42:11 -02:00
weryques
cd498f48a6
API, Docs and Tests config:
...
setup-local.md updated;
Collections Controller updated;
Items Controller implementation initiated;
Map in Collections updated;
PHPDoc in Collections Controller; and
other things.
2017-11-30 14:00:43 -02:00
Eduardo humberto
c15cb6464f
allow change output in fetch methods
2017-11-30 11:44:43 -02:00
Leo Germani
023ef0f15a
trabalhando na infra pra testes da API
2017-11-29 17:11:30 -02:00
Eduardo humberto
57b3e5586b
refactor repositories fetch method
2017-11-29 16:06:22 -02:00
weryques
7c20ef7884
API, API Tests and Setup Doc.
...
Added API Tests,
Added API Endpoints,
Documentation modified
2017-11-29 11:45:30 -02:00
Leo Germani
bec743c80a
adding all collection properties
2017-11-28 18:49:20 -02:00
weryques
d318bd0d42
Test endpoint 'collections'
2017-11-27 12:32:03 -02:00
Jacson Passold
b94024b194
logging repository inserts using super class
2017-11-24 19:15:41 -02:00
Jacson Passold
fdf2818f11
fix assert order
2017-11-24 16:54:52 -02:00
Jacson Passold
9d3e21c32f
Merge branch 'master' of github.com:tainacan/tainacan
2017-11-24 16:03:25 -02:00
weryques
4f195b396b
Tainacan API and two Endpoints: collections and collections/id
2017-11-24 15:32:27 -02:00
Jacson Passold
68672444f8
test init
2017-11-23 17:06:57 -02:00
Jacson Passold
6e619d7431
revert entity to abstract class, implement repository __construct and parcial insert
2017-11-22 22:30:48 -02:00
weryques
83aa26443a
file name standards
2017-11-22 09:36:24 -02:00
weryques
cbe4b093a9
Now metadata, term and taxonomy repos. implements repository
2017-11-21 09:15:44 -02:00
Jacson Passold
5c76b0ccf7
save user_id and blog_id
2017-11-20 23:31:46 -02:00
weryques
4270cd0a63
Now Tainacan logs implements Repository
2017-11-20 15:24:07 -02:00
weryques
6a4e2a024c
Now Items implements Repository
2017-11-20 15:13:37 -02:00
weryques
3f0e7c5f8d
Filters now implements Repository
2017-11-20 13:40:26 -02:00
weryques
05f5f97eb7
Repository Interface with collections
2017-11-20 12:41:54 -02:00
Jacson Passold
c26f7e6d5e
removed some classes sufix
2017-11-20 12:37:01 -02:00
Jacson Passold
7f001114d8
fix assert param order
2017-11-15 19:37:34 -02:00
Jacson Passold
fbe81d8a7b
namespace object is not saved right in metadata too
2017-11-15 19:09:01 -02:00
Jacson Passold
a3716528bd
fix expeted value
2017-11-15 18:03:47 -02:00
Jacson Passold
f66ed5c3f1
convert code to namespaces basis
2017-11-15 16:50:11 -02:00
Leo Germani
65ab6e8708
avançando esquema de validação
2017-11-15 00:04:40 -02:00
Eduardo humberto
f02893bb34
improve filters and metadata structure
2017-11-14 16:44:04 -02:00
Eduardo humberto
b3cb374a27
testes dos filtros
2017-11-14 12:46:22 -02:00
Eduardo humberto
2a25057ecd
adicionando tipos de campos - Tainacan
2017-11-14 08:17:32 -02:00
Jacson Passold
ddc207ab8d
begin log entity and save post type object
2017-11-13 21:23:13 -02:00
weryques
fb6e5fb11e
Convenção de nome de classes e autoload.
2017-11-13 14:03:04 -02:00
Leo Germani
21e71a8997
item & item_metadata
2017-11-12 21:14:47 -02:00
Leo Germani
15f6821293
organizando metodos de relações entre classes
2017-11-11 20:25:54 -02:00
Leo Germani
d9694f7abb
configuração de pasta de testes fora do git
2017-11-10 19:08:12 -02:00
weryques
fb7732b06c
Delete
2017-11-10 14:45:40 -02:00
Eduardo humberto
5b354a9139
criando a entidade Term
2017-11-10 14:39:27 -02:00
Eduardo humberto
7e2dd2c199
criando testes para criação de taxonomias e termos destas taxonomias
2017-11-10 13:23:02 -02:00
weryques
633144cfa3
Removendo chave
2017-11-09 14:10:56 -02:00
weryques
46a2e07b90
Merge branch 'master' of https://github.com/medialab-ufg/tainacan-test-repo
2017-11-09 14:09:46 -02:00
weryques
de092fa4ff
Estrutura diferente
2017-11-09 14:06:49 -02:00
Eduardo humberto
7bc5ef0dd1
começando taxonomias
2017-11-09 13:51:16 -02:00
Leo Germani
e73c59ae71
Merge branch 'master' of github.com:medialab-ufg/tainacan-test-repo
2017-11-09 10:45:55 -02:00
Leo Germani
c7215e5f30
itens
2017-11-09 10:44:52 -02:00
Eduardo humberto
0f57f52a06
criando e testando criação de metadado simples
2017-11-09 09:01:11 -02:00
Leo Germani
95d00ed9e1
prototipo da classe Collections e Items, com opcao para interface padrao WP
2017-11-03 18:23:41 -02:00
Leo Germani
007afeb2ea
primeira versã odo repo com testes e build
2017-10-20 12:30:04 -02:00