pulp / pulp/pulpcore

Document actual aiohttp defaults for remote timeouts

Open
#3,067 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Description

The help strings for different remote timeout fields just says that it uses aiohttp's defaults. Having to find and dig through aiohttp's docs and code was painful and not a very user friendly experience. I imagine some users may not even know what aiohttp even is. However, it seems that aiohttp defines DEFAULT_TIMEOUT that could be used to document the actual defaults:

>>> from aiohttp.client import DEFAULT_TIMEOUT
>>> DEFAULT_TIMEOUT
ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=None)

Contributor guide

Open the contributing guide

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

Start in pulpcore/app/serializers/repository.py around lines 171-206, where the remote timeout help strings refer users to aiohttp's defaults. Check aiohttp.client.DEFAULT_TIMEOUT for the documented values, then update those help strings and verify each remote timeout field states its actual default.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.