Skip to content

feat: release v1.1.0#1

Merged
nilshamerlinck merged 1 commit into
mainfrom
feat/v1.1.0
May 15, 2026
Merged

feat: release v1.1.0#1
nilshamerlinck merged 1 commit into
mainfrom
feat/v1.1.0

Conversation

@xaviedoanhduy
Copy link
Copy Markdown
Member

Summary

  • Implement all CLI commands: list, modules, crons, jobs, users, locks
  • Unix socket connection via psycopg3 (peer auth, no credentials needed)
  • Output formats: text (rich table), json, prometheus
  • Logging with --log-level / --log-file, auto-created logs directory
  • Friendly error messages for DB connection failures
  • Rich table output with borders and bold cyan headers

Test plan

  • odoo-db list — shows all local Odoo DBs with version and neutralized status
  • odoo-db list --verbose — adds module count and user count columns
  • odoo-db modules <db> — lists installed modules with version
  • odoo-db crons <db> — lists active scheduled actions
  • odoo-db jobs <db> — shows queue job counts by state (or message if not installed)
  • odoo-db users <db> — lists active users with connection state
  • odoo-db locks <db> — shows active DB locks
  • --output-format json and prometheus work on all commands
  • make check passes (lint, format, type-check)

@xaviedoanhduy
Copy link
Copy Markdown
Member Author

@nilshamerlinck, should I start on v2

@nilshamerlinck
Copy link
Copy Markdown
Contributor

yes you can go ahead with odoo-db audit in another PR
but can you please update repo with enable_github_action first so that we could validate the release on pypi? (configuration is ready)

Comment thread odoo_db/db.py Outdated
Implement odoo-db CLI for local Odoo database management.

Commands: list, modules, crons, jobs, users, locks
- list: all local Odoo DBs with version, neutralized status; --verbose adds module/user count
- modules: installed modules with version
- crons: active scheduled actions
- jobs: queue job counts by state
- users: active users with online/away/offline status (via bus_presence or mail_presence)
- locks: active DB locks with blocked/blocking PIDs and queries

Features:
- psycopg3 Unix socket connection (peer auth, no credentials)
- Output formats: text (rich table with borders), json, prometheus
- Logging: --log-level/--log-file, auto-created logs dir
- Friendly error messages for DB connection failures
- GitHub Actions: CI tests (pytest), pre-commit, semantic release to PyPI
- Smoke tests for CLI help commands
@nilshamerlinck nilshamerlinck merged commit e73c157 into main May 15, 2026
5 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