jpbullalayao / jpbullalayao/sendbird-python
Refactor usage of http_methods.HTTP_METHOD_<...>
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Right now, there is a lot of this in the code base:
http_methods.HTTP_METHOD_POST
http_methods.HTTP_METHOD_PUT
http_methods.HTTP_METHOD_GET
http_methods.HTTP_METHOD_DELETE
The HTTP_METHOD_ prefix of each constant is redundant because we import the package http_methods when referencing each constant. We can achieve the same functionality in a more concise syntax by doing the following instead:
http_methods.POST
http_methods.PUT
http_methods.GET
http_methods.DELETE
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the codebase for references to http_methods.HTTP_METHOD_POST, HTTP_METHOD_PUT, HTTP_METHOD_GET, and HTTP_METHOD_DELETE. Replace those redundant constant names with the corresponding shorter names, then run the repository's available checks to confirm the wrapper still behaves as before.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100