-
Notifications
You must be signed in to change notification settings - Fork 209
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
#770 HTTP support #777
base: develop
Are you sure you want to change the base?
#770 HTTP support #777
Conversation
d2eca30
to
5b3ed16
Compare
5b3ed16
to
b8f4027
Compare
Please merge #778 first/ |
@@ -72,3 +72,4 @@ Contributors | |||
- BinaryBabel (contributed support for YouTrack) | |||
- Matthew Cengia (contributed extra support for Trello) | |||
- Andrew Demas (contributed support for PivotalTracker) | |||
- Stephan Meijer (contributed support for JIRA, Zepel, GMail and HTTP) |
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.
The context of the way we've been using this list suggests that you were the originall/primary contributor of the gmail and jira services.
|
||
.. code:: bash | ||
|
||
pip install bugwarrior[http] |
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.
There don't appear to be any extra dependencies required for this service.
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.
true
++++++++++++++ | ||
|
||
+--------------------------------+---------------------------------------------------------------------------------+ | ||
| ``http.method`` | HTTP method to use, such as GET or POST. | |
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.
Why support methods other than GET? We're very rigid about the body format we accept so why be flexible about the http methd?
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.
Body format is harder to make flexible, I would have done so if easily possible.
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 what other http method than GET
could possibly be appropriate for fetching an array of tasks?
|
||
self.assertTrue(MAX_TASK in issues) | ||
self.assertEqual(issues[1], MIN_TASK) | ||
""" |
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 comment block appears to be accidentally committed.
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.
oops
'uuid', | ||
self.extra.get('url') | ||
) | ||
) |
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.
Seems like the description field is a required return value by the http service so why do we need these fallbacks?
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.
true
|
||
|
||
class HttpService(IssueService): | ||
APPLICATION_NAME = 'Bugwarrior HTTP Service' |
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.
What is the APPLICATION_NAME attribute for?
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 don't know, will remove
} | ||
] | ||
|
||
Possibly other attributes such as annotations or priority will be implemented later on. |
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 think adding an explicit list of required keys to this section would be helpful.
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.
true
No description provided.