Skip to content

[FIX] *: Fix auto-import issue#8522

Closed
rrahir wants to merge 1 commit intomasterfrom
master-fix-autoimport-rar
Closed

[FIX] *: Fix auto-import issue#8522
rrahir wants to merge 1 commit intomasterfrom
master-fix-autoimport-rar

Conversation

@rrahir
Copy link
Copy Markdown
Collaborator

@rrahir rrahir commented Apr 30, 2026

With the removal of several index files, the typescript engine tends to suggest imports from the root file of the project "src/index.ts" which unfortunately increases the risks of circular dependencies.

This revision tweaks the TS server configuration to ignore that file from the autoImport tree. It also removes the current references to that file to prevent future potential circular dependencies issues.

Task: 0

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented Apr 30, 2026

Pull request status dashboard

Comment on lines +6 to +7
import { Command } from "../../../../../types/commands";
import { UID } from "../../../../../types/misc";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it would better if there were more ../../../../.. because more is better 🙃

@rrahir rrahir force-pushed the master-fix-autoimport-rar branch from d1e2b8b to bacabbb Compare April 30, 2026 08:38
With the removal of several index files, the typescript engine tends to
suggest imports from the root file of the project "src/index.ts" which
unfortunately increases the risks of circular dependencies.

This revision tweaks the TS server configuration to ignore that file
from the autoImport tree. It also removes the current references to that
file to prevent future potential circular dependencies issues.

Task: 0
@rrahir rrahir force-pushed the master-fix-autoimport-rar branch from bacabbb to ab0db1b Compare April 30, 2026 08:48
@pro-odoo
Copy link
Copy Markdown
Collaborator

robodoo r+

robodoo pushed a commit that referenced this pull request Apr 30, 2026
With the removal of several index files, the typescript engine tends to
suggest imports from the root file of the project "src/index.ts" which
unfortunately increases the risks of circular dependencies.

This revision tweaks the TS server configuration to ignore that file
from the autoImport tree. It also removes the current references to that
file to prevent future potential circular dependencies issues.

closes #8522

Task: 0
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
@robodoo robodoo added the 19.4 label Apr 30, 2026
@robodoo robodoo closed this Apr 30, 2026
rrahir added a commit that referenced this pull request Apr 30, 2026
added the alias @src to limit kilometric relative imports.
See #8522 (comment)

Task: 0
robodoo pushed a commit that referenced this pull request Apr 30, 2026
added the alias @src to limit kilometric relative imports.
See #8522 (comment)

closes #8523

Task: 0
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
robodoo pushed a commit that referenced this pull request Apr 30, 2026
Misap occured in  #8522 (apparently a branch rebase issue...)

closes #8525

Task: 0
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants