canonical / canonical/mysql-shell-client
`extended` parameter to `cluster.status` also accepts `int`, not only `bool`
- Dominant language
- Python
- Stars
- 2
- Forks
- 1
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 5
Description
From https://dev.mysql.com/doc/dev/mysqlsh-api-python/8.4/classmysqlsh_1_1dba_1_1_cluster.html#ac8824a5ae833052e4b0550a297e7c332 (same for 8.0):
> The following options may be given to control the amount of information gathered and returned.
>
> - extended: verbosity level of the command output.
>
> The extended option supports Integer or Boolean values:
>
> - 0: disables the command verbosity (default);
> - 1: includes information about the Metadata Version, Group Protocol Version, Group name, cluster member UUIDs, cluster member roles and states as reported by Group Replication and the list of fenced system variables;
> - 2: includes information about transactions processed by connection and applier;
> - 3: includes more detailed stats about the replication machinery of each cluster member;
> - Boolean: equivalent to assign either 0 (false) or 1 (true).
This is just a change in the type signature but wanted to note it here so we don't forget.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the Python type signature for cluster.status and compare it with the MySQL Shell API documentation linked in the issue. Update the signature to represent the documented integer and boolean values, then run the relevant package checks or tests to confirm the accepted types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100