Skip to content

Problem Adding and Editing Parts in Large Projects #911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
T0b121 opened this issue Apr 15, 2025 · 0 comments
Open

Problem Adding and Editing Parts in Large Projects #911

T0b121 opened this issue Apr 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@T0b121
Copy link

T0b121 commented Apr 15, 2025

Describe the bug
When adding parts to a project in Part-DB, an error occurs after a certain number of entries. The issue manifests in the following scenarios:

  1. Adding Parts: After a certain number of parts (tested in increments of 100 from 100 to 1000), no further parts can be added.
  2. Editing Projects: After a certain number of parts (e.g., 200), the project can no longer be moved or edited. The error "CSRF token is invalid" occurs.
  3. Moving Projects: When moving projects to another folder, the part names are deleted, and the error "CSRF token is invalid" occurs.
  4. Importing Parts: When importing parts into projects with 600 or more items, an error occurs. The projects can be viewed in the project tab but cannot be edited via the edit tab.
  5. Demo Website: The same error occurs on the demo website (https://demo.part-db.de/en/project/187/edit#bom) when editing a project with a large number of parts.

To Reproduce
Problem with Edit of a Project

  1. Create a new project in Part-DB.
  2. Import KiCAD BOM with many parts (attached are BOM with a multiple of 100: 100, 200, 300, ..., 1000).
  3. Attempt to add more parts, move Project ore edit it over all when it has 200 or more parts.
    Edit Page is not more able to open
  4. Import parts into a project with 600 or more items.

Expected behavior

  • Parts should be added without issues, regardless of the number.
  • Projects should be editable and movable, regardless of the number of parts.
  • Parts import should work regardless of the number of items in the project.
  • The demo website should function correctly when editing projects with a large number of parts.

Screenshots

  • Image 1_Project with 200 Parts befor move.png Image
  • Image 2_Project with 200 Parts after move.png Image
  • Image 3_Open Edit from Project with 600 Parts.png Image

Server Side

  • Docker 20.10.24+dfsg1
    • Part-DB Version: [1.17.0]
    • Database Server [MariaDB Community 11.7.2]

Desktop:

  • OS: [Windows 11]
  • Browser [Edge]
  • Version [135.0.3179.54 64-Bit]

Additional context
PartDB config
PartDB setting.zip

@T0b121 T0b121 added the bug Something isn't working label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant