Skip to content

Releases: Oreoxmt/tidbcloudy

1.1.0

08 Oct 11:35
4fcea06
Compare
Choose a tag to compare

What's Changed

Add test cases for tidbcloudy by @Oreoxmt in #28

  • Support specifying timezone in timestamp_to_string() and get_current_year_month()

  • Implement a mock server using Flask to facilitate testing

  • Expand test coverage for the following API endpoints:

    • List the cloud providers, regions and available specifications
    • List all accessible projects
    • Create a project
    • List all clusters in a project
    • Get a cluster by ID
    • Create a cluster
    • Modify (pause or resume) a cluster
    • Delete a cluster
    • List AWS Customer-Managed Encryption Keys for a project
    • Configure AWS Customer-Managed Encryption Keys for a project
  • Enhance testing for certain internal features:

    • the to_object and from_object functions of TiDBCloudyBase
    • util.timestamp.py
    • the CreateClusterConfig and UpdateClusterConfig in tidbcloudy.specification
  • Fix the incorrect subclass and type hint of BillingMonthSummaryByService

Full Changelog: v1.0.10...v1.1.0

1.0.10

05 Oct 02:40
ce06157
Compare
Choose a tag to compare

Release on Oct 5, 2023

Compatible with TiDB Cloud v1beta and v1beta1

What's Changed

  • fix: wrong type descriptor in ProjectAWSCMEK class by @Oreoxmt in #26
  • feat: refactor the implementation of baseURL by @Oreoxmt in #27

Full Changelog: v1.0.9...v1.0.10

1.0.9

03 Oct 07:48
40f87c0
Compare
Choose a tag to compare

Release on Oct 3, 2023

Compatible with TiDB Cloud v1beta and v1beta1

What's Changed

Support three new endpoints, which are released in v1beta Release 20230328 by @Oreoxmt in #25

Full Changelog: v1.0.8...v1.0.9

1.0.8

03 Oct 05:03
9a0f998
Compare
Choose a tag to compare

Release on Oct 3, 2023

Compatible with TiDB Cloud v1beta and v1beta1

What's Changed

Support the newly added billing endpoint GET https://billing.tidbapi.com/v1beta1/bills/{YYYY-MM}, which is compatible with TiDB Cloud API v1beta1 Release 20230928 by @Oreoxmt in #24

To be compatible with TiDB Cloud API v1beta and v1beta1 in the current release (1.0.8), the following changes are made:

  • Introduce the tidbcloudy.baseURL module to specify the base URL of the API server. For v1beta, the base URL is https://api.tidbcloud.com/v1beta. For the billing system v1beta1, the base URL is https://billing.tidbapi.com/v1beta1.
  • To support v1beta and v1beta1 in 1.0.8, Context.base_url is removed. Instead, Context().call_...() methods accept a base_url parameter to specify the base URL of the API server.
  • To reduce the change of preceding code, such as the Project, Cluster, Backup, and Restore classes, the v1beta base URL is set as the default value when calling Context().call_...() methods.
  • Introduce the TiDBCloud().get_monthly_bill() method to support the newly added billing endpoint Return organization monthly bills and describe the usage in examples/v1beta1_get_monthly_bill.py.

Full Changelog: v1.0.7...v1.0.8

1.0.7

02 Oct 14:29
aa205cc
Compare
Choose a tag to compare

Release on Oct 2, 2023

What's Changed

  • To provide async API and support HTTP/2 in the future, replace requests with httpx by @Oreoxmt in #23

Full Changelog: v1.0.6...v1.0.7

1.0.6

02 Oct 14:28
944fc7f
Compare
Choose a tag to compare

Release on Oct 2, 2023

What's Changed

  • feat: publish the package to PyPI when a v* tag is created by @Oreoxmt in #19
  • fix: fail to get the current IP address (SSLError: HTTPSConnectionPool) by @Oreoxmt in #22

Full Changelog: v1.0.5...v1.0.6

1.0.5

02 Oct 03:38
9a5f88b
Compare
Choose a tag to compare

Release on Oct 2, 2023

What's Changed

Improvements

  • Support TiDB Cloud API Release 20230602: rename "Serverless Tier" to "TiDB Serverless" and "Dedicated Tier" to "TiDB Dedicated"
  • Support TiDB Cloud API Release 20230801: add cluster status: MAINTAINING and PAUSING
  • Decrease the interval_sec when creating a TiDB Serverless cluster in examples/2_1_create_serverless_cluster.py
  • Remove the add_ip_access and add_current_ip_access config in README: they are ignored when creating a TiDB Serverless cluster
  • Use raise_for_status instead of status_code to get the current IP address
  • Use HTTPS to get the current IP address

Bug Fixes

  • Fix the issue that AttributeError: 'NoneType' object has no attribute 'cluster_status' error is reported when running examples/2_1_create_serverless_cluster.py

Full Changelog: v1.0.4...v1.0.5

1.0.4

02 Oct 03:31
f1edbd0
Compare
Choose a tag to compare

Release on May 18, 2023

What's Changed

  • Update the README and pyproject.toml.

Full Changelog: v1.0.3...v1.0.4

1.1.0a2

05 Dec 05:04
e334047
Compare
Choose a tag to compare
1.1.0a2 Pre-release
Pre-release

What's Changed

  • Fix the issue that an unexpected keyword argument error occurs when creating a cluster. DO NOT USE for now.

1.0.3

05 Dec 05:04
c29d334
Compare
Choose a tag to compare

Release on Dec 5, 2022

What's Changed

  • Release 1.0.3 by @Oreoxmt in #16
    • wait_for_ready is deprecated and replaced by wait_for_available
    • Fix the issue that wait_for_available fails to get the status of a cluster when creating (Close #13)

Full Changelog: v1.0.2...v1.0.3