Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Conversation

h0m3us3r
Copy link

@h0m3us3r h0m3us3r commented Jan 1, 2021

TL;DR: Save OctoPart API credits by not auto-searching for empty names.

Currently, when the "Octopart..." button is pressed in the "Add Part" window, an automatic query is performed with the value of the "Name" field. This happens even if the user haven't inputted anything into the "Name" field yet, most likely with the intention of doing it in the "Octopart Search" window itself. This effectively wastes the partkeepr.octopart.limit number of credits on running an effectively useless query. Changes in this PR prevent auto-running empty queries (but do not prevent one from manually running them from the "Octopart Search" window itself by pressing "Enter" in case one might for some weird reason desire to).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant