The structure view says when it could not tell the MySQL version

Open Beginner friendly
#543 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
cli, database

Research direction

Start by finding where the structure read decides the MySQL version: the issue says the read falls back to the greeting's version when the two version reports disagree or the version line cannot be read. From there, follow that value into the structure view renderer to see where the CHECK constraints and partial-revoke sections are built, and add a notice naming both when the version is unknown. The wording lives in datarig's en and ko message catalogs, so add both entries and pin the text with a test alongside the existing structure-view tests; done means the view shows the notice and the rest of the structure is unchanged.

Written by the indexing model from the issue text.

Description

When datarig cannot tell the MySQL server's version (the two version reports disagree, or the version line cannot be read), the structure view reads in the form for the version the server greets with.

Behind a proxy that greets as an older MySQL than the server really is (for example a greeting below 8.0.16 in front of 8.0.16 or later):

  • CHECK constraints are not listed;
  • a global privilege that a partial revoke has taken back for one schema may still be counted.

Nothing is written from this view. The limit is that the view is silent about it.

Plan

  • When the version is not known, the structure view says so in datarig's own words (en and ko). It names what may be missing: CHECK constraints, and partial revokes.
  • The rest of the structure is shown as today.
  • Pin the wording with a test.

History

  • Found while planning the per-engine structure reads (#353). The structure read keeps the greeting's version when the version is unknown, which is the current behaviour, so working setups do not lose their structure.
Dominant language
Rust
Stars
166
Forks
8
Avg merge
4h 24m
Merged PRs (30d)
291

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DokaDev/datarig

All issues in DokaDev/datarig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.