Skip to content

[sqllab] surfacing more table metadata (indices, pk, fks) - #1485

Merged
mistercrunch merged 3 commits into
apache:masterfrom
mistercrunch:metadata
Nov 1, 2016
Merged

mistercrunch merged 3 commits into
apache:masterfrom
mistercrunch:metadata

Conversation

@mistercrunch

Copy link
Copy Markdown
Member

Comment thread caravel/views.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pep8 nit, line len should be 79

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to find how to enable up to 90 on codeclimate...

Comment thread tests/core_tests.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please extend this test and check in case of MySQL db engine that the code returns: index, pk and fk ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it and didn't want to write backend specific tests but I guess it's not very hard. I'll add mysql/postgres-specific assertions

@bkyryliuk

Copy link
Copy Markdown
Member

not sure about black background for the modal window

@bkyryliuk

Copy link
Copy Markdown
Member

LGTM, once the test covers the retrieval of the pk, fk and index for mysql engine.

@mistercrunch

Copy link
Copy Markdown
Member Author

The black color is the normal color for tooltip on our theme. I thought of using popovers but tooltips work pretty well

@mistercrunch
mistercrunch merged commit 61509bb into apache:master Nov 1, 2016
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.13.0 First shipped in 0.13.0 labels Feb 19, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* Expose more table/column metadata

* [sqllab] expose more table metadata

* more tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.13.0 First shipped in 0.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants