Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
d50fb86a
Unverified
Commit
d50fb86a
authored
4 months ago
by
Luis Paolini
Committed by
GitHub
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add table_id in the database fields endpoint (#49206)
Fixes
https://github.com/metabase/metabase/issues/14437
parent
83f0efc8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/metabase/api/database.clj
+2
-1
2 additions, 1 deletion
src/metabase/api/database.clj
with
2 additions
and
1 deletion
src/metabase/api/database.clj
+
2
−
1
View file @
d50fb86a
...
...
@@ -687,13 +687,14 @@
:table_id
[
:in
(
t2/select-fn-set
:id
Table,
:db_id
id
)]
:visibility_type
[
:not-in
[
"sensitive"
"retired"
]])
(
t2/hydrate
:table
)))]
(
for
[{
:keys
[
id
name
display_name
table
base_type
semantic_type
]}
fields
]
(
for
[{
:keys
[
id
name
display_name
table
table_id
base_type
semantic_type
]}
fields
]
{
:id
id
:name
name
:display_name
display_name
:base_type
base_type
:semantic_type
semantic_type
:table_name
(
:name
table
)
:table_id
table_id
:schema
(
:schema
table
""
)})))
;;; ----------------------------------------- GET /api/database/:id/idfields -----------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment