feat: add not-odoo command#3
Merged
Merged
Conversation
Contributor
|
can you please also enable publish_to_pypi, see https://github.com/trobz/trobz-python-template/blob/main/template/%7B%25%20if%20enable_github_action%20%25%7D.github%7B%25%20endif%25%7D/workflows/release.yaml.jinja#L49C7-L49C22 |
…, and procedures Shows non-Odoo database objects not managed by Odoo: - Views not tracked in ir_model - Triggers (Odoo never creates triggers natively) - Custom functions (extension-provided functions like crosstab/dblink excluded) - Stored procedures (PostgreSQL 11+ prokind='p') Supports text, json, and prometheus output formats.
Add PyPI publish job to release workflow per template flag. Addresses PR #3 review comment from @nilshamerlinck.
a59ecd2 to
5f0447e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
odoo-db not-odoo <db>command detects non-Odoo database objectspg_viewsbut not tracked inir_modelcrosstab,dblink, etc.) viapg_dependprokind = 'p')text,json, andprometheusoutput formatsMotivation
During migrations (e.g. tuico), databases accumulate custom SQL objects outside Odoo's ORM. This command surfaces them so they can be reviewed before migration.
Test plan
odoo-db not-odoo <db>on a clean Odoo DB → only showsqueue_job_notifyif queue_job installedodoo-db --output-format json not-odoo <db>→ valid JSON withviews,triggers,functions,procedureskeysodoo-db --output-format prometheus not-odoo <db>→ 4 metrics emitted