GithubHelp home page GithubHelp logo

danitseitlin / redis-cloud-api-sdk Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 3.0 706 KB

Redis Cloud API SDK

License: Apache License 2.0

TypeScript 100.00%
cloud-api nodejs typescript sdk api redis redis-cloud-api-sdk

redis-cloud-api-sdk's Introduction

๐Ÿ’ซ About Me:

A passionate coder with motivation to create

At least a cup of coffee per 20 lines of code โ˜•

๐Ÿ’ป Tech Stack:

Jenkins Python Redis Angular.js NodeJS IOS ANDROID React React Native AWS Netlify Heroku PHP CSS3 C# Java TypeScript

๐Ÿ“Š GitHub Stats:



โœ๏ธ Random Dev Quote


redis-cloud-api-sdk's People

Contributors

danieltseitlin avatar danitseitlin avatar dependabot[bot] avatar gkorland avatar linoyperetz avatar michaelk-redis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

redis-cloud-api-sdk's Issues

Add 'Subscription' type to index.d.ts

In order to get a subscription properties after using getSubscription() function, it will be helpful to have the type Subscription on the index.t.ts file.

Can't run updateDatabase on ROF cluster

Can't run updateDatabase on ROF cluster.

Steps:

  1. created a gcp rof subscription with 50gb and 5k ops/sec, replication enabled2
  2. Use the updateDatabase call with the following update params:
    dbGcpPreUpgradeUpdatedParameters = { memoryLimitInGb: 70, throughputMeasurement: { by: 'operations-per-second', value: 4000 }, supportOSSClusterApi: true, useExternalEndpointForOSSClusterApi: true, replication: false }
  3. get the following:
    Request failed: 400, error_code: invalid_plan_request - average_value_size is required in ROF plans RCP_GKE_rcp-testing2_qa2 qa2.web-6ccc95bfd5-xhx4h [22/Mar/2021:17:19:46 +
    The average_value_size property isn't supported.

Version 1.1.6

Add DatabaseStatus 'Sync'

In order to make the function: waitForDatabaseStatus
More accurate, will be helpful to add the status 'synced' of a database to DatabaseStatus.
(So the expected status could be synced)

Database Creation: 'value' property under ThroughputMeasurement is doubled

Actual behavior
On Database type, we have the following property:
throughputMeasurement?: { by: DatabaseThroughputMeasurement; value: number; };
And DatabaseThroughputMeasurement is:
export declare type DatabaseThroughputMeasurement = { by: 'number-of-shards' | 'operations-per-second'; value: number; [key: string]: any; };
Which means we should add the value twice.

Expected behavior
The value type will appear one time under ThroughputMeasurement.

Implement deploy bot

We should implement a deploy bot using the npm-package-deployer for deployment on commit into the master branch.

Wait for all subscription function

Description:
Missing a function: wait for all subscription's databases.

Expected behavior:
When waiting for a databases to be active status, we need to get each db uid, and then wait for the db status to be active. which can fail if we don't get the db id. also, it's a messy way.

rl-cloud-api-sdk version: 1.2.2

Additional context
Example for a code that can be failed:
await cloudApiSdk.waitForSubscriptionStatus(awsRorPreUpgradeClusterId, 'active') console.debug('The provisioning of \'Aws-Ror-Pre-Upgrade\' is successfully finished') await cloudApiSdk.waitForSubscriptionStatus(gcpRofPreUpgradeClusterId, 'active') console.debug('The provisioning of \'Gcp-Rof-Pre-Upgrade\' is successfully finished') awsPreUpgradeDatabaseId = (await cloudApiSdk.getDatabases(awsRorPreUpgradeClusterId))[0].databaseId gcpPreUpgradeDatabaseId = (await cloudApiSdk.getDatabases(gcpRofPreUpgradeClusterId))[0].databaseId await cloudApiSdk.waitForDatabaseStatus(awsRorPreUpgradeClusterId, awsPreUpgradeDatabaseId, 'active') await cloudApiSdk.waitForDatabaseStatus(gcpRofPreUpgradeClusterId, gcpPreUpgradeDatabaseId, 'active')
(If we don't get the DB ID this code will fail)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.