Conversation
Label(): string { | ||
return this.name + " - " + this.sampleType; | ||
} | ||
export interface ProfileTypeMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this to just use the message from the back end instead of packaging into data object. There does not seem that much benefit right now.
|
||
type Props = QueryEditorProps<DataSource, Query, MyDataSourceOptions>; | ||
|
||
export function QueryEditor(props: Props) { | ||
const [profileTypes, setProfileTypes] = useState<CascaderOption[]>([]); | ||
const [profileTypes, setProfileTypes] = useState<ProfileTypeMessage[]>([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cascader option are generated from this later on. Having this in raw messages makes it easier to search through them.
LabelSelector: string; | ||
ProfileType?: ProfileType; | ||
labelSelector: string; | ||
profileTypeId: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sending just the ID seems a bit more sensible than the while type, and backend only requires the ID anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Datasource: Implement the query API
Basic code to get a request from the front end, send a request to Fire and then parse and package into DataFrame and send back.
The format of the data frame is a bit simple as the data for the profile does not match our dataFrame structure that well and in the future that may be changed.