assets/origin-search: Resolve swh PID only when required
When a search query does not look like a PID, do not try to resolve it by
sending a request to the dedicated endpoint and directly search for origins.
|Iamshankhadeep||Feb 5 2020, 5:36 PM|
|Iamshankhadeep||Feb 5 2020, 5:59 PM|
|Build 15579: Cypress tests for swh-web commits||Jenkins|
|Build 15578: test-and-build||Jenkins|