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

#770 HTTP support #777

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

StephanMeijer
Copy link
Contributor

No description provided.

@StephanMeijer
Copy link
Contributor Author

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)
Copy link
Collaborator

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]
Copy link
Collaborator

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.

Copy link
Contributor Author

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. |
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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)
"""
Copy link
Collaborator

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.

Copy link
Contributor Author

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')
)
)
Copy link
Collaborator

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?

Copy link
Contributor Author

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'
Copy link
Collaborator

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?

Copy link
Contributor Author

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.
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true

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