node-steam-user icon indicating copy to clipboard operation
node-steam-user copied to clipboard

Pics Cache Enhancements

Open Revadike opened this issue 3 years ago • 10 comments

  • [x] Allow pics cache to be saved to disk (https://github.com/DoctorMcKay/node-steam-user/issues/188)
  • [x] Read (and sync) saved pics cache to reduce requesting productinfos (https://github.com/DoctorMcKay/node-steam-user/issues/385)
  • [x] Refactor code and reduce complexity of getProductInfo() (comments 1 2)
  • [x] Request product info in bulk (and save progress in between).
  • ~~Request missing tokens by default? (discussion)~~
  • [x] Use meta_data_only instead of tracking changenumber (reason: changenumber changes can be only requested until a certain point)
  • [x] Fix README.md

Revadike avatar Mar 09 '22 03:03 Revadike

@DoctorMcKay early feedback is welcome and encouraged!

Revadike avatar Mar 09 '22 03:03 Revadike

Request missing tokens by default?

It does make sense to request missing tokens by default, but this would be a breaking change so it's best not to.

DoctorMcKay avatar Mar 09 '22 03:03 DoctorMcKay

Request missing tokens by default?

It does make sense to request missing tokens by default, but this would be a breaking change so it's best not to.

Hmm, I'm thinking, maybe just like the global ownershipFilter, the same can be done by globally setting this behavior too.

Revadike avatar Mar 09 '22 04:03 Revadike

Hmm, I'm thinking, maybe just like the global ownershipFilter, the same can be done by globally setting this behavior too.

Ehh, I'm not a big fan of adding a new global option just to avoid having to type true a few times. A global ownership filter makes sense because it affects many different methods and is a complex data type, but a simple bool isn't a burden to type.

DoctorMcKay avatar Mar 09 '22 04:03 DoctorMcKay

Fair enough

Revadike avatar Mar 09 '22 04:03 Revadike

It should work as-is, but for this PR to work better, I highly suggest merging this PR (and potentially this PR) as well.

Revadike avatar May 22 '22 00:05 Revadike

New TODO:

  • [x] Use meta_data_only instead of tracking changenumber (reason: changenumber changes can be only requested until a certain point)

Revadike avatar Jun 11 '22 00:06 Revadike

New TODO:

  • [x] Fix README.md

Revadike avatar Jun 17 '22 04:06 Revadike

Bug found: requesting product info of subids/appids as string results in deadlock.

Edit: Or maybe not? :S

Revadike avatar Jul 01 '22 18:07 Revadike

Ready to merge?

Revadike avatar Jul 22 '22 23:07 Revadike