-
Notifications
You must be signed in to change notification settings - Fork 1
feat: added rating per role #104
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
base: master
Are you sure you want to change the base?
Conversation
src/Chat.tsx
Outdated
fetch('https://'+this.props.bot.id+'-app.azurewebsites.net/api/messages/kb/'+(activity.channelData.modelId || 'KB')+'/queries/'+activity.channelData.queryPartition+'/'+activity.channelData.queryId+'/rating',{ | ||
method: 'POST', | ||
headers: { accept: 'application/json', 'content-type': 'application/json' }, | ||
body: JSON.stringify({ action: (value === 1 ? 'up' : value === -1 ? 'down' : ''), explanation }), | ||
body: JSON.stringify({ action: (value === 1 ? 'up' : value === -1 ? 'down' : ''), explanation, role, channel: "webchat" }), |
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.
@janbadura proc tady cpeme do ratingu channel, vzdyt ten je v Query ulozeny jen pro konverzaci kde se query stala a ne pro kanal kde vznikl rating. Pri ratingu bereme v potaz jen roli
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.
fixed
src/Chat.tsx
Outdated
const urlParams = new URLSearchParams(window.location.search); | ||
const role = getRole(urlParams) |
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.
Tady bych klidne nechal funkci getRole
aby si params sehnala sama tim ze jsou dostupne globalne.
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.
fixed
Adding roles to knowledge base rating regarding:
https://feedyou.atlassian.net/jira/software/c/projects/FBOT/boards/12?assignee=5e261e43832d730ca20043ef&selectedIssue=FBOT-2811