-
Notifications
You must be signed in to change notification settings - Fork 41
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-1800] Set priority #697
Conversation
IO-1800 Core: Edit items: Set priority
|
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.
Nothing blocking
api_client: ClientCore, | ||
team_slug: str, | ||
priority: int, | ||
filters: Optional[Dict[str, UnknownType]] = None, |
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.
This is not blocking at all but interested here on your thoughts on
filters: Optional[...] = None
vs filters: ... = {}
Is it more pythonic to assume None's or empty objects? The former does tend to lead to requiring more typecheck guards to satisfy mypy/pylance with like assert filters is not None
etc, which does feel more verbose than required sometimes.
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.
but obviously, it is a bit more clear that filters isn't required via the Optional[...] = None
approach
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.
Nah, good point, I like the default in this backend code, will take this suggestion
This reverts commit 21cbfe0.
Problem
No current access to setting priority of items
Solution
Implemented priority setter.
Changelog
Priority setting method in core
Tests