Pages function does not work for search.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 40/100
Research direction
Start in ghapi/page.py at last_page(), then inspect the request flow around the missing recv_hdrs shown in ghapi/core.py. Reproduce the search example and verify that Pages can determine and concatenate search results without raising AttributeError.
Written by the indexing model from the issue text.
Description
Pages for search does not work:
gh = GhApi(token=gh_token)
search = pages(gh.search.code, gh.last_page(), '"test"').concat
Will yield the following error:
File "/Users/***/venv/lib/python3.9/site-packages/ghapi/page.py", line 57, in last_page
header = self.recv_hdrs.get('Link', '')
File "/Users/***/venv/lib/python3.9/site-packages/ghapi/core.py", line 124, in __getattr__
def __getattr__(self,k): return self.groups[k] if 'groups' in vars(self) and k in self.groups else stop(AttributeError(k))
File "/Users/***/venv/lib/python3.9/site-packages/fastcore/basics.py", line 205, in stop
raise e
AttributeError: recv_hdrs
- Dominant language
- Python
- Stars
- 687
- Forks
- 69
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Contributor guide
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.
More from AnswerDotAI/ghapi
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
AnswerDotAI/ghapi#158 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AnswerDotAI/ghapi#120 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
AnswerDotAI/ghapi#208 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
AnswerDotAI/ghapi#201 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
AnswerDotAI/ghapi#186 ·
All issues in AnswerDotAI/ghapi
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stephrobert/dsoxlab#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sublimehq/package_control#1780 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nwg-piotr/nwg-displays#145 ·