This issue is reserved for someone who has never had a pull request merged on GitHub before. If you have contributed before, please leave it — the roadmap has plenty of other work.
You are deleting one line. The point is to walk you through the process once.
The problem
moon_engine.py defines a constant on the Engine class:
Nothing reads it. Searching the whole repository — every .py and every .js file — finds exactly one occurrence, which is the definition itself.
It is left over from an earlier design. The log ring is bounded by collections.deque(maxlen=6000) in __init__, which is the limit that actually applies, so this constant is not even the real number. Leaving it there suggests a cap that does not exist.
The change
File: moon_engine.py
Delete the line _LOG_MAX_LINES = 2000 and the blank line that follows it, so that _get() is followed directly by log().
Please do not reformat or touch anything else in the file — a pull request that changes things the issue did not ask for gets sent back, even when the extra changes are harmless.
How to check you were right
Before you delete it, confirm for yourself that nothing uses it. From the repository folder:
grep -rn "_LOG_MAX_LINES" .
You should see exactly one line of output. Say in your pull request that you ran this and what it showed — checking the claim rather than trusting the issue is exactly the habit that matters here, and it has caught mistakes in my own issues before.
How to do it, step by step
- Click Fork at the top right of this repository.
- In your copy, open
moon_engine.py and click the pencil icon to edit.
- Find
_LOG_MAX_LINES = 2000, delete that line and the empty line under it.
- Under Commit changes, write something like
cleanup: drop the unused _LOG_MAX_LINES constant, then Propose changes.
- Click Create pull request, write
Closes #80, and submit.
CI will byte-compile the file and run the test suite automatically. If something goes red, say so here — that is normal and it is not a problem.
Before you start
Comment here saying you are taking it. Then go ahead; no need to wait for a reply.
This issue is reserved for someone who has never had a pull request merged on GitHub before. If you have contributed before, please leave it — the roadmap has plenty of other work.
You are deleting one line. The point is to walk you through the process once.
The problem
moon_engine.pydefines a constant on theEngineclass:Nothing reads it. Searching the whole repository — every
.pyand every.jsfile — finds exactly one occurrence, which is the definition itself.It is left over from an earlier design. The log ring is bounded by
collections.deque(maxlen=6000)in__init__, which is the limit that actually applies, so this constant is not even the real number. Leaving it there suggests a cap that does not exist.The change
File:
moon_engine.pyDelete the line
_LOG_MAX_LINES = 2000and the blank line that follows it, so that_get()is followed directly bylog().Please do not reformat or touch anything else in the file — a pull request that changes things the issue did not ask for gets sent back, even when the extra changes are harmless.
How to check you were right
Before you delete it, confirm for yourself that nothing uses it. From the repository folder:
You should see exactly one line of output. Say in your pull request that you ran this and what it showed — checking the claim rather than trusting the issue is exactly the habit that matters here, and it has caught mistakes in my own issues before.
How to do it, step by step
moon_engine.pyand click the pencil icon to edit._LOG_MAX_LINES = 2000, delete that line and the empty line under it.cleanup: drop the unused _LOG_MAX_LINES constant, then Propose changes.Closes #80, and submit.CI will byte-compile the file and run the test suite automatically. If something goes red, say so here — that is normal and it is not a problem.
Before you start
Comment here saying you are taking it. Then go ahead; no need to wait for a reply.