fix: show an int PORT as its digits in the duplicate-database refusal
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start with databases_problems in neolith/_databases.py, which the reproduction calls directly. The refusal text is built from the PORT value, and the reproduction shows an int port being rejected instead of rendered. Check how the port is validated and formatted there, then run the reproduction snippet. Done when billing and default report on :5432 for an int PORT and existing string-port cases still produce the same messages.
Written by the indexing model from the issue text.
Description
Reproduction
On release/0.1.0a4 (07b71c6):
from neolith._databases import databases_problems
s = {"ENGINE": "django.db.backends.postgresql", "NAME": "n", "PORT": 5432}
databases_problems({"default": s, "billing": dict(s)}, ["billing"])
gives ['databases default and billing: both name django.db.backends.postgresql n on :a value of type int'].
Expected
An exact int port is admitted, so the refusal shows it as its digits: ... n on :5432.
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- Avg merge
- 6h 34m
- Merged PRs (30d)
- 108
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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 stack314/django-neolith
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#180 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
stack314/django-neolith#177 ·
Maintainers usually reply within 1 day
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#151 · 1 comment ·
Maintainers usually reply within 1 day
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#141 ·
Maintainers usually reply within 1 day
-
fix: refuse an unhashable HOST or PORT instead of raising TypeErrorPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
stack314/django-neolith#140 · 1 comment ·
Maintainers usually reply within 1 day
All issues in stack314/django-neolith
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug (unverified)
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
scikit-hep/awkward#4581 · 1 comment ·
Maintainers usually reply within 1 day
-
ci-cd priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
LearningCircuit/local-deep-research#9163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
supersonic-lumina/ENM156#50 ·
Maintainers usually reply within 2 days