Collections #383
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#383
Loading…
Reference in a new issue
No description provided.
Delete branch "collections"
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?
@ -172,1 +172,4 @@
declare type CollectionCreateResponse = {
outputs: Array<Claim>,
page: number,
Array<Claim>
remove added and leftOff for now
maybe COLLECTION_CREATE/COLLECTION_PUBLISH?
collection_resolve({ claim_id: collectionId, page_size: 3
Some of these aren't needed
some of these aren't needed
doFetchCollectionListMine
stateAfterClaimSearch
promises.push((claim_id) =>
[string]: ?Array<GenericClaim>
remove repost comments
return { claim_id, items: result.items }
If above is changed on line 48, entry will be
entry.claim_id
andentry.items
const processedFlatCollectionItems = processClaims(flatResolve
const processedClaimsByUri = processClaims(claimsByUri
doUpdateUnpublishedCollection
doCreateUnpublishedCollection
makeSelectUnpublishedCollectionById
comment
addedAt is dead for now
@ -0,0 +31,4 @@
data: {
entry: {
id: uuid(), // start with a uuid, this becomes a claimId after publish
name: name,
timestamp: Math.floor(Date.now() / 1000)
@ -306,6 +327,53 @@ reducers[ACTIONS.FETCH_CHANNEL_LIST_FAILED] = (state: State, action: any): State
});
};
reducers[ACTIONS.FETCH_COLLECTION_LIST_STARTED] = (state: State): State => ({
return { ...state,
const { claims }: { claims: Array<CollectionClaim> } = action.data;
add comment explaining that this will protect against overwriting collections on edit
make watchlater a constant
move this to the action
COLLECTION_UNPUBLISHED_CREATE
resolvingCollectionById[id] = true
From comment above about keeping this the same type as isResolvingClaimsById
comment
selectBuiltinCollections
return state.isResolvingCollectionById[id]
Array/< { claimId: string, items: ?Array } >
First pass ok. Mostly indirectly tested using the Desktop PR.
Only minor (ignorable) cleanup here.
typo?
@ -10,16 +10,22 @@ import {
selectClaimsByUri,
There are a few unused variables in this file.
@ -0,0 +7,4 @@
import {
makeSelectCollectionForId,
// makeSelectPublishedCollectionForId, // for "save" or "copy" action
makeSelectMyPublishedCollectionForId,
Unused