cache claim search results by query #166
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
LBRYCommunity/lbry-redux!166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
Change claim_search cache to use the exact options that were used for the claim search to create a key, instead of just tags
optionsintoclaimSearchyou want to search withalso a couple bugs that we fixed before the last desktop release
I'm going to bring these changes into #165 since we don't need both
The missing
__is the only necessary commentMissing
__@ -46,10 +45,9 @@ const defaultState = {fetchingMyChannels: false,abandoningById: {},pendingById: {},what triggers invalidation of this cache? what is the behavior if there are weeks or months old results in here?
I'm mildly confused by why this is necessary, but not a blocking comment.
Discussions on standup have led me to believe this needs to be thought out more.
It fixed... something. I believe selecting vanity urls
this means that if
thumbnail.urlis''ornull, we returnundefinedthis seems wrong
undefinedseems okay ifthumbnail.urlis undefined itself (i.e.thumbnailis null, not an object, or does not have theurlproperty set)is this actually used?
No. And I think others here can be removed
So just return
""if it's an empty string? Instead ofundefined?Yeah, we weren't even exporting this file. Just deleted it.