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

Octopart v4 API #1150

Merged
merged 10 commits into from
Nov 7, 2020
Merged

Octopart v4 API #1150

merged 10 commits into from
Nov 7, 2020

Conversation

sibbi77
Copy link
Contributor

@sibbi77 sibbi77 commented Aug 9, 2020

This PR updates the existing Octopart component for the new API.
It optionally uses a local redis server to cache the result set from Octopart.

What does not work:

  • no datasheets (only one, the best)
  • no compliance documents

@mutr
Copy link

mutr commented Sep 5, 2020

I'd like to see it merged. Is it still WIP?

@sibbi77
Copy link
Contributor Author

sibbi77 commented Sep 7, 2020

I thought I'd the time to finish the document import... Maybe later. Please go on with the merge.

@sibbi77 sibbi77 changed the title Octopart v4 API [WIP] Octopart v4 API Sep 7, 2020
@dromer
Copy link
Contributor

dromer commented Sep 19, 2020

Hey, this sounds neat! I was bugging out recently with the apparent broken octopart.

Most changes seem pretty straightforward, I'm wondering a bit about the predisclient though? I read that predis is php7.2, but we are stuck on 7.0-7.1 atm. How are you using (p)redis here exactly? (as a kind of cache for the octopart api calls?)

@sibbi77
Copy link
Contributor Author

sibbi77 commented Sep 19, 2020

I used the docker image mhubig/partkeepr to develop this PR, which uses php-7.1. The predis is already part of PartKeepr's dependencies and seems to work just fine.

I'm caching the query answers to import a certain device without requesting it again (to reduce the number of api calls, which are limited per month). It should work fine without a redis server, but will then require more api calls.

@chrissnow
Copy link

chrissnow commented Sep 27, 2020

@sibbi77 Case sizes seem to be dropping leading "0" so 0402 becomes 402, looks like they are being stored as numeric rather than text.

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 1, 2020

0402 is now considered a string in the fields "Case/Package", "Case Code (Imperial)" and "Case Code (Metric)".

@chrissnow
Copy link

@sibbi77 Just tried this but it made no difference, the git log shows your changes but it's still the same, I did a pull then setup.
I also found the SI prefix issue today, wondered why I had units that had prefixes so metaparts didn't work properly!

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 2, 2020

be sure to execute php app/console assetic:dump to recompile/deploy the changed code. If you imported parts before the unit fix, you have to delete the extra units (e.g. µm, mW, ...). Then, empty the cache of your web browser (or use the private mode to be sure).

@chrissnow
Copy link

I did that and now case sizes and prefixes seem ok now, But parameters seem to not be completely consistent with the past API, So far I have noticed resistor tolerance as below
Old part pulled from V3
image
After an update
image
Clean pull
image

@dromer
Copy link
Contributor

dromer commented Oct 2, 2020

Definitely needs some better importing. And seems some values are outright missing?

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 3, 2020

Octopart has complete rewritten the API. The former unit concept is no longer available, only a display value (e.g. 100 µm) is provided and I try to recognize the value, unit, and SI prefix.
I'll have a look at the tolerance, but I guess that Octopart now just provides different parameters because of their consolidation effort.

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 3, 2020

have a look at https://octopart.com/mc00625w04021147k-multicomp-30314144?r=sp
You'll find exactly the values Octopart provides via the api. My PR correctly imports them.

@piotrkochan
Copy link

It does not work for me

image

@piotrkochan
Copy link

piotrkochan commented Oct 22, 2020

OK I had to change plan to free PRO and it works. Thank you!

@edit, no it doesn't work, when I click "Add data" I'm getting error:
image

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 23, 2020

which part do you try to add?

@piotrkochan
Copy link

@sibbi77 for example this one
image

{"id":"9255975","mpn":"LM317T","slug":"\/lm317t-texas+instruments-9255975","short_description":"LDO Regulator Pos 1.2V to 37V 1.5A 3-Pin(3+Tab) TO-220 Rail","counts":{"companion_products":0,"datasheets":21,"descriptions":5,"images":6,"reference_designs":6,"similar_parts":6,"specs":34},"manufacturer":{"name":"Texas Instruments"},"best_datasheet":{"name":"Official datasheet","url":"https:\/\/octopart.com\/click\/track?ct=datasheets&hlid=29979084&ppid=9255975&sid=370&sig=06071a9","credit_string":"Texas Instruments","credit_url":"http:\/\/ti.com","page_count":null,"mime_type":"text\/html"},"best_image":{"url":"https:\/\/sigma.octopart.com\/21381029\/image\/Texas-Instruments-LM317T.jpg"},"specs":[{"attribute":{"name":"Case\/Package","group":"Physical"},"display_value":"TO-220"},{"attribute":{"name":"Current Rating","group":"Technical"},"display_value":"1.5 A"},{"attribute":{"name":"Dropout Voltage","group":"Technical"},"display_value":"2 V"},{"attribute":{"name":"Height","group":"Dimensions"},"display_value":"4.7 mm"},{"attribute":{"name":"Lead Free","group":"Compliance"},"display_value":"Lead Free"},{"attribute":{"name":"Length","group":"Dimensions"},"display_value":"14.986 mm"},{"attribute":{"name":"Lifecycle Status","group":"Supply Chain"},"display_value":"NRND (Last Updated: 1 day ago)"},{"attribute":{"name":"Manufacturer Lifecycle Status","group":"Supply Chain"},"display_value":"NRND (Last Updated: 1 day ago)"},{"attribute":{"name":"Max Input Voltage","group":"Technical"},"display_value":"40 V"},{"attribute":{"name":"Max Operating Temperature","group":"Technical"},"display_value":"125 \u00b0C"},{"attribute":{"name":"Max Output Current","group":"Technical"},"display_value":"1.5 A"},{"attribute":{"name":"Max Output Voltage","group":"Technical"},"display_value":"37 V"},{"attribute":{"name":"Max Supply Voltage","group":"Technical"},"display_value":"40 V"},{"attribute":{"name":"Min Input Voltage","group":"Technical"},"display_value":"4.2 V"},{"attribute":{"name":"Min Operating Temperature","group":"Technical"},"display_value":"0 \u00b0C"},{"attribute":{"name":"Min Output Voltage","group":"Technical"},"display_value":"1.2 V"},{"attribute":{"name":"Min Supply Voltage","group":"Technical"},"display_value":"3 V"},{"attribute":{"name":"Mount","group":"Physical"},"display_value":"Through Hole"},{"attribute":{"name":"Number of Outputs","group":"Technical"},"display_value":"1"},{"attribute":{"name":"Number of Pins","group":"Physical"},"display_value":"3"},{"attribute":{"name":"Number of Regulators","group":"Technical"},"display_value":"1"},{"attribute":{"name":"Output Current","group":"Technical"},"display_value":"1.5 A"},{"attribute":{"name":"Output Type","group":"Technical"},"display_value":"Adjustable"},{"attribute":{"name":"Output Voltage","group":"Technical"},"display_value":"1.2 V"},{"attribute":{"name":"Polarity","group":"Technical"},"display_value":"Positive"},{"attribute":{"name":"Power Supply Rejection Ratio (PSRR)","group":"Technical"},"display_value":"80 dB"},{"attribute":{"name":"Radiation Hardening","group":"Compliance"},"display_value":"No"},{"attribute":{"name":"REACH SVHC","group":"Compliance"},"display_value":"No SVHC"},{"attribute":{"name":"RoHS","group":"Compliance"},"display_value":"Compliant"},{"attribute":{"name":"Schedule B","group":"Technical"},"display_value":"8542390000"},{"attribute":{"name":"Termination","group":"Technical"},"display_value":"Through Hole"},{"attribute":{"name":"Thickness","group":"Dimensions"},"display_value":"4.572 mm"},{"attribute":{"name":"Weight","group":"Physical"},"display_value":"2.299997 g"},{"attribute":{"name":"Width","group":"Dimensions"},"display_value":"10.16 mm"}],"document_collections":[{"name":"Texas Instruments","documents":[{"name":"Official datasheet","url":"https:\/\/octopart.com\/click\/track?ct=datasheets&hlid=29979084&ppid=9255975&sid=370&sig=06071a9","credit_string":"Texas Instruments","credit_url":"http:\/\/ti.com"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-12536959.pdf","credit_string":"Texas Instruments","credit_url":"http:\/\/ti.com"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-12983050.pdf","credit_string":"Texas Instruments","credit_url":"http:\/\/ti.com"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-16617096.pdf","credit_string":"Texas Instruments","credit_url":"http:\/\/ti.com"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-17317759.pdf","credit_string":"Texas Instruments","credit_url":"http:\/\/ti.com"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-21773236.pdf","credit_string":"Texas Instruments","credit_url":"http:\/\/ti.com"},{"name":"Technical Drawing","url":"https:\/\/sigma.octopart.com\/49253047\/technical_drawing\/Texas-Instruments-LM317T.pdf","credit_string":"Texas Instruments","credit_url":"http:\/\/ti.com"}]},{"name":"Verical","documents":[{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-10845457.pdf","credit_string":"Verical","credit_url":"http:\/\/www.verical.com"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-National-Semiconductor-datasheet-10030624.pdf","credit_string":"Verical","credit_url":"http:\/\/www.verical.com"}]},{"name":"element14 APAC","documents":[{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-37129307.pdf","credit_string":"element14 APAC","credit_url":"http:\/\/www.element14.com\/"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T.-Texas-Instruments-datasheet-56975760.pdf","credit_string":"element14 APAC","credit_url":"http:\/\/www.element14.com\/"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T.-Texas-Instruments-datasheet-65712997.pdf","credit_string":"element14 APAC","credit_url":"http:\/\/www.element14.com\/"}]},{"name":"National Semiconductor","documents":[{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-516468.pdf","credit_string":"National Semiconductor","credit_url":""},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-National-Semiconductor-datasheet-8480645.pdf","credit_string":"National Semiconductor","credit_url":""}]},{"name":"Upverter","documents":[{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-17727434.pdf","credit_string":"Upverter","credit_url":"https:\/\/upverter.com\/"}]},{"name":"Farnell","documents":[{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-100103620.pdf","credit_string":"Farnell","credit_url":"http:\/\/www.farnell.com\/"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-21076696.pdf","credit_string":"Farnell","credit_url":"http:\/\/www.farnell.com\/"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-National-Semiconductor-datasheet-508498.pdf","credit_string":"Farnell","credit_url":"http:\/\/www.farnell.com\/"}]},{"name":"Newark","documents":[{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-National-Semiconductor-datasheet-12716.pdf","credit_string":"Newark","credit_url":"http:\/\/www.newark.com"},{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-Texas-Instruments-datasheet-31978426.pdf","credit_string":"Newark","credit_url":"http:\/\/www.newark.com"}]},{"name":"Allied Electronics & Automation","documents":[{"name":"Datasheet","url":"https:\/\/datasheet.octopart.com\/LM317T-National-Semiconductor-datasheet-35719.pdf","credit_string":"Allied Electronics & Automation","credit_url":"http:\/\/alliedelec.com"}]},{"name":"Compliance Statements","documents":[{"name":"Conflict Mineral Statement","url":"http:\/\/sigma.octopart.com\/conflict_mineral_statement\/Texas-Instruments-company-63.pdf","credit_string":"","credit_url":""},{"name":"Reach Statement","url":"http:\/\/sigma.octopart.com\/reach_statement\/Texas-Instruments-company-64.pdf","credit_string":"","credit_url":""}]}],"descriptions":[{"credit_string":"Chip One Stop Global","text":"LDO Regulator Pos 1.2V to 37V 1.5A 3-Pin(3+Tab) TO-220 Rail"},{"credit_string":"Texas Instruments","text":"1.5-A, 40-V, adjustable linear voltage regulator 3-TO-220"},{"credit_string":"Component Sense","text":"IC, ADJ LINEAR REG, 1.2V TO 37V, TO-220"},{"credit_string":"IBS Electronics","text":"NSC LM317T 45\/TUBE Linear Regulators - Standard TO -220 1.5A ADJ VREG"},{"credit_string":"element14 APAC","text":"V REG ADJ +1.2\/37V, TO-220-3, 317; Primary Input Voltage:40V; Output Voltage Adjustable Range:1.2V to 37V; Dropout Voltage Vdo:2V; No. of Outputs:1; No. of Pins:3; Output Current:1.5A; Voltage Regulator Case Style:TO-220; Operating Temperature Range:0\u00b0C to +125\u00b0C; SVHC:No SVHC (15-Dec-2010); Adjustable Output Voltage Max:37V; Adjustable Output Voltage Min:1.2V; Base Number:317; IC Generic Number:317; Input Voltage Max:40V; Input Voltage Min:4.2V; Operating Temperature Max:125\u00b0C; Operating Temperature Min:0\u00b0C; Output Current Max:1.5A; Output Voltage Max:37V; Output Voltage Min:1.2V; Package \/ Case:TO-220; Supply Voltage Max:40V; Supply Voltage Min:3V; Termination Type:Through Hole; Voltage Regulator Type:Positive Adjustable"}],"cad":null,"reference_designs":[{"name":"Grid-tied Solar Micro Inverter with MPPT","url":"https:\/\/octopart.com\/click\/track?country=DE&ct=reference_designs&hlid=24548351&ppid=9255975&sid=370&sig=0eab329&ai4=447"},{"name":"Primary-Side Regulated Flyback w\/85-265VAC Input High Output Energy Storage Reference Design","url":"https:\/\/octopart.com\/click\/track?country=DE&ct=reference_designs&hlid=24858593&ppid=9255975&sid=370&sig=0874716&ai4=447"},{"name":"400V Input: 50W Output Multiple-Output Bias Supply Reference Design","url":"https:\/\/octopart.com\/click\/track?country=DE&ct=reference_designs&hlid=26173139&ppid=9255975&sid=370&sig=0a08319&ai4=447"},{"name":"Primary-Side Regulated Flyback w\/85-265VAC Input High Output Energy Storage Reference Design","url":"https:\/\/octopart.com\/click\/track?country=DE&ct=reference_designs&hlid=29979085&ppid=9255975&sid=370&sig=0974542&ai4=447"},{"name":"Grid-tied Solar Micro Inverter with MPPT","url":"https:\/\/octopart.com\/click\/track?country=DE&ct=reference_designs&hlid=29979086&ppid=9255975&sid=370&sig=016d4cc&ai4=447"},{"name":"400V Input: 50W Output Multiple-Output Bias Supply Reference Design","url":"https:\/\/octopart.com\/click\/track?country=DE&ct=reference_designs&hlid=29979087&ppid=9255975&sid=370&sig=01a0519&ai4=447"}],"sellers":[{"company":{"homepage_url":"http:\/\/www.digikey.com","is_verified":false,"name":"Digi-Key","slug":"digi-key"},"is_authorized":true,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=459&sig=0bb3149&vpid=57503447&ai4=447","inventory_level":662,"moq":1,"packaging":"Tube","prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.7028719999999997,"currency":"USD","price":2.01,"quantity":1},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.5266544,"currency":"USD","price":1.802,"quantity":10},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.44024,"currency":"USD","price":1.7,"quantity":25},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.152192,"currency":"USD","price":1.36,"quantity":100},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.008168,"currency":"USD","price":1.19,"quantity":250},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.9793631999999999,"currency":"USD","price":1.156,"quantity":500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.7777296,"currency":"USD","price":0.918,"quantity":1000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.7489248,"currency":"USD","price":0.884,"quantity":2500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.72012,"currency":"USD","price":0.85,"quantity":5000}],"sku":"LM317T-ND","updated":"2020-10-22T13:16:21Z"}]},{"company":{"homepage_url":"http:\/\/avnetexpress.avnet.com","is_verified":false,"name":"Avnet","slug":"avnet"},"is_authorized":true,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=5822&sig=040cf75&vpid=57485431&ai4=447","inventory_level":293,"moq":405,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.6561733439999999,"currency":"USD","price":0.77452,"quantity":405}],"sku":"LM317T","updated":"2020-10-22T04:27:55Z"}]},{"company":{"homepage_url":"http:\/\/www.arrow.com","is_verified":false,"name":"Arrow Electronics","slug":"arrow-electronics"},"is_authorized":true,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=1106&sig=0a94af0&vpid=473490028&ai4=447","inventory_level":949,"moq":45,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.8268671999999999,"currency":"USD","price":0.976,"quantity":45},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.7911153599999999,"currency":"USD","price":0.9338,"quantity":9000}],"sku":"LM317T","updated":"2020-10-23T06:18:40Z"},{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=1106&sig=03fa3e3&vpid=473490027&ai4=447","inventory_level":0,"moq":450,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.135248,"currency":"USD","price":1.34,"quantity":450},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.0911936,"currency":"USD","price":1.288,"quantity":4500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.82669776,"currency":"USD","price":0.9758,"quantity":45000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.67047408,"currency":"USD","price":0.7914,"quantity":225000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.6684408,"currency":"USD","price":0.789,"quantity":450000}],"sku":"LM317T","updated":"2020-10-22T15:32:18Z"},{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=1106&sig=0460e28&vpid=631808260&ai4=447","inventory_level":0,"moq":450,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.135248,"currency":"USD","price":1.34,"quantity":450},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.0962768,"currency":"USD","price":1.294,"quantity":4500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.8616023999999999,"currency":"USD","price":1.017,"quantity":45000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.72045888,"currency":"USD","price":0.8504,"quantity":225000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.71859504,"currency":"USD","price":0.8482,"quantity":450000}],"sku":"LM317T","updated":"2020-10-22T15:32:18Z"}]},{"company":{"homepage_url":"http:\/\/www.mouser.com","is_verified":false,"name":"Mouser","slug":"mouser"},"is_authorized":true,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=2401&sig=08343c0&vpid=57204582&ai4=447","inventory_level":428,"moq":1,"packaging":"Tube","prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.7028719999999997,"currency":"USD","price":2.01,"quantity":1},{"conversion_rate":1,"converted_currency":"EUR","converted_price":1.7,"currency":"EUR","price":1.7,"quantity":1},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.44024,"currency":"USD","price":1.7,"quantity":10},{"conversion_rate":1,"converted_currency":"EUR","converted_price":1.44,"currency":"EUR","price":1.44,"quantity":10},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.152192,"currency":"USD","price":1.36,"quantity":100},{"conversion_rate":1,"converted_currency":"EUR","converted_price":1.15,"currency":"EUR","price":1.15,"quantity":100},{"conversion_rate":1,"converted_currency":"EUR","converted_price":1.01,"currency":"EUR","price":1.01,"quantity":250},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.008168,"currency":"USD","price":1.19,"quantity":250},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.9827519999999998,"currency":"USD","price":1.16,"quantity":500},{"conversion_rate":1,"converted_currency":"EUR","converted_price":0.983,"currency":"EUR","price":0.983,"quantity":500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.7777296,"currency":"USD","price":0.918,"quantity":1000},{"conversion_rate":1,"converted_currency":"EUR","converted_price":0.778,"currency":"EUR","price":0.778,"quantity":1000},{"conversion_rate":1,"converted_currency":"EUR","converted_price":0.749,"currency":"EUR","price":0.749,"quantity":2500}],"sku":"926-LM317T","updated":"2020-10-23T06:17:51Z"}]},{"company":{"homepage_url":"http:\/\/www.verical.com","is_verified":false,"name":"Verical","slug":"verical"},"is_authorized":true,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=5489&sig=097fa4b&vpid=535880415&ai4=447","inventory_level":450,"moq":45,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.8268671999999999,"currency":"USD","price":0.976,"quantity":45},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.7911153599999999,"currency":"USD","price":0.9338,"quantity":9000}],"sku":"LM317T","updated":"2020-10-23T06:18:40Z"},{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=5489&sig=0ff7647&vpid=528183787&ai4=447","inventory_level":9900,"moq":450,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.8268671999999999,"currency":"USD","price":0.976,"quantity":450}],"sku":"LM317T","updated":"2020-10-23T06:18:40Z"}]},{"company":{"homepage_url":"http:\/\/www.farnell.com\/","is_verified":false,"name":"Farnell","slug":"farnell"},"is_authorized":true,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?c=1&country=DE&ct=offers&ppid=9255975&sid=819&sig=040241b&vpid=270823496&ai4=447","inventory_level":0,"moq":1,"packaging":null,"prices":[{"conversion_rate":1.1065411576625233,"converted_currency":"EUR","converted_price":1.0844103345092728,"currency":"GBP","price":0.98,"quantity":1},{"conversion_rate":1.1065411576625233,"converted_currency":"EUR","converted_price":1.0180178650495215,"currency":"GBP","price":0.92,"quantity":10},{"conversion_rate":1.1065411576625233,"converted_currency":"EUR","converted_price":0.95162539558977,"currency":"GBP","price":0.86,"quantity":100},{"conversion_rate":1.1065411576625233,"converted_currency":"EUR","converted_price":0.907363749283269,"currency":"GBP","price":0.82,"quantity":250},{"conversion_rate":1.1065411576625233,"converted_currency":"EUR","converted_price":0.8631021029767681,"currency":"GBP","price":0.78,"quantity":500}],"sku":"9489398","updated":"2020-10-23T02:09:52Z"}]},{"company":{"homepage_url":"http:\/\/www.newark.com","is_verified":false,"name":"Newark","slug":"newark"},"is_authorized":true,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?c=1&country=DE&ct=offers&ppid=9255975&sid=2402&sig=087ad0b&vpid=69911759&ai4=447","inventory_level":0,"moq":405,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.7028719999999997,"currency":"USD","price":2.01,"quantity":1},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.5249599999999999,"currency":"USD","price":1.8,"quantity":10},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.152192,"currency":"USD","price":1.36,"quantity":100},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.152192,"currency":"USD","price":1.36,"quantity":405},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.9827519999999998,"currency":"USD","price":1.16,"quantity":500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.7777296,"currency":"USD","price":0.918,"quantity":1000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.7489248,"currency":"USD","price":0.884,"quantity":2500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.72012,"currency":"USD","price":0.85,"quantity":5000}],"sku":"07B6423","updated":"2020-10-23T06:17:52Z"}]},{"company":{"homepage_url":"http:\/\/www.element14.com\/","is_verified":false,"name":"element14 APAC","slug":"element14-apac"},"is_authorized":true,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?c=1&country=DE&ct=offers&ppid=9255975&sid=11744&sig=0b47017&vpid=237179220&ai4=447","inventory_level":0,"moq":1,"packaging":"Tube","prices":[{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":35.91075632665535,"currency":"SGD","price":57.56,"quantity":1},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":34.04534351538538,"currency":"SGD","price":54.57,"quantity":10},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":32.78509807098226,"currency":"SGD","price":52.55,"quantity":25}],"sku":"1523842","updated":"2020-10-22T13:51:49Z"},{"click_url":"https:\/\/octopart.com\/click\/track?c=1&country=DE&ct=offers&ppid=9255975&sid=11744&sig=0df3ccd&vpid=132683091&ai4=447","inventory_level":0,"moq":1,"packaging":null,"prices":[{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.7905467452658246,"currency":"SGD","price":2.87,"quantity":1},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.5160378365839562,"currency":"SGD","price":2.43,"quantity":10},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.2103347337336932,"currency":"SGD","price":1.94,"quantity":100},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.0606026017254013,"currency":"SGD","price":1.7,"quantity":250},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.035647246390686,"currency":"SGD","price":1.66,"quantity":500},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":0.8172878872119269,"currency":"SGD","price":1.31,"quantity":1000},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":0.7860936930435327,"currency":"SGD","price":1.26,"quantity":2500},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":0.7611383377088174,"currency":"SGD","price":1.22,"quantity":5000}],"sku":"9489398","updated":"2020-10-22T13:51:49Z"},{"click_url":"https:\/\/octopart.com\/click\/track?c=1&country=DE&ct=offers&ppid=9255975&sid=11744&sig=0bec60e&vpid=573798482&ai4=447","inventory_level":0,"moq":1,"packaging":null,"prices":[{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.522276675417635,"currency":"SGD","price":2.44,"quantity":1},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.372544543409343,"currency":"SGD","price":2.2,"quantity":10},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.2914396385715181,"currency":"SGD","price":2.07,"quantity":25},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":1.035647246390686,"currency":"SGD","price":1.66,"quantity":100},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":0.9046316308834306,"currency":"SGD","price":1.45,"quantity":250},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":0.8796762755487152,"currency":"SGD","price":1.41,"quantity":500},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":0.6987499493720292,"currency":"SGD","price":1.12,"quantity":1000},{"conversion_rate":0.6238838833678831,"converted_currency":"EUR","converted_price":0.6737945940373138,"currency":"SGD","price":1.08,"quantity":2500}],"sku":"412132","updated":"2020-10-22T13:51:49Z"}]},{"company":{"homepage_url":"https:\/\/www.utmel.com\/","is_verified":false,"name":"Utmel Electronic","slug":"utmel-electronic"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=29008&sig=0d3dd2b&vpid=629875034&ai4=447","inventory_level":6944,"moq":null,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.23340360000000002,"currency":"USD","price":0.2755,"quantity":1},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.17384544,"currency":"USD","price":0.2052,"quantity":10},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.15211476,"currency":"USD","price":0.17955,"quantity":100},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.14648087999999998,"currency":"USD","price":0.1729,"quantity":1000}],"sku":"LM317T","updated":"2020-04-09T04:09:54Z"}]},{"company":{"homepage_url":"http:\/\/www.voyagercomponents.com","is_verified":false,"name":"Voyager Components","slug":"voyager-components"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=2424&sig=031efa9&vpid=616326871&ai4=447","inventory_level":22,"moq":null,"packaging":null,"prices":[],"sku":"LM317T-NATIONAL SEMICONDUCTOR (NSC)","updated":"2020-10-23T02:59:46Z"},{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=2424&sig=063919a&vpid=590637440&ai4=447","inventory_level":5,"moq":null,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.385476,"currency":"USD","price":0.455,"quantity":1},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.327688488,"currency":"USD","price":0.38679,"quantity":2},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.289140888,"currency":"USD","price":0.34129,"quantity":3},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.25059328799999997,"currency":"USD","price":0.29579,"quantity":4},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.2312856,"currency":"USD","price":0.273,"quantity":5}],"sku":"LM317T-NATIONAL SEMICONDUCTOR-92","updated":"2020-10-23T02:59:46Z"},{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=2424&sig=04520df&vpid=590637438&ai4=447","inventory_level":2,"moq":null,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.25416,"currency":"USD","price":0.3,"quantity":1},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.216052944,"currency":"USD","price":0.25502,"quantity":2},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.19063694399999997,"currency":"USD","price":0.22502,"quantity":3},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.16522094399999998,"currency":"USD","price":0.19502,"quantity":4},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.152496,"currency":"USD","price":0.18,"quantity":5}],"sku":"LM317T-NATIONAL SEMICONDUCTOR","updated":"2020-10-23T02:59:46Z"}]},{"company":{"homepage_url":"http:\/\/www.touchstone-sys.com\/","is_verified":false,"name":"Touchstone Systems","slug":"touchstone-systems"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=11162&sig=0d59a58&vpid=33475386&ai4=447","inventory_level":46,"moq":null,"packaging":null,"prices":[],"sku":"LM317T","updated":"2020-10-02T20:33:16Z"}]},{"company":{"homepage_url":"http:\/\/www.sie-connect.com","is_verified":false,"name":"SIE Connect","slug":"sie-connect"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=9309&sig=06953b8&vpid=34710979&ai4=447","inventory_level":19,"moq":null,"packaging":null,"prices":[],"sku":"LM317T","updated":"2020-09-09T12:22:44Z"}]},{"company":{"homepage_url":"http:\/\/www.semisourceinc.com\/","is_verified":false,"name":"Semi Source","slug":"semi-source"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=28295&sig=09da9c8&vpid=495804952&ai4=447","inventory_level":752,"moq":null,"packaging":null,"prices":[],"sku":"LM317T","updated":"2020-10-15T18:52:55Z"}]},{"company":{"homepage_url":"http:\/\/www.jakelectronics.com","is_verified":false,"name":"Jak Electronics","slug":"jak-electronics"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=28852&sig=0a5cfa3&vpid=626813520&ai4=447","inventory_level":6945,"moq":null,"packaging":null,"prices":[],"sku":"LM317T","updated":"2020-08-27T10:51:31Z"}]},{"company":{"homepage_url":"http:\/\/www.zaikostore.com\/zaikostore\/","is_verified":false,"name":"CoreStaff","slug":"corestaff"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?c=1&country=DE&ct=offers&ppid=9255975&sid=27968&sig=024f988&vpid=654338621&ai4=447","inventory_level":736,"moq":1,"packaging":null,"prices":[{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":1.537361001145132,"currency":"JPY","price":190,"quantity":1},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.4571839999999998,"currency":"USD","price":1.72,"quantity":1},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.9709648428285044,"currency":"JPY","price":120,"quantity":10},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.923448,"currency":"USD","price":1.09,"quantity":10},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.7282236321213783,"currency":"JPY","price":90,"quantity":50},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.686232,"currency":"USD","price":0.81,"quantity":50},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.5259392898654398,"currency":"JPY","price":65,"quantity":100},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.49984799999999996,"currency":"USD","price":0.59,"quantity":100},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.4692996740337771,"currency":"JPY","price":58,"quantity":500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.440544,"currency":"USD","price":0.52,"quantity":500},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.40456868451187683,"currency":"JPY","price":50,"quantity":1000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.38123999999999997,"currency":"USD","price":0.45,"quantity":1000},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.3924316239765205,"currency":"JPY","price":48.5,"quantity":2000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.372768,"currency":"USD","price":0.44,"quantity":2000},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.3802945634411642,"currency":"JPY","price":47,"quantity":4000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.36429599999999995,"currency":"USD","price":0.43,"quantity":4000}],"sku":"ST11562542","updated":"2020-09-16T21:54:16Z"},{"click_url":"https:\/\/octopart.com\/click\/track?c=1&country=DE&ct=offers&ppid=9255975&sid=27968&sig=0dda04e&vpid=654338622&ai4=447","inventory_level":110,"moq":1,"packaging":null,"prices":[{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":2.133209759694224,"currency":"JPY","price":263.64,"quantity":1},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":2.024808,"currency":"USD","price":2.39,"quantity":1},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":1.3472946331614521,"currency":"JPY","price":166.51,"quantity":10},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":1.279272,"currency":"USD","price":1.51,"quantity":10},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":1.0104507464368635,"currency":"JPY","price":124.88,"quantity":50},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.9573359999999999,"currency":"USD","price":1.13,"quantity":50},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.7297609931225234,"currency":"JPY","price":90.19,"quantity":100},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.6947039999999999,"currency":"USD","price":0.82,"quantity":100},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.6511937545903169,"currency":"JPY","price":80.48,"quantity":500},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.618456,"currency":"USD","price":0.73,"quantity":500},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.5613795066286802,"currency":"JPY","price":69.38,"quantity":1000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.533736,"currency":"USD","price":0.63,"quantity":1000},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.5445494493529862,"currency":"JPY","price":67.3,"quantity":2000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.5167919999999999,"currency":"USD","price":0.61,"quantity":2000},{"conversion_rate":0.008091373690237536,"converted_currency":"EUR","converted_price":0.5277193920772921,"currency":"JPY","price":65.22,"quantity":4000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.49984799999999996,"currency":"USD","price":0.59,"quantity":4000}],"sku":"ST25645311","updated":"2020-09-16T21:54:16Z"}]},{"company":{"homepage_url":"http:\/\/www.ibselectronics.com\/","is_verified":false,"name":"IBS Electronics","slug":"ibs-electronics"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=2452&sig=0306a6a&vpid=11781572&ai4=447","inventory_level":36,"moq":null,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.72012,"currency":"USD","price":0.85,"quantity":1}],"sku":"LM317T","updated":"2020-10-09T21:03:58Z"}]},{"company":{"homepage_url":"http:\/\/class-ic.com","is_verified":false,"name":"Classic Components","slug":"classic-components"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?c=1&country=DE&ct=offers&ppid=9255975&sid=26773&sig=0795584&vpid=243887426&ai4=447","inventory_level":2,"moq":null,"packaging":null,"prices":[],"sku":"LM317T","updated":"2020-10-22T14:39:16Z"}]},{"company":{"homepage_url":"http:\/\/www.chip-1.com\/","is_verified":false,"name":"Chip 1 Exchange","slug":"chip-1-exchange"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=20717&sig=061306d&vpid=123421183&ai4=447","inventory_level":292,"moq":null,"packaging":null,"prices":[],"sku":"LM317T","updated":"2020-10-16T09:51:42Z"}]},{"company":{"homepage_url":"http:\/\/www.componentonline.com","is_verified":false,"name":"Component Electronics","slug":"component-electronics"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=17279&sig=0f0befd&vpid=74333312&ai4=447","inventory_level":1,"moq":null,"packaging":null,"prices":[{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.6516916559999999,"currency":"USD","price":0.76923,"quantity":1}],"sku":"LM317T","updated":"2020-10-21T17:55:36Z"}]},{"company":{"homepage_url":"http:\/\/www.abacuselect.com\/","is_verified":false,"name":"Abacus Technologies","slug":"abacus-technologies"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=25917&sig=0778a93&vpid=253624873&ai4=447","inventory_level":92,"moq":null,"packaging":null,"prices":[],"sku":"LM317T","updated":"2020-10-21T18:59:19Z"}]},{"company":{"homepage_url":"http:\/\/www.bison-technologies.com","is_verified":false,"name":"Bison Technologies","slug":"bison-technologies"},"is_authorized":false,"is_broker":false,"is_rfq":true,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=19840&sig=055d0f6&vpid=227982936&ai4=447","inventory_level":431,"moq":null,"packaging":null,"prices":[],"sku":"LM317T-244876-NSC","updated":"2020-08-31T13:51:38Z"},{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=19840&sig=0774cd7&vpid=227982938&ai4=447","inventory_level":196,"moq":null,"packaging":null,"prices":[],"sku":"LM317T-244878-NSC","updated":"2020-08-31T13:51:38Z"},{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=19840&sig=051c130&vpid=194279433&ai4=447","inventory_level":173,"moq":null,"packaging":null,"prices":[],"sku":"LM317T-41270-NATIONAL SEMICONDUCTOR (NSC)","updated":"2020-08-31T13:51:38Z"},{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=19840&sig=087e9c5&vpid=227982937&ai4=447","inventory_level":121,"moq":null,"packaging":null,"prices":[],"sku":"LM317T-244877-NSC","updated":"2020-08-31T13:51:38Z"}]},{"company":{"homepage_url":"https:\/\/www.arrow.cn","is_verified":false,"name":"Arrow.cn","slug":"arrowcn"},"is_authorized":false,"is_broker":false,"is_rfq":false,"offers":[{"click_url":"https:\/\/octopart.com\/click\/track?country=DE&ct=offers&ppid=9255975&sid=28928&sig=0ff87c5&vpid=617639170&ai4=447","inventory_level":454,"moq":45,"packaging":null,"prices":[{"conversion_rate":0.1267163241496904,"converted_currency":"EUR","converted_price":0.9526279816925425,"currency":"CNY","price":7.5178,"quantity":45},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.8268671999999999,"currency":"USD","price":0.976,"quantity":45},{"conversion_rate":0.1267163241496904,"converted_currency":"EUR","converted_price":0.9118253253163421,"currency":"CNY","price":7.1958,"quantity":9000},{"conversion_rate":0.8472,"converted_currency":"EUR","converted_price":0.79145424,"currency":"USD","price":0.9342,"quantity":9000}],"sku":"LM317T#TI","updated":"2020-10-22T16:03:52Z"}]}]}

@chrissnow
Copy link

I found a minor bug, if the search returns no results it just says "loading" forever.

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 25, 2020

I just tried to add the LM317T and had no problems with it. So not reproducible for me.

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 25, 2020

@chrissnow I tried with the item "unknownitem" and got an error dialog (not with "no results returned", but with an error message).
image

@piotrkochan
Copy link

@chrissnow what browser?
Error messages in my case ale clear and logical, like:
image

There is no datasheets field so it fail
image

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 25, 2020

you are not using the current PR codebase. The code you show is commented.

@chrissnow
Copy link

@sibbi77 I get this
image

@piotrkochan
Copy link

@sibbi77 ok, it is working, I had to re-run the setup, probably some compiled js was not compiled, I don't know why but it works now. Thanks

@piotrkochan
Copy link

@sibbi77 part: MC34063ACN
error:
image
image

@sibbi77
Copy link
Contributor Author

sibbi77 commented Oct 25, 2020

the data from Octopart is erronous see here:
image
If you delete the line with Arrow Electronics and 0, it will work.

@@ -152,15 +158,36 @@ Ext.define("PartKeepr.Components.OctoPart.DataApplicator", {
}
}

if (this.import.cadModels)
/* if (this.import.datasheets)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to remove this obsolete code fragment.

@@ -170,7 +197,7 @@ Ext.define("PartKeepr.Components.OctoPart.DataApplicator", {
}
}

if (this.import.complianceDocuments)
/* if (this.import.complianceDocuments)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, too, you could remove this block comment.

@christianlupus
Copy link
Collaborator

@dromer I think this looks good. Multiple users have confirmed that the PR seems to work. Our current solution does indeet not work. So I see not much harm in merging this, although not having tested and reviewed it thoroughly (PHP part looks good, JS I cannot say much, the requests made I did not look up in detail). So I vote for merging sooner than later. (Maybe after the two small code changes I suggested, if @sibbi77 is ok with them).

@piotrkochan
Copy link

@sibbi77 there is a bug, when I search for something and there is no results (just try "sdfsfdsfd") then javascript exception is being thrown in the console, octopart search is not working afterwards

@codecov-io
Copy link

codecov-io commented Nov 1, 2020

Codecov Report

Merging #1150 (165e3a9) into master (5e39894) will decrease coverage by 0.21%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1150      +/-   ##
============================================
- Coverage     37.09%   36.87%   -0.22%     
- Complexity     1798     1803       +5     
============================================
  Files           258      258              
  Lines          5729     5762      +33     
============================================
  Hits           2125     2125              
- Misses         3604     3637      +33     
Impacted Files Coverage Δ Complexity Δ
...pr/OctoPartBundle/Controller/DefaultController.php 0.00% <0.00%> (ø) 5.00 <0.00> (+1.00)
...tKeepr/OctoPartBundle/Services/OctoPartService.php 0.00% <0.00%> (ø) 7.00 <4.00> (+4.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e39894...4edae1a. Read the comment docs.

@sibbi77
Copy link
Contributor Author

sibbi77 commented Nov 1, 2020

@piotrkochan I get the same as in #1150 (comment) and the search works after that.
@christianlupus I removed the dead code.

@christianlupus christianlupus merged commit 1f4b8d7 into partkeepr:master Nov 7, 2020
@Drachenkaetzchen
Copy link
Member

This breaks the demo system:


                                                                                                                                                                                                                               
  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]                                                                                                                                                 
  The service "partkeepr.octopart_service" has a dependency on a non-existent parameter "partkeepr.octopart.limit". Did you mean one of these: "partkeepr.users.limit", "partkeepr.parts.limit", "partkeepr.octopart.apikey"?  
                                                                                                                                                                                                                               

cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-s|--shell] [--process-isolation] [-e|--env ENV] [--no-debug] [--] <command>


                                                                                                                                                                                                                               
  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]                                                                                                                                                 
  The service "partkeepr.octopart_service" has a dependency on a non-existent parameter "partkeepr.octopart.limit". Did you mean one of these: "partkeepr.users.limit", "partkeepr.parts.limit", "partkeepr.octopart.apikey"?  
                                                                                                                                                                                                                               


                                                                                                                                                                                                                               
  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]                                                                                                                                                 
  The service "partkeepr.octopart_service" has a dependency on a non-existent parameter "partkeepr.octopart.limit". Did you mean one of these: "partkeepr.users.limit", "partkeepr.parts.limit", "partkeepr.octopart.apikey"?  
                                                                                                                                                                                                                               


                                                                                                                                                                                                                               
  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]                                                                                                                                                 
  The service "partkeepr.octopart_service" has a dependency on a non-existent parameter "partkeepr.octopart.limit". Did you mean one of these: "partkeepr.users.limit", "partkeepr.parts.limit", "partkeepr.octopart.apikey"?  
                                                                                                                                                                                                                               


                                                                                                                                                                                                                               
  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]                                                                                                                                                 
  The service "partkeepr.octopart_service" has a dependency on a non-existent parameter "partkeepr.octopart.limit". Did you mean one of these: "partkeepr.users.limit", "partkeepr.parts.limit", "partkeepr.octopart.apikey"?  
                                                                                                                                                                                                                               


                                                                                                                                                                                                                               
  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]                                                                                                                                                 
  The service "partkeepr.octopart_service" has a dependency on a non-existent parameter "partkeepr.octopart.limit". Did you mean one of these: "partkeepr.users.limit", "partkeepr.parts.limit", "partkeepr.octopart.apikey"?  
                                                                                                                                                                                                                               ```


@sibbi77
Copy link
Contributor Author

sibbi77 commented Nov 7, 2020

I added $container->setParameter('partkeepr.octopart.limit', '3'); to parameters.php.dist. Not sure how the demo system gets its configuration.

@Drachenkaetzchen
Copy link
Member

It's a manually maintained file. I wasn't aware of that the parameter was added, I'll add it to the config file for the demo.

@christianlupus
Copy link
Collaborator

@Drachenkaetzchen the page at https://demo-git.partkeepr.org has a wrong config set up currently. There is a message about a wrong username/password. Could you please recheck the config file?

@Drachenkaetzchen
Copy link
Member

@Drachenkaetzchen the page at https://demo-git.partkeepr.org has a wrong config set up currently. There is a message about a wrong username/password. Could you please recheck the config file?

It is a result of the git pull request, I haven't had time to implement the new config.

@Drachenkaetzchen
Copy link
Member

Wrong username/password always occurs if something goes wrong with the scripts creating the demo site.

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

Successfully merging this pull request may close these issues.

8 participants