A passionate coder with motivation to create
At least a cup of coffee per 20 lines of code โ
danitseitlin / redis-cloud-api-sdk Goto Github PK
View Code? Open in Web Editor NEWRedis Cloud API SDK
License: Apache License 2.0
Redis Cloud API SDK
License: Apache License 2.0
It will help to add the DB password to the db properties (when running the getDatabase call)
Version: 1.1.6
Rename the NPM package name to redis-cloud-api-sdk
and deprecate rl-cloud-api-sdk
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.
Steps:
dbGcpPreUpgradeUpdatedParameters = { memoryLimitInGb: 70, throughputMeasurement: { by: 'operations-per-second', value: 4000 }, supportOSSClusterApi: true, useExternalEndpointForOSSClusterApi: true, replication: false }
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 +
Version 1.1.6
It will help if the Api will include the function- wait for all databases under subscription to be active.
(for a scenarios when the subscription is active but the databases are still pending)
Use API endpoint https://api.redislabs.com/v1/v2/api-docs?group=Redis Labs Cloud API - Version 1
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)
It's might be a good idea to add -
wait for all subscriptions to reach state X
Reference to existing PR
What needs to be done:
Reference to existing PR
What needs to be done:
Add a table to the README comparing between API endpoints and the functions relevant to them in the SDK
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.
We should implement a deploy bot using the npm-package-deployer for deployment on commit into the master branch.
Possible fix:
rename type Task
to type TaskObject
in types/task.ts
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.