Issue between endpoint_route_handler and database_cleanup

Open
#120 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python
Domain
database

Research direction

The issue reports that the database_cleanup step drops the endpoint_route table because it is not declared as an Odoo model. Start by reading how the module declares its models and how database_cleanup decides which tables to remove, then check the maintainer's earlier change that introduced endpoint_route. Done means either a decision from the maintainers on whether endpoint_route should be protected, or a patch that keeps the table while hiding it from users. Agree the approach in the thread before coding.

Written by the indexing model from the issue text.

Description

bug

After a major Database migration, I decided to pass database_cleanup to remove fields and unnecessary models.

However, I found that the system deleted endpoint_route table because it is not defined as an odoo model

@simahawk as you did the change, there is a reason for not using Odoo tables? Can I make a change to include this table where users will not be able to access?

Dominant language
Python
Stars
49
Forks
124
Avg merge
4d 13h
Merged PRs (30d)
11

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OCA/web-api

All issues in OCA/web-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.