[jira] [Commented] (GRIFFIN-204) postman collection is not up to date, some APIs don't work well, like create measure

2018-10-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/GRIFFIN-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16648729#comment-16648729
 ] 

ASF GitHub Bot commented on GRIFFIN-204:


Github user asfgit closed the pull request at:

https://github.com/apache/incubator-griffin/pull/433


> postman collection is not up to date, some APIs don't work well, like create 
> measure
> 
>
> Key: GRIFFIN-204
> URL: https://issues.apache.org/jira/browse/GRIFFIN-204
> Project: Griffin (Incubating)
>  Issue Type: Bug
>Affects Versions: 0.2.0-incubating
>Reporter: Eugene
>Assignee: Eugene
>Priority: Minor
> Fix For: 1.0.0-incubating
>
>
> apply 
> [https://github.com/apache/incubator-griffin/blob/master/griffin-doc/service/postman/griffin.json,]
>  and launch create measure api, then get an error. I find the json is not 
> matched to latest implementation
> {
>     "timestamp": 1539073909006,
>     "status": 400,
>     "error": "Bad Request",
>     "exception": 
> "org.springframework.http.converter.HttpMessageNotReadableException",
>     "message": "Could not read document: Can not construct instance of 
> org.apache.griffin.core.measure.entity.DqType from String value 'accuracy': 
> value not one of declared Enum instance names: [COMPLETENESS, TIMELINESS, 
> PROFILING, CONSISTENCY, ACCURACY, UNIQUENESS]\n at [Source: 
> java.io.PushbackInputStream@565f5e70; line: 4, column: 15] (through reference 
> chain: org.apache.griffin.core.measure.entity.GriffinMeasure[\"dq.type\"]); 
> nested exception is 
> com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct 
> instance of org.apache.griffin.core.measure.entity.DqType from String value 
> 'accuracy': value not one of declared Enum instance names: [COMPLETENESS, 
> TIMELINESS, PROFILING, CONSISTENCY, ACCURACY, UNIQUENESS]\n at [Source: 
> java.io.PushbackInputStream@565f5e70; line: 4, column: 15] (through reference 
> chain: org.apache.griffin.core.measure.entity.GriffinMeasure[\"dq.type\"])",
>     "path": "/api/v1/measures"
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (GRIFFIN-204) postman collection is not up to date, some APIs don't work well, like create measure

2018-10-09 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/GRIFFIN-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16643456#comment-16643456
 ] 

ASF GitHub Bot commented on GRIFFIN-204:


GitHub user toyboxman opened a pull request:

https://github.com/apache/incubator-griffin/pull/433

Fix a bug in postman script

postman collection is not up to date, some APIs don't work well.
script has been refreshed in this patch by postman 2.1 standard.

Jira task: GRIFFIN-204

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/toyboxman/incubator-griffin doc/postman

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-griffin/pull/433.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #433


commit 46bc51526836353cf58e06947d23542415d2e64c
Author: Eugene 
Date:   2018-10-09T13:13:35Z

Fix a bug in postman script

postman collection is not up to date, some APIs don't work well.
script has been refreshed in this patch by postman 2.1 standard.

Jira task: GRIFFIN-204




> postman collection is not up to date, some APIs don't work well, like create 
> measure
> 
>
> Key: GRIFFIN-204
> URL: https://issues.apache.org/jira/browse/GRIFFIN-204
> Project: Griffin (Incubating)
>  Issue Type: Bug
>Affects Versions: 0.2.0-incubating
>Reporter: Eugene
>Assignee: Eugene
>Priority: Minor
> Fix For: 1.0.0-incubating
>
>
> apply 
> [https://github.com/apache/incubator-griffin/blob/master/griffin-doc/service/postman/griffin.json,]
>  and launch create measure api, then get an error. I find the json is not 
> matched to latest implementation
> {
>     "timestamp": 1539073909006,
>     "status": 400,
>     "error": "Bad Request",
>     "exception": 
> "org.springframework.http.converter.HttpMessageNotReadableException",
>     "message": "Could not read document: Can not construct instance of 
> org.apache.griffin.core.measure.entity.DqType from String value 'accuracy': 
> value not one of declared Enum instance names: [COMPLETENESS, TIMELINESS, 
> PROFILING, CONSISTENCY, ACCURACY, UNIQUENESS]\n at [Source: 
> java.io.PushbackInputStream@565f5e70; line: 4, column: 15] (through reference 
> chain: org.apache.griffin.core.measure.entity.GriffinMeasure[\"dq.type\"]); 
> nested exception is 
> com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct 
> instance of org.apache.griffin.core.measure.entity.DqType from String value 
> 'accuracy': value not one of declared Enum instance names: [COMPLETENESS, 
> TIMELINESS, PROFILING, CONSISTENCY, ACCURACY, UNIQUENESS]\n at [Source: 
> java.io.PushbackInputStream@565f5e70; line: 4, column: 15] (through reference 
> chain: org.apache.griffin.core.measure.entity.GriffinMeasure[\"dq.type\"])",
>     "path": "/api/v1/measures"
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)