cube-js / cube

📊 Cube — The Semantic Layer for Building Data Applications
https://cube.dev
Other
17.78k stars 1.76k forks source link

getting a error "database undefined does not exist" while setting multi tenancy #8000

Open ghost opened 6 months ago

ghost commented 6 months ago

Hi everyone I am using cube cloud to do POC for our use case but i am struck at setting up the multi tenancy in cube.js file i have configured contextToAppId, contextToOrchestratorId, driverFactory, scheduledRefreshContexts and when i am trying to query the models in the playground its throwing an error database "undefined" does not exist please can anyone can guide me on this in the sql runner i am getting all the tables and data of the respective database that i am setting dynamically i am posting screenshots below.

Screenshot 2024-03-26 at 4 41 14 PM Screenshot 2024-03-26 at 4 42 12 PM Screenshot 2024-03-26 at 4 42 00 PM
igorlukanin commented 5 months ago

Hi @mohitPanwar1996 👋

I've tried to reproduce exactly your setup on the latest Cube version (0.35.7) and it works exactly as it should, correctly picking up the databases based on the security context:

Screenshot 2024-04-04 at 16 06 15 Screenshot 2024-04-04 at 16 06 01

Could you please upgrade to the latest version and double-check?

igorlukanin commented 4 months ago

@mohitPanwar1996 Have you tried the latest version? Is this issue still relevant?

ghost commented 4 months ago

Yes, updated to the latest cube version but it is still persistent and happening in the cube cloud only not in cube-core.

On Tue, 14 May 2024 at 16:06, Igor Lukanin @.***> wrote:

@mohitPanwar1996 https://github.com/mohitPanwar1996 Have you tried the latest version? Is this issue still relevant?

— Reply to this email directly, view it on GitHub https://github.com/cube-js/cube/issues/8000#issuecomment-2109858931, or unsubscribe https://github.com/notifications/unsubscribe-auth/BE46EIYPRJXPTQEDUQOC57LZCHSLDAVCNFSM6AAAAABFI3BWHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZHA2TQOJTGE . You are receiving this because you were mentioned.Message ID: @.***>

igorlukanin commented 4 months ago

Could you please email a link to your deployment in Cube Cloud to igor@cube.dev? With your permission, I can check the logs of the deployment.