Hi Folks, We currently integrated (

Hi Folks, We currently integrated (iframe) the dashboard and we would like to know if there an event / notification when the user fills up the create dashboard form? We would like to perform extra action when its submitted.
No description
62 Replies
shikharTS
shikharTS4mo ago
I don't think we have an event. @jbc to confirm this. @Justin Mathew
jbc
jbc4mo ago
@Francis C Is Dashboard here refer to the Liveboards in thoughtspot system? At the moment, we don't have any event related to this. Can you please make a feature request? and we can get back on when this can be implemented and timelines?
Francis C
Francis COP4mo ago
Yea, I mean liveboards on TS. Will do, thank you @jbc
Nikhil Kumaran S
@shikharTS @Justin Mathew @jbc We already have save event for answers. If we can implement the same for liveboards that would be awesome.
shikharTS
shikharTS4mo ago
@Nikhil Kumaran S did you guys submit a feature request?
Nikhil Kumaran S
We didn't. From where can we raise it?
shikharTS
shikharTS4mo ago
You should be able to submit a feature request through the support portal
shikharTS
shikharTS4mo ago
ThoughtSpot Support Handbook | ThoughtSpot Cloud
We created this support handbook to describe our Support offering, so you can find resources to resolve your issues, and answer your questions.
Justin Mathew
Justin Mathew4mo ago
@Nikhil Kumaran S we do have an Save event for liveboard already , is it not working for you guys ?
Nikhil Kumaran S
Yes it's not emitting for us. Only answers save is emitting
rohitkanchan
rohitkanchan4mo ago
By save event u mean on create liveboard right @Justin Mathew Or u mean edit?
Nikhil Kumaran S
@Justin Mathew Can you share me an example code snippet to capture that event? It works for answers but not for liveboards
rohitkanchan
rohitkanchan4mo ago
cc @bill_da_golfer
bill_da_golfer
bill_da_golfer4mo ago
We do have an EmbedEvent.Save that gets sent when a liveboard is edited and then saved. However, from my testing it is not sent when a liveboard is created, either using the button in the liveboard page or by creating from an answer.
Is this a bug? If so, we should fix. If it's a feature (my opion) then we would want something like EmbedEvent.LiveboardCreated event to be sent in those scenarios to be able to capture that a liveboard is created. @Justin Mathew can you please confirm what I said above?
Nikhil Kumaran S
EmbedEvent.Save emited for answer creation but not liveboard creation. So I think we can consider this a bug
Justin Mathew
Justin Mathew4mo ago
Yes , @bill_da_golfer is correct , Save is emited only after Edit and Save not while Creation , this would be an feature request sorry for the delay @Nikhil Kumaran S can you create a Feature request for this, we'll try to get this to you cc: @utsav.kapoor @nic
Nikhil Kumaran S
@Justin Mathew I'm unable to create a feature request. The page keeps on spinning for me after I submit. I created an issue - https://community.thoughtspot.com/s/case/500Uk00000HqcQrIAJ/feature-request-emit-save-eventsstatus-start-end-for-liveboards-embed-while-saving-a-liveboard please change it to feature request from your side
rohitkanchan
rohitkanchan4mo ago
Can you guys please expedite this feature How long would it take
Justin Mathew
Justin Mathew4mo ago
@Nikhil Kumaran S @rohitkanchan i ll post it in internal channels and let you knwo cc: @utsav.kapoor @Nicolas also @Nikhil Kumaran S @rohitkanchan what version of thoughtspot are you on ?
Justin Mathew
Justin Mathew4mo ago
@rohitkanchan @Nikhil Kumaran S For now I do have a work around When user opens the liveboard creation dialogue you will get an hostEvent for dialog-open similary for dialog-close and when user is redirected to the liveboard page you will get a event for Route change with where it was change to PS : if you want to see what all events are fired you can use EmbedEvent.ALL and log it out
No description
No description
Justin Mathew
Justin Mathew4mo ago
cc: @bill_da_golfer
bill_da_golfer
bill_da_golfer4mo ago
@Justin Mathew Does the dialog open/close say it was due to a liveboard being created though? I.e. how do you know which dialog was opened and closed?
Justin Mathew
Justin Mathew4mo ago
no the dialog box wont have any info , but if the after the dialog opena and close ROUTE_CHANGE was triggered it would mean on the liveboard list page it would mean a liveboard was created , how would you know if customer went to liveboard list page ? ROUTE_CHANGE event is triggered for that as well ik its a bti janky but should work no ?
No description
bill_da_golfer
bill_da_golfer4mo ago
One other question for you @rohitkanchan. Imagine the scenario where a user creates a liveboard. Then they get added to or removed from a group. Do you expect anything to happen in that scenario? Or would it only be the sharing with the user creates the liveboard for those groups at that time?
rohitkanchan
rohitkanchan4mo ago
No, if user is being removed from group then they won’t have access as we are sharing with groups not users yet If we add sharing feature explicit in our product then i guess we can share with user separately I am not sure of open dialog is right way of going with it I would wait for on create feature , if possible please expedite that While showing dashboard, we are querying all existing dashboards, we are going to call share after that for now but that is not ideal for us
utsav.kapoor
utsav.kapoor4mo ago
@Nicolas @Himanshu Arora - Can you please take a look at this feature request ?
rohitkanchan
rohitkanchan4mo ago
Actually the solution which we were thinking may not work for us because we cannot share just like , there are other constraints @Nikhil Kumaran S is close dialog option which justin suggested is feasible ?
Nicolas
Nicolas4mo ago
@rohitkanchan please create a feature request in https://community.thoughtspot.com/s/ideas I would love to get some details on which information you would like that event to provide when the Liveboard is created (I assume LiveboardId, but anything else you'd leverage? How you will use that event in your app? The better we understand your pain point, the easier it'll be for us to prioritize. We look at Thanks!
rohitkanchan
rohitkanchan4mo ago
@Nicolas , Nikhil tried to create feature request but he said that he was not able to create that, yes we would need liveboardid, like in saving answer. We would use it for sharing liveboard with groups @Nikhil Kumaran S please add if we need anything else from UI side @bill_da_golfer regarding your comment on discord for user being removed from group, I am assuming if we share any liveboard with group X and if user A is being removed from group X then user A will not longer have access of liveboard @Nikhil Kumaran S can you please check this approach, can you call backend api with liveboardid Even if we need to add tag also to liveboard then we can do that if required,
Francis C
Francis COP4mo ago
@rohitkanchan We should be able to call the our BE api with liveboard id. I think the next question is in addition to liveboard id what else is needed to be able to share it to the group/org?
rohitkanchan
rohitkanchan4mo ago
@Francis C i don’t have anything else in our mind, whatever else is needed is all in our context, like groups to share with, orgid etc
Francis C
Francis COP4mo ago
Ok. That sounds good. liveboardid would be the only requirement then for our feature request.
rohitkanchan
rohitkanchan4mo ago
Yeah for feature request it is fine @Francis C , i m more curious to solve it right now Fr would take them some time and we are blocked on this Justin gave a workaround of route change event, we need to check if that is feasible
Francis C
Francis COP4mo ago
IMHO, I suggested this in the past as well is including our super admins to the customer org (ghost, etc...) will be ideal because it will also give our super admins access to other assets and not just liveboards.
rohitkanchan
rohitkanchan4mo ago
They are being added to orgs
Francis C
Francis COP4mo ago
Temporary adding super admin could be enough. Thats already available and we could clean it up later on.
rohitkanchan
rohitkanchan4mo ago
We already did that I can huddle on slack if u r not upto date there
Francis C
Francis COP4mo ago
Sure
rohitkanchan
rohitkanchan4mo ago
@Francis C i am talking about this
Francis C
Francis COP4mo ago
Ok, yea, It looks like it will work for a quick fix. It should be easy to track those events. Followup question @Justin Mathew are those dialog open close specific for the liveboard create or those are for any dialog?
Nikhil Kumaran S
@Francis C The dialog close event emites for other actions also, like delete. @Justin Mathew is saying we need to check if the next event after the dialog close is route change to liveboard id page, then consider it as liveboard creation. @Justin Mathew How do you propose to track the current and next event together? Keep the previous event in memory(ref, we are using Reactjs) and wait for next event and compare those? or do you have any other idea in mind? @Justin Mathew @Nicolas @utsav.kapoor @bill_da_golfer @shikharTS The above workaround works. But the ideal way is to implement the feature. Please treat it as priority and develop the feature. I couldn't raise a feature request so I raised this case - https://community.thoughtspot.com/s/case/500Uk00000HqcQrIAJ/feature-request-emit-save-eventsstatus-start-end-for-liveboards-embed-while-saving-a-liveboard
bill_da_golfer
bill_da_golfer4mo ago
@rohitkanchan just to confirm, if a user is a member of shareable Group A, they can share with that group. If they are removed from that group, the liveboard is still shared, but the user can't see that it's shared with the group (since it's no longer visible).
rohitkanchan
rohitkanchan4mo ago
Thanks, i was expecting that @bill_da_golfer Another quick question and strange response Strange response of api i mean We are creating sql view, here is the request {"sql_view": {"name": "syncari_user_table", "description": "copy of active syncari user entity", "connection" : {"name" : "NSFI14_CONNECTION"}, "sql_query" : "SELECT \"Syncari User\".\"email_domain\" \"Syncari User:Email Domain\",\"Syncari User\".\"organization_name\" \"Syncari User:Organization Name\",\"Syncari User\".\"sfdc_owner_id\" \"Syncari User:SFDC Owner ID\",\"Syncari User\".\"user_status\" \"Syncari User:User Status\",\"Syncari User\".\"user_created_date\" \"Syncari User:created date\",\"Syncari User\".\"end_date\" \"Syncari User:end date\",\"Syncari User\".\"instance_type\" \"Syncari User:instance type\",\"Syncari User\".\"last_login_date\" \"Syncari User:last login date\",\"Syncari User\".\"login_count\" \"Syncari User:login count\",\"Syncari User\".\"pipeline_count\" \"Syncari User:pipeline count\",\"Syncari User\".\"plan_name\" \"Syncari User:plan name\",\"Syncari User\".\"record_count\" \"Syncari User:record count\",\"Syncari User\".\"synapse_count\" \"Syncari User:synapse count\",\"Syncari User\".\"user_first_name\" \"Syncari User:user first name\",\"Syncari User\".\"user_last_name\" \"Syncari User:user last name\",\"Syncari User\".\"user_name\" \"Syncari User:user name\",\"Syncari User\".\"user_type\" \"Syncari User:user type\",\"Syncari User\".\"useremail\" \"Syncari User:useremail\" FROM syncari_nsfi14.\"syncari_user\" \"Syncari User\""}}"" Response i got as error is Response of SQL View creation is <200,[{"response":{"status":{"error_message":"Current user cannot edit the connection name: NSFI14_CONNECTION id: aafb3c29-3347-4e05-81c6-4978f8766420","status_code":"ERROR","error_code":14501}},"request_index":0}],[date:"Mon, 28 Oct 2024 21:33:17 GMT", content-type:"application/json", set-cookie:"rememberMe=deleteMe; Path=/callosum; Max-Age=0; Expires=Sun, 27-Oct-2024 21:33:17 GMT; SameSite=lax; secure; SameSite=None", "clientId=7c330dd5-9c88-4998-9e41-0f7622b3ad1f; Path=/; Secure; HttpOnly; SameSite=lax; SameSite=None", "rememberMe=deleteMe; Path=/callosum; Max-Age=0; Expires=Sun, 27-Oct-2024 21:33:17 GMT; SameSite=lax; secure; SameSite=None", x-callosum-incident-id:"3d3ba2a5-6151-4520-b6ef-810d557f58e3", x-callosum-request-time-us:"97156", x-callosum-trace-id:"ba3ab1a0-7b96-48a6-8f58-0eee98404b68", x-content-type-options:"nosniff", x-ua-compatible:"IE=edge", x-xss-protection:"1; mode=block", server:"ThoughtSpot", content-security-policy:"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://mfe-cdn.thoughtspotdev.cloud https://mfe-cdn.thoughtspotstaging.cloud https://mfe-cdn.thoughtspot.cloud https://docs.thoughtspot.com https://cdn.segment.com https://cdn.mxpnl.com https://api.segment.io https://*.intercom.io/ https://js.intercomcdn.com/ https://*.wistia.com https://*.wistia.net https://pendo-io-static.storage.googleapis.com https://cdn.pendo.io https://app.pendo.io https://data.pendo.io https://pendo-static-5110210082111488.storage.googleapis.com https://d3sbxpiag177w8.cloudfront.net https://cdn.skypack.dev cdn.jsdelivr.net https://edge.fullstory.com https://rs.fullstory.com https://assets.trybento.co https://app.cord.com https://embeddable-sandbox.cdn.apollographql.com https://mfe- It says user does not have permission to update connection Is creating sql view user needs to have permission to update connection? @shikharTS ? @bill_da_golfer any thoughts? And user who is doing this operation has managed data permission
shikharTS
shikharTS4mo ago
I checked from the code : Only admin/author of datasource can create table in datasource. Also can you please create a new thread for any new query in #help ? It becomes difficult to respond to a single thread. Others who are not tagged cannot see the query..
rohitkanchan
rohitkanchan4mo ago
Sure shikhar but another quick question can we share connection with share metadata api
shikharTS
shikharTS4mo ago
No you cannot
rohitkanchan
rohitkanchan4mo ago
Then how can we share connection with a group? Above error which i posted is because of assumption which we made that group of same users will have access How can we share connection through api with a group? And these questions are regarding same context so i don’t think different thread make sense
shikharTS
shikharTS4mo ago
You can't share a connection, but you can share a worksheet. Does that help with your use-case?
No description
rohitkanchan
rohitkanchan4mo ago
No I see share button on ui for connection Worksheet creation is not possible if connection is not accessible by a user right Because we first create sql view and then create worksheet from it Sql view creation is throwing error i listed above
shikharTS
shikharTS4mo ago
What is the use case for allowing any user to create a SQL view? Only the owner should be allowed to create a SQL view right? And then share that SQL view with a group. I do not think there is any API for sharing connection currently
rohitkanchan
rohitkanchan4mo ago
For our use case users are allowed to create sql views Another feature request i guess These issues which we are facing, ur other embed customers did not face same? Curious to know
utsav.kapoor
utsav.kapoor4mo ago
@rohitkanchan - I havent seen same questions. Adding @bill_da_golfer / @Nicolas to see if they have some recommendations on the above
rohitkanchan
rohitkanchan4mo ago
Okay We would need connection share as well
bill_da_golfer
bill_da_golfer4mo ago
Slight correction. You can share connections. I believe the user has to have permissions to manage connections (if using roles) or can manage data. Or admin. See https://docs.thoughtspot.com/cloud/latest/connection-share
Share a connection | ThoughtSpot Cloud
You can share a connection to allow users to edit tables included in a connection.
rohitkanchan
rohitkanchan4mo ago
@bill_da_golfer yeah i saw on UI but we would need that via api
bill_da_golfer
bill_da_golfer4mo ago
Thanks. Missed that detail. Seems weird we can do via UI and not API.
rohitkanchan
rohitkanchan4mo ago
Yeah, there should be an api as well Can you guys please create this FR We will live for now manually sharing connection as this is one time per org but we want to automate this @bill_da_golfer quick question, is there a way to revoke access of objects like Answers, liveboard from user who created it According to our current setup we want asset access only to groups, no access to anyone else except Admin
Nikhil Kumaran S
@Justin Mathew @Nicolas @utsav.kapoor @bill_da_golfer @shikharTS Do we have any update on this feature request?
Nicolas
Nicolas3mo ago
Hi @Nikhil Kumaran S - it is under consideration, but there are no timelines yet. When we have this better defined and in progress, we will be in a better position to provide estimated delivery dates.
rohitkanchan
rohitkanchan3mo ago
Quick question, i deleted one org in our cluster and its user as well, i m creating same org again with same usernames, i am getting error username already exists Does it take time to cleanup?

Did you find this page helpful?