Collections #383

Merged
jessopb merged 20 commits from collections into master 2021-06-08 17:51:49 +02:00
jessopb commented 2021-02-15 20:35:43 +01:00 (Migrated from github.com)
No description provided.
neb-b (Migrated from github.com) reviewed 2021-02-15 23:12:19 +01:00
@ -172,1 +172,4 @@
declare type CollectionCreateResponse = {
outputs: Array<Claim>,
page: number,
neb-b (Migrated from github.com) commented 2021-02-15 21:40:58 +01:00

Array<Claim>

Array\<Claim>
neb-b (Migrated from github.com) commented 2021-02-15 22:35:25 +01:00
{
  [string]: boolean,
}
``` { [string]: boolean, } ```
neb-b (Migrated from github.com) commented 2021-02-15 22:38:37 +01:00

remove added and leftOff for now

remove added and leftOff for now
neb-b (Migrated from github.com) commented 2021-02-15 21:43:38 +01:00

maybe COLLECTION_CREATE/COLLECTION_PUBLISH?

maybe COLLECTION_CREATE/COLLECTION_PUBLISH?
neb-b (Migrated from github.com) commented 2021-02-15 21:48:06 +01:00

collection_resolve({ claim_id: collectionId, page_size: 3

`collection_resolve({ claim_id: collectionId, page_size: 3 `
neb-b (Migrated from github.com) commented 2021-02-15 21:49:23 +01:00

Some of these aren't needed

Some of these aren't needed
neb-b (Migrated from github.com) commented 2021-02-15 22:59:04 +01:00

some of these aren't needed

some of these aren't needed
neb-b (Migrated from github.com) commented 2021-02-15 23:01:05 +01:00

doFetchCollectionListMine

doFetchCollectionListMine
neb-b (Migrated from github.com) commented 2021-02-15 22:09:42 +01:00

stateAfterClaimSearch

`stateAfterClaimSearch`
neb-b (Migrated from github.com) commented 2021-02-15 22:15:47 +01:00

promises.push((claim_id) =>

`promises.push((claim_id) => `
neb-b (Migrated from github.com) commented 2021-02-15 22:17:52 +01:00
try {
} catch (e) { return {
    [claim_id]: null
    }
  }
``` try { } catch (e) { return { [claim_id]: null } } ```
neb-b (Migrated from github.com) commented 2021-02-15 22:19:12 +01:00

[string]: ?Array<GenericClaim>

\[string]: ?Array\<GenericClaim>
neb-b (Migrated from github.com) commented 2021-02-15 22:20:41 +01:00

remove repost comments

remove repost comments
neb-b (Migrated from github.com) commented 2021-02-15 22:30:17 +01:00

return { claim_id, items: result.items }

return { claim_id, items: result.items }
neb-b (Migrated from github.com) commented 2021-02-15 22:31:48 +01:00

If above is changed on line 48, entry will be entry.claim_id and entry.items

If above is changed on line 48, entry will be `entry.claim_id` and `entry.items`
neb-b (Migrated from github.com) commented 2021-02-15 22:45:54 +01:00

const processedFlatCollectionItems = processClaims(flatResolve
const processedClaimsByUri = processClaims(claimsByUri

const processedFlatCollectionItems = processClaims(flatResolve const processedClaimsByUri = processClaims(claimsByUri
neb-b (Migrated from github.com) commented 2021-02-15 22:50:12 +01:00

doUpdateUnpublishedCollection

doUpdateUnpublishedCollection
neb-b (Migrated from github.com) commented 2021-02-15 22:54:19 +01:00

doCreateUnpublishedCollection

doCreateUnpublishedCollection
neb-b (Migrated from github.com) commented 2021-02-15 22:55:46 +01:00

makeSelectUnpublishedCollectionById

makeSelectUnpublishedCollectionById
neb-b (Migrated from github.com) commented 2021-02-15 22:56:27 +01:00

comment

comment
neb-b (Migrated from github.com) commented 2021-02-15 22:56:52 +01:00

addedAt is dead for now

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,
neb-b (Migrated from github.com) commented 2021-02-15 22:53:39 +01:00

timestamp: Math.floor(Date.now() / 1000)

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 => ({
neb-b (Migrated from github.com) commented 2021-02-15 21:52:19 +01:00

return { ...state,

return { ...state,
neb-b (Migrated from github.com) commented 2021-02-15 22:02:26 +01:00

const { claims }: { claims: Array<CollectionClaim> } = action.data;

`const { claims }: { claims: Array<CollectionClaim> } = action.data;`
neb-b (Migrated from github.com) commented 2021-02-15 22:04:05 +01:00

add comment explaining that this will protect against overwriting collections on edit

add comment explaining that this will protect against overwriting collections on edit
neb-b (Migrated from github.com) commented 2021-02-15 23:01:59 +01:00

make watchlater a constant

make watchlater a constant
neb-b (Migrated from github.com) commented 2021-02-15 23:03:06 +01:00

move this to the action

move this to the action
neb-b (Migrated from github.com) commented 2021-02-15 23:05:58 +01:00

COLLECTION_UNPUBLISHED_CREATE

COLLECTION_UNPUBLISHED_CREATE
neb-b (Migrated from github.com) commented 2021-02-15 23:07:20 +01:00

resolvingCollectionById[id] = true

From comment above about keeping this the same type as isResolvingClaimsById

resolvingCollectionById[id] = true From comment above about keeping this the same type as isResolvingClaimsById
neb-b (Migrated from github.com) commented 2021-02-15 23:08:14 +01:00

comment

comment
neb-b (Migrated from github.com) commented 2021-02-15 23:08:50 +01:00

selectBuiltinCollections

selectBuiltinCollections
neb-b (Migrated from github.com) commented 2021-02-15 23:09:40 +01:00

return state.isResolvingCollectionById[id]

return state.isResolvingCollectionById[id]
jessopb (Migrated from github.com) reviewed 2021-02-17 17:16:08 +01:00
jessopb (Migrated from github.com) commented 2021-02-17 17:16:08 +01:00

Array/< { claimId: string, items: ?Array } >

Array/< { claimId: string, items: ?Array<GenericClaim> } >
infinite-persistence (Migrated from github.com) reviewed 2021-06-04 14:28:44 +02:00
infinite-persistence (Migrated from github.com) left a comment

First pass ok. Mostly indirectly tested using the Desktop PR.
Only minor (ignorable) cleanup here.

First pass ok. Mostly indirectly tested using the Desktop PR. Only minor (ignorable) cleanup here.
infinite-persistence (Migrated from github.com) commented 2021-06-04 14:08:06 +02:00

typo?

typo?
@ -10,16 +10,22 @@ import {
selectClaimsByUri,
infinite-persistence (Migrated from github.com) commented 2021-06-04 14:12:15 +02:00

There are a few unused variables in this file.

There are a few unused variables in this file.
@ -0,0 +7,4 @@
import {
makeSelectCollectionForId,
// makeSelectPublishedCollectionForId, // for "save" or "copy" action
makeSelectMyPublishedCollectionForId,
infinite-persistence (Migrated from github.com) commented 2021-06-04 14:19:23 +02:00

Unused

Unused
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-redux#383
No description provided.