Skip to content

Conversation

@gustavodemorais
Copy link
Contributor

@gustavodemorais gustavodemorais commented Mar 2, 2019

Fixes # 86

Checklist

  • My branch is up-to-date with upstream/develop branch.
  • Everything works and tested for Python 3.5.2 and above.

Description

Setting Redis version as 2 because of breaking change in Redis 3

Change logs

Fixed

redis.exceptions.DataError: Invalid input of type: 'dict'. Convert to a byte, string or number first.
(redis_connection.set("EntryPoint", entrypoint_properties)...)

Set Redis version because of backwards incompatibility from Redis 2 to Redis 3, which now only accepts values as bytes, strings or numbers.

de-sh and others added 11 commits February 24, 2019 15:57
Inserting Hydra Core and Open Parser since Hydrus ported Hydraspec
Adding import to hydra_python_core after hydraspec porting
Backwards incompatibility from Redis 2 to Redis 3, which now only accepts values as bytes, strings or numbers
Changing this test slightly so the "requirements.txt" consists of everything needed to run and it won't fail because of the requirements in the current hydrus master branch.
@gustavodemorais gustavodemorais changed the title Porting doc_maker from hydrus.hydraspec to hydra_python_core Porting doc_maker from.hydraspec and fixing Redis breaking change Mar 2, 2019
The goal of Porting the doc writer was so that the agent supposed to depend only on hydra_python_core which is now possible.
Copy link
Contributor

@shravandoda shravandoda left a comment

Choose a reason for hiding this comment

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

I don't think we need doc_maker in hydra_graph. But apart from that it looks good

Use 'hydra_python_core' module in place of 'hydrus.hydraspec'
import json
from hydrus.hydraspec import doc_maker
import hydra_python_core
from hydra_python_core import doc_maker
Copy link
Member

Choose a reason for hiding this comment

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

Don't need both these imports. You can either import hydra_python_core and use hydra_python_core.doc_maker or import dic_maker directly. I don't see the reason to do both

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. Already fixed and re-based according to @de-sh commit.

@de-sh
Copy link
Contributor

de-sh commented Mar 3, 2019

Hey @Guttz, you may consider re-basing to the latest commit merged into develop b952f19

@gustavodemorais gustavodemorais changed the title Porting doc_maker from.hydraspec and fixing Redis breaking change Fixing Redis breaking change Mar 3, 2019
@gustavodemorais
Copy link
Contributor Author

Hey @Guttz, you may consider re-basing to the latest commit merged into develop b952f19

Done @de-sh ! Re-based and proposed only the different changes.

@xadahiya xadahiya merged commit f0caf17 into HTTP-APIs:develop Mar 4, 2019
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.

4 participants