Creating Dashboard Folders With "Oid"
What I was trying to do is to move the dashboard folders from one environment to another, ex: from prod to dev
As so far i tried with the sisense web db 'tags' collection (that contains all the folders) move that into new environment
a method sisense suggested previously and it will work.
But my question is as i tested before using the api we cannot post the folder data with "oid", even if we do I cannot delete or modify the posted folder from the sisense ui
Because if we try to control this from mongodb code level later we must face dependencies i'm not sure
As i analysed this situation what i found is the posted oid will be entered into the database as a string, but is should accepted as ObjectId type of mongo, then only we can do similar function to that folder. More into technical side of this operation.
So what we able to do using the api is, WE MUST ABLE TO POST THE DATA WITH "OID" AND SISENSE SHOULD ACCEPT THAT AS A OBJECTID TYPE
But at the moment POST http://localhost:8081/api/v1/folders, this api call only accept "oid" as a string
My suggestion is, Can we have that folder api POST method modified accordingly
Meaning "oid" can acceptable as a string and while posting the backend will convert that as a ObjectId type,
Because i personally feel not to use the web db in code level and use the api instead
Thank you.
Please sign in to leave a comment.
Comments
0 comments