-
Notifications
You must be signed in to change notification settings - Fork 40
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
[IO-1754] Darwin-py v2 Dogfooding refactors #670
Conversation
IO-1754 Renaming Refactor
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Largely straightforward, one comment to consider, but likely not act on
@@ -0,0 +1,4 @@ | |||
from darwin.future.core.datasets.create_dataset import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, I tend to do these specifically, e.g.
from module import Thing1, Thing2, Thing3
as it can avoid dep issues later, with name clashes and such.
I'd leave it for now unless you have good chance to fix it.
@@ -0,0 +1,5 @@ | |||
# Can't import * in this module because of a circular import problem specific to teams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specific import might fix this, but again, don't break your back on it.
|
||
|
||
def get_team_raw(session: Session, url: str) -> JSONType: | ||
"""Returns the team with the given slug in raw JSON format""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll ticket including returns and params in doc blocks, but leave for now
* client refactor * item object rename * delete/create classmethods * core item rename * meta object rename * Client naming consistency * remove useless asserts * remove useless asserts * collect refactor * mypy cleanup * streamlining * expanding on exceptions * __init__.py backend import changes * team backend restructure for circular reference * comment * changes to collect operation, now invalidates cache if adding to query * restructure exceptions module
Problem
Dogfooding of darwin-py v2 code revealed some streamlining and refactors to make
Solution
List of things changed
Changelog
Darwin py v2 futures module refactored for streamlined useage