Add site asset CSV import with fuzzy reconciliation
Sites seed inventory from the Asset Collector script or spreadsheet exports, but lookup names drift between sources (Dell vs Dell Inc.), which would otherwise create duplicate vendors/models/types on every import. The importer now normalizes and fuzzy-matches near-miss references onto existing lookup rows within an operator-set similarity threshold, auto-applying the match while reporting it for review so nothing merges silently. Operating systems and asset rows are never reconciled. Adds the dedicated Import Site Assets page with script/template download and a multi-file dry-run/commit workflow.
This commit is contained in:
5
scripts/site_imports/assetcollector/sample/assets.csv
Normal file
5
scripts/site_imports/assetcollector/sample/assets.csv
Normal file
@@ -0,0 +1,5 @@
|
||||
assetnumber,name,serialnumber,assettypeid,statusid,locationid,businessunitid,notes
|
||||
SAMPLE-PC-01,Shopfloor PC 01,DELLSN0001,computer,In Use,A1,Gage Lab,Sample collected device
|
||||
SAMPLE-PC-02,CMM PC 02,DELLSN0002,computer,In Use,A1,Gage Lab,Sample collected device
|
||||
SAMPLE-MC-01,Zeiss CMM 01,ZEISSSN0001,machine,In Use,A1,Gage Lab,Sample collected device attached to SAMPLE-PC-02
|
||||
SAMPLE-MC-02,Haas VF-2SS 02,HAASSN0002,machine,In Use,A1,Gage Lab,Sample collected standalone CNC
|
||||
|
3
scripts/site_imports/assetcollector/sample/computers.csv
Normal file
3
scripts/site_imports/assetcollector/sample/computers.csv
Normal file
@@ -0,0 +1,3 @@
|
||||
assetid,computertypeid,hostname,osid,vendorid,modelnumberid,loggedinuser
|
||||
SAMPLE-PC-01,Shopfloor PC,WKS-SAMPLE01,Windows 10 Enterprise,Dell,OptiPlex 7090,AEROAD\operator1
|
||||
SAMPLE-PC-02,CMM PC,WKS-SAMPLE02,Windows 11 Enterprise,Dell,Precision 3660,AEROAD\operator2
|
||||
|
3
scripts/site_imports/assetcollector/sample/machines.csv
Normal file
3
scripts/site_imports/assetcollector/sample/machines.csv
Normal file
@@ -0,0 +1,3 @@
|
||||
assetid,machinetypeid,vendorid,modelnumberid,requiresmanualconfig,islocationonly
|
||||
SAMPLE-MC-01,CMM,Zeiss,CONTURA G2,0,0
|
||||
SAMPLE-MC-02,CNC,Haas Automation,VF-2SS,0,0
|
||||
|
5
scripts/site_imports/assetcollector/sample/models.csv
Normal file
5
scripts/site_imports/assetcollector/sample/models.csv
Normal file
@@ -0,0 +1,5 @@
|
||||
modelnumber,vendorid
|
||||
OptiPlex 7090,Dell
|
||||
Precision 3660,Dell
|
||||
VF-2SS,Haas Automation
|
||||
CONTURA G2,Zeiss
|
||||
|
@@ -0,0 +1,3 @@
|
||||
osname
|
||||
Windows 10 Enterprise
|
||||
Windows 11 Enterprise
|
||||
|
4
scripts/site_imports/assetcollector/sample/vendors.csv
Normal file
4
scripts/site_imports/assetcollector/sample/vendors.csv
Normal file
@@ -0,0 +1,4 @@
|
||||
vendor
|
||||
Dell
|
||||
Haas Automation
|
||||
Zeiss
|
||||
|
Reference in New Issue
Block a user