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 model parsing #406

Merged
merged 31 commits into from
Apr 25, 2019
Merged

Refactor model parsing #406

merged 31 commits into from
Apr 25, 2019

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Mar 7, 2019

Move parsing code out from primarily _util.py, _graphql.py and Client._parseMessage and into the different models.

Breaking changes:

  • Remove graphql.py (though graphql_queries_to_json, graphql_response_to_json and GraphQL are still exported globally)
  • Remove utils.enum_extend_if_invalid, utils.get_emojisize_from_tags, utils.LIKES and utils.GENDERS
  • Plan.going, Plan.declined and Plan.invited are now shortcut accessors to Plan.guests, which means you can't set them anymore! (This change should probably have been done in a separate PR... Sorry 😉).

But all of that was undocumented code/undefined behaviour, so it probably wasn't widely used. I will bump the minor version number before releasing this, though!

@madsmtm madsmtm self-assigned this Mar 7, 2019
@madsmtm madsmtm marked this pull request as ready for review March 10, 2019 19:46
@madsmtm madsmtm changed the base branch from private-api to master April 17, 2019 19:16
@madsmtm
Copy link
Member Author

madsmtm commented Apr 17, 2019

Status: This is fairly done, but since I've just released v1.6.5, I'll wait a week or so before merging this into master (in case we have to do some hotfixes)

@madsmtm madsmtm merged commit 61502ed into master Apr 25, 2019
@madsmtm madsmtm deleted the refactor-model-parsing branch May 8, 2019 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant