Skip to content

regenerate parts database not clearing part search cache #3614

@mMerlin

Description

@mMerlin

Current Behaviour

After changing parts library path, and regenerating parts database, part search errors with unable to find parts, referencing parts from the previous parts library.

test library 04
not found
click OK

Fritzing remembered the previous search criteria and it is still in the input box. This results in the Unable to find popup with the part names and paths pointing to the test parts library. Clicking OK on the popup, and executing the search clears the error. It looks like the previous search results are being remembered, then the initial parts view update fails because the parts are not in the freshly regenerated database.

This is using flatpak, but looks like an application code issue, not anything to do with the running environment.

Build:
Version 0.9.4 (CD-498 2019-12-01) 64 [Qt 5.13.2]

Operating System:
Fedora 31 Workstation
Flatpak 1.4.3
org.fritzing.Fritzing
Commit: c595162a1d06f01eab9b66092c7ca68518974b9887295cd59950c439bfba3a72

Steps to reproduce:

  • start Fritzing application with --parts pointing to my test repository
  • do Help ¦ Check for updates… to verify I have the correct parts library
  • select Breadboard view
  • do Part ¦ Regenerate part database …
  • start Fritzing application with same --parts path
  • do Help ¦ Check for updates… to verify I have the correct parts library
  • click find and search for my parts
  • place and test my parts
  • exit Fritzing
  • start Fritzing application with --parts pointing to my regular repository
  • do Help ¦ Check for updates… to verify I have the correct parts library
  • select Breadboard view
  • do Part ¦ Regenerate part database …
  • start Fritzing application with same --parts path
  • do Help ¦ Check for updates… to verify I have the correct parts library
  • click the find icon in the parts view

Expected Behaviour

The search results from the previous library should be cleared when regenerating parts database. Either the initial search should be blank, or it should just show the parts that match in the current database and library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions