joshhunt / destinyDataExplorer

MIT License
18 stars 4 forks source link

InventoryItemLite items don't show up in advanced querying #28

Closed xyx0826 closed 3 years ago

xyx0826 commented 3 years ago

When querying from the console, items from DestinyInventoryItemLiteDefinition doesn't show up in the view.

Example:

window.$DestinyInventoryItemLiteDefinition.filter(x => x.collectibleHash === 2325722862).show()

Returns a single item. Nothing shows up on the page.

window.$DestinyInventoryItemLiteDefinition.filter(x => x.itemTypeDisplayName === "Repeatable Bounty").show()

Returns an Array(43). Nothing shows up on the page. In comparison, the same query works on DestinyInventoryItemDefinition:

window.$DestinyInventoryItemDefinition.filter(x => x.itemTypeDisplayName === "Repeatable Bounty").show()
joshhunt commented 3 years ago

For better or worse, this is on purpose.

Until very recently, definitions were loaded from the SQLite .content database, which was lacking a few tables. Then I added in support for loading the missing tables from their individual JSON files. I specifically exclude DestinyInventoryItemLiteDefinition because of it's large volume of redundant data.

xyx0826 commented 3 years ago

Understood, thanks.