jpbullalayao / jpbullalayao/sendbird-python

Refactor usage of http_methods.HTTP_METHOD_<...>

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.