Issue Description:
When I created a new resource on the CKAN UI with the format fiware-ngsi and resource is created successfully. Data preview is working fine as shown in below image. But on that screen there is one button visible with name "Go to Resource"
as shown below.
On clicking on the "Go to Resource" button , it is giving the below error.
Error:
900902Missing CredentialsRequired OAuth credentials not provided. Make sure your API invocation call has a header: "Authorization: Bearer ACCESS_TOKEN"
Investigation:
On the source code analysis, We found that there are two below files which has the functionality of hiding the "Go to Resource" button for V1 APIs.
**Line No 15:**
{% if res.url.lower().find('/querycontext')== -1 and res.url.lower().find('/contextentities/')== -1 %}
We found that these entries are only for V1 and these are hiding the "Go to Resource" button on that screen. It is working fine for V1, but for there is no source code for V2 entities and /op/query/.
Issue Description: When I created a new resource on the CKAN UI with the format fiware-ngsi and resource is created successfully. Data preview is working fine as shown in below image. But on that screen there is one button visible with name "Go to Resource" as shown below.
On clicking on the "Go to Resource" button , it is giving the below error.
Error:
Investigation: On the source code analysis, We found that there are two below files which has the functionality of hiding the "Go to Resource" button for V1 APIs.
https://github.com/conwetlab/ckanext-right_time_context/blob/master/ckanext/right_time_context/templates/package/resource_read.html
https://github.com/conwetlab/ckanext-right_time_context/blob/master/ckanext/right_time_context/templates/package/snippets/resource_item.html
We found that these entries are only for V1 and these are hiding the "Go to Resource" button on that screen. It is working fine for V1, but for there is no source code for
V2 entities and /op/query/
.