Skip to content

pg_log.py: remove duplicate SETPGLOG, drop PG* env var prefix; bump v… - #116

Merged
zaihuaji merged 1 commit into
mainfrom
hua-work-common
Aug 13, 2026
Merged

zaihuaji merged 1 commit into
mainfrom
hua-work-common

Conversation

@zaihuaji

Copy link
Copy Markdown
Collaborator

…ersion to 3.0.7

Commit 28ade60 added a second SETPGLOG(self, key, default) near the top of class PgLOG, unaware of the existing SETPGLOG(self, name, value='') defined later in the class. Python kept the later definition, so the added one was dead code and its PGCOMMONUSER/PGADMINUSER contract never took effect.

Remove the dead definition and correct the two comments that documented the non-existent PG* prefix. COMMONUSER/ADMINUSER are read from the bare-named environment variables, consistent with every other key in the class. PgLOG.py is intentionally left unchanged.

…ersion to 3.0.7

Commit 28ade60 added a second SETPGLOG(self, key, default) near the top of
class PgLOG, unaware of the existing SETPGLOG(self, name, value='') defined
later in the class. Python kept the later definition, so the added one was
dead code and its PGCOMMONUSER/PGADMINUSER contract never took effect.

Remove the dead definition and correct the two comments that documented the
non-existent PG* prefix. COMMONUSER/ADMINUSER are read from the bare-named
environment variables, consistent with every other key in the class.
PgLOG.py is intentionally left unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 13, 2026 13:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a dead/duplicated SETPGLOG method definition in pg_log.py (so only the intended implementation remains), updates comments to reflect that COMMONUSER/ADMINUSER are read from bare environment variable names (not PG*-prefixed), and bumps the project version.

Changes:

  • Remove the duplicate (dead) SETPGLOG(self, key, default) definition from PgLOG.
  • Update comments/documentation in pg_log.py to reference COMMONUSER / ADMINUSER env vars (no PG prefix).
  • Bump package version in pyproject.toml to 3.0.7.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/rda_python_common/pg_log.py Removes dead duplicate method and corrects env-var prefix comments for COMMONUSER/ADMINUSER.
pyproject.toml Bumps project version to 3.0.7.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pyproject.toml
[project]
name = "rda_python_common"
version = "3.0.6"
version = "3.0.7"
@zaihuaji
zaihuaji merged commit 8155a7d into main Aug 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants