Skip to content
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

Clone part button not cloning #829

Open
dominykasLi opened this issue Jan 10, 2025 · 3 comments
Open

Clone part button not cloning #829

dominykasLi opened this issue Jan 10, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@dominykasLi
Copy link

Describe the bug
I am adding SMD resistors en-masse. I clone the one resistor, rename it, then after saving and creating it, i clone the new part. The problem is, that sometimes, after clicking clone, changing the name and clicking save, it goes back to the part i was cloning. No new parts were created

To Reproduce

  1. Go to (http://192.168.1.15/en/part/183/info#tools)
  2. Click on Clone part
  3. Change name from "1,1kR resistor", to "1,2kR resistor"
  4. Click "Save changes".
  5. Sometimes it creates the part, sometimes it just goes back to (http://192.168.1.15/en/part/183/info#tools)

Expected behavior
Always create a new part

Screenshots
image
When it works:
image
When it does not, it just goes back to the original part. It does not say any message, especially, that it created a new part.

Server Side

  • Part-DB Version: Version: 1.14.4
  • PHP Version: one of the newest
  • Database Server one of the newest
  • I installed the server on my old laptop a month ago. I am using local Wifi to connect to the website.

Desktop (please complete the following information):

  • OS: Win10
  • Browser chrome
  • Version newest
@dominykasLi dominykasLi added the bug Something isn't working label Jan 10, 2025
@dominykasLi
Copy link
Author

Today is the same thing, sometimes does not create a new part. Had server Htop open, looks like it is not my server:
image

@jbtronics
Copy link
Member

This is might be some weird edge case regarding local history and Hotwire Turbo. The problem is that i cannot really reproduce it, making it nearly impossible to debug.

@dominykasLi
Copy link
Author

This is might be some weird edge case regarding local history and Hotwire Turbo. The problem is that i cannot really reproduce it, making it nearly impossible to debug.

I did it like this:

  1. Have a component open (like an SMD resistor).
  2. Make a copy of it.
  3. Change the name of the component and save it.
  4. Open the new component.
  5. Then clone it again (repeat steps for like 15 times, as fast as possible.)

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

2 participants