Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MLv2] [BE] [Bug] queryFromTableOrCardMetadata does not set database id #37303

Closed
Tracked by #36983
ranquild opened this issue Jan 5, 2024 · 1 comment
Closed
Tracked by #36983
Assignees
Labels
.metabase-lib Label for tracking all issues related to the shared CLJC metabase-lib .Team/QueryProcessor :hammer_and_wrench: Type:Bug Product defects

Comments

@ranquild
Copy link
Contributor

ranquild commented Jan 5, 2024

const nextTable = Lib.tableOrCardMetadata(query, tableId);
const nextQuery = Lib.queryFromTableOrCardMetadata(query, nextTable);

results in a broken query - database is null:
Screenshot 2024-01-05 at 17 20 03

@darksciencebase darksciencebase added Type:Bug Product defects .metabase-lib Label for tracking all issues related to the shared CLJC metabase-lib .Team/QueryProcessor :hammer_and_wrench: labels Jan 5, 2024
@snoe snoe self-assigned this Jan 8, 2024
@ranquild
Copy link
Contributor Author

ranquild commented Jan 8, 2024

I had to call Lib.metadataProvider with a new database id, others things didn't work. Closing.

@ranquild ranquild closed this as completed Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.metabase-lib Label for tracking all issues related to the shared CLJC metabase-lib .Team/QueryProcessor :hammer_and_wrench: Type:Bug Product defects
Projects
None yet
Development

No branches or pull requests

3 participants