Mokhtar Naamani f4cb727dec bump types and metadata npm package version пре 2 година
..
bin be24525647 Sumer-Giza migration scripts пре 3 година
src dc48555bc9 Prettier fix пре 2 година
.eslintignore be24525647 Sumer-Giza migration scripts пре 3 година
.gitignore be24525647 Sumer-Giza migration scripts пре 3 година
.prettierignore 75ed426cc3 Migration script: Wait for finalization, improve error handling and logging пре 2 година
README.md 2244178013 Migration scripts: Update README пре 2 година
package.json f4cb727dec bump types and metadata npm package version пре 2 година
tsconfig.json be24525647 Sumer-Giza migration scripts пре 3 година

README.md

migrations

Joystream migrations scripts

oclif Version Downloads/week License

migration-scripts giza-olympia:createContentDirectorySnapshot

USAGE
  $ migration-scripts giza-olympia:createContentDirectorySnapshot

OPTIONS
  -o, --output=output          Output file path
  --queryNodeUri=queryNodeUri  [default: https://hydra.joystream.org/graphql] Giza query node uri

See code: src/commands/giza-olympia/createContentDirectorySnapshot.ts

migration-scripts giza-olympia:createMembershipsSnapshot

USAGE
  $ migration-scripts giza-olympia:createMembershipsSnapshot

OPTIONS
  -o, --output=output          Output file path
  --queryNodeUri=queryNodeUri  [default: https://hydra.joystream.org/graphql] Giza query node uri

See code: src/commands/giza-olympia/createMembershipsSnapshot.ts

migration-scripts giza-olympia:fetchAllObjects

USAGE
  $ migration-scripts giza-olympia:fetchAllObjects

OPTIONS
  --continously                      Whether the script should run continously
  --dataDir=dataDir                  [default: /tmp/joystream/giza-olympia-migration] Directory for storing data objects

  --idleTime=idleTime                [default: 300] Time (in seconds) to remain idle in case no new data objects were
                                     found

  --objectsPerBatch=objectsPerBatch  [default: 20] Max. number of storage objects to fetch simultaneously

  --queryNodeUri=queryNodeUri        [default: https://hydra.joystream.org/graphql] Giza query node uri

See code: src/commands/giza-olympia/fetchAllObjects.ts

migration-scripts giza-olympia:migrateContent

USAGE
  $ migration-scripts giza-olympia:migrateContent

OPTIONS
  -c, --channelIds=channelIds                                      (required) Channel ids to migrate
  --channelBatchSize=channelBatchSize                              [default: 20] Channel batch size

  --dataDir=dataDir                                                (required) Directory where data objects to upload are
                                                                   stored

  --excludeVideoIds=excludeVideoIds                                [default: ] Video ids to exclude from migration

  --forceChannelOwnerMemberId=forceChannelOwnerMemberId            Can be used to force a specific channel owner for all
                                                                   channels, allowing to easily test the script in dev
                                                                   environment

  --membershipsMigrationResultPath=membershipsMigrationResultPath  (required) JSON artifact produced by membership
                                                                   migration

  --migrationStatePath=migrationStatePath                          [default:
                                                                   /home/leszek/projects/joystream/joystream-ws-2/utils/
                                                                   migration-scripts/results/giza-olympia] Path to
                                                                   migration results directory

  --snapshotFilePath=snapshotFilePath                              (required) Path to giza content directory snapshot
                                                                   (json)

  --sudoUri=sudoUri                                                [default: //Alice] Sudo key Substrate uri

  --uploadSpBucketId=uploadSpBucketId                              [default: 0] Olympia storage bucket id

  --uploadSpEndpoint=uploadSpEndpoint                              [default: http://localhost:3333] Olympia storage node
                                                                   endpoint to use for uploading

  --videoBatchSize=videoBatchSize                                  [default: 20] Video batch size

  --wsProviderEndpointUri=wsProviderEndpointUri                    [default: ws://localhost:9944] WS provider endpoint
                                                                   uri (Olympia)

See code: src/commands/giza-olympia/migrateContent.ts

migration-scripts giza-olympia:migrateMembers

USAGE
  $ migration-scripts giza-olympia:migrateMembers

OPTIONS
  --batchSize=batchSize                          [default: 100] Members batch size

  --migrationStatePath=migrationStatePath        [default:
                                                 /home/leszek/projects/joystream/joystream-ws-2/utils/migration-scripts/
                                                 results/giza-olympia] Path to migration results directory

  --snapshotFilePath=snapshotFilePath            (required) Path to giza memberships snapshot (json)

  --sudoUri=sudoUri                              [default: //Alice] Sudo key Substrate uri

  --wsProviderEndpointUri=wsProviderEndpointUri  [default: ws://localhost:9944] WS provider endpoint uri (Olympia)

See code: src/commands/giza-olympia/migrateMembers.ts

migration-scripts help [COMMAND]

display help for migration-scripts

USAGE
  $ migration-scripts help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

migration-scripts sumer-giza:migrateContent

USAGE
  $ migration-scripts sumer-giza:migrateContent

OPTIONS
  -c, --channelIds=channelIds                                  (required) Channel ids to migrate
  --channelBatchSize=channelBatchSize                          [default: 20] Channel batch size

  --dataDir=dataDir                                            [default: /tmp/joystream/sumer-giza-migration] Directory
                                                               for storing data objects to upload

  --excludeVideoIds=excludeVideoIds                            [default: ] Video ids to exclude from migration

  --forceChannelOwnerMemberId=forceChannelOwnerMemberId        Can be used to force a specific channel owner for all
                                                               channels, allowing to easily test the script in dev
                                                               environment

  --migrationStatePath=migrationStatePath                      [default:
                                                               /home/leszek/projects/joystream/joystream-ws-2/utils/migr
                                                               ation-scripts/results/sumer-giza] Path to migration
                                                               results directory

  --preferredDownloadSpEndpoints=preferredDownloadSpEndpoints  [default: https://storage-1.joystream.org/storage]
                                                               Preferred storage node endpoints when downloading data
                                                               objects

  --queryNodeUri=queryNodeUri                                  [default: https://hydra.joystream.org/graphql] Query node
                                                               uri

  --sudoUri=sudoUri                                            [default: //Alice] Sudo key Substrate uri

  --uploadSpBucketId=uploadSpBucketId                          [default: 0] Giza storage bucket id

  --uploadSpEndpoint=uploadSpEndpoint                          [default: http://localhost:3333] Giza storage node
                                                               endpoint to use for uploading

  --videoBatchSize=videoBatchSize                              [default: 20] Video batch size

  --wsProviderEndpointUri=wsProviderEndpointUri                [default: ws://localhost:9944] WS provider endpoint uri
                                                               (Giza)

See code: src/commands/sumer-giza/migrateContent.ts

migration-scripts sumer-giza:retryFailedUploads

USAGE
  $ migration-scripts sumer-giza:retryFailedUploads

OPTIONS
  -f, --failedUploadsPath=failedUploadsPath      (required) Path to failed uploads file

  --dataDir=dataDir                              [default: /tmp/joystream/sumer-giza-migration] Directory where data
                                                 objects to upload are stored

  --uploadSpBucketId=uploadSpBucketId            [default: 0] Giza storage bucket id

  --uploadSpEndpoint=uploadSpEndpoint            [default: http://localhost:3333] Giza storage node endpoint to use for
                                                 uploading

  --wsProviderEndpointUri=wsProviderEndpointUri  [default: ws://localhost:9944] WS provider endpoint uri (Giza)

See code: src/commands/sumer-giza/retryFailedUploads.ts