add doResolvedSearch actions which returns resolved search results #258
No reviewers
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#258
Loading…
Reference in a new issue
No description provided.
Delete branch "resolved-search"
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?
Could this just use the current
doSearch
and add the flag/change the action types based on some flag passed into the function?I separated this since
doSearch
already had its own resolve logic, and I didn't want to make the entire thing more complicated than necessary.@ -162,0 +168,4 @@
options: {
related_to?: string,
} = {}
) => (dispatch: Dispatch, getState: GetState) => {
Do we really have to do this with an entirely parallel chain of calls, as well as a new
ResolvedSearchResult
type? Why can't this be an additional parameter todoSearch
, and when pre-resolved results are returned from the search server, they're stored directly in the claims reducer?(I realize that part of this is that
resolve=1
on lighthouse doesn't actually return the resolved claim, which makes me question the design of this entirely, or at a minimum the name of that parameter)@ -162,0 +168,4 @@
options: {
related_to?: string,
} = {}
) => (dispatch: Dispatch, getState: GetState) => {
The reasoning behind this approach was to have a type with the minimum number of fields required to display a search result item, since I was aiming for speed and better performance (one request vs multiple requests to handle a search). The performance improvement on mobile is positive.
I created a new method instead of using the existing
doSearch
because I was trying to differentiate the return types (since it ultimately doesn't return a claim, but a subset of values for a particular claim).@tiger5226 could probably rename the
resolve
parameter to something else to make it more clear.@ -162,0 +168,4 @@
options: {
related_to?: string,
} = {}
) => (dispatch: Dispatch, getState: GetState) => {
I can change it to whatever we want it to be.