Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ckanext- right-time-context cannot communicate with orion in same-domain #8

Merged
merged 3 commits into from
Sep 12, 2018

Conversation

iamarnavgarg
Copy link

When the orion query API was entered in the following form as shown below on CKAN, the result was not displayed for it.

/v1/queryContext
/v1/contextEntities

In orion,ngsi can handle both uppercase and lowercase letters(queryContext, contextEntities), but NGSI view can handle in lowercase letters only.
And,NGSI view compares API names in all lowercase letters(querycontext, contextentities).

Secondly,in plugin.py "setup_template_variables" method self.get_proxified_ngsi_url(data_dict) is called only in the case of different-domain and does not works properly in case of same-domain. Thus, I have provided a fix for it.

When the query API was entered in the following form as shown below on CKAN, the result was not displayed

1) /v1/queryContext
2) /v1/contextEntities

Orion can handle both uppercase and lowercase letters(queryContext, contextEntities), but NGSI view can handle in lowercase letters only.
NGSI view compares API names in all lowercase letters(querycontext, contextentities).

Also,in else part of function "setup_template_variables"  - self.get_proxified_ngsi_url(data_dict) is called only in the case of different-domain and does not works properly in case of same-domain.
When the query API was entered in the following form as shown below on CKAN, the result was not displayed

1) /v1/queryContext
2) /v1/contextEntities

Orion can handle both uppercase and lowercase letters(queryContext, contextEntities), but NGSI view can handle in lowercase letters only.
NGSI view compares API names in all lowercase letters(querycontext, contextentities).
When the query API was entered in the following form as shown below on CKAN, the result was not displayed

1) /v1/queryContext
2) /v1/contextEntities

Orion can handle both uppercase and lowercase letters(queryContext, contextEntities), but NGSI view can handle in lowercase letters only.
NGSI view compares API names in all lowercase letters(querycontext, contextentities).
@coveralls
Copy link

coveralls commented Aug 31, 2018

Pull Request Test Coverage Report for Build 85

  • 2 of 3 (66.67%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 83.929%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ckanext/right_time_context/plugin.py 1 2 50.0%
Totals Coverage Status
Change from base Build 80: 0.2%
Covered Lines: 329
Relevant Lines: 392

💛 - Coveralls

@aarranz aarranz self-requested a review September 12, 2018 09:24
Copy link
Member

@aarranz aarranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @iamarnavgarg,

LGTM, so thanks you very much for your contribution!

@aarranz aarranz merged commit f97934a into conwetlab:master Sep 12, 2018
@aarranz aarranz mentioned this pull request Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants