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

Refactor schema graph #292

Merged
merged 118 commits into from May 16, 2019
Merged

Refactor schema graph #292

merged 118 commits into from May 16, 2019

Conversation

pmantica1
Copy link
Contributor

Major changes:

  • Added SchemaElement class hierarchy.
  • Added base connections for edges.
  • Removed connection properties.
  • Made the SchemaGraph use GraphQL's type system.
  • Refactored the SchemaGraph constructor.

pmantica1 and others added 30 commits May 1, 2019 15:21
* Refactored SchemaElement to use a class hierarchy

* Correctly set metaclass in a python2/python3 compatible way

* Nit

* Removed abstractmethod decorator from init method

* Changed Vertex to VertexType and Edge to EdgeType

* Added unicode compatibility decorator

* Fixed class name typos

* Use issubclass instead of class equality

* Added generic string representation

* Changed kind to kind_cls

* Fixed args bug

* Removed __str__ overrides

* Added freeze method for all SchemaElements

* Made SchemaElement and GraphElement classes truly abstract

* Fixed linter errors

* Added comment explaining why we make the init method abstract
* Added _try_get_exact_link_from_superclasses

* Created _is_abstract method

* Seperated get class fields into its own function

* Created _get_element_properties method

* Removed allowed_duplicate_properties variable

* Nits

* Nits
* Decomposed _get_element_properties into two functions

* Use funcy split instead of partition function

* Specified funcy version
* Fixed stack overflow links

* Fixed freeze documentation
* Removed _get_element_properties method

* Createdseperate setup function for each element kind
Sorted imports

Fixed linter errors
pmantica1 and others added 27 commits May 10, 2019 15:39
…ered-class-collection-properties

Add warning for filtered class collection properties
…h-class-collections

Refactor schema graph class collections
…h-constructor

Refactor schema graph constructor
* Allow connections for NonGraphElements

* Renamed misleading function
Added missing in_connections and out_connections to the printed fields
@bojanserafimov bojanserafimov merged commit af54f00 into master May 16, 2019
@bojanserafimov bojanserafimov deleted the refactor-schema-graph branch May 16, 2019 20:12
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

2 participants