-
Notifications
You must be signed in to change notification settings - Fork 14
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
Rating tool integration btp #268
Changes from 12 commits
727a967
2c0e70d
f83be33
376920c
01e28fa
d457118
aa19c9e
91dd6f3
c2cd5ba
5301393
ce51fe3
1811475
8c52544
63dfa0f
2c7afaa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,6 @@ const config = [ | |
issues: JSON.stringify(issues), | ||
}, | ||
}, | ||
{ | ||
id: "plugin-rating", | ||
scope: PluginScope.PAGE, | ||
}, | ||
{ | ||
id: "tool-performance", | ||
scope: PluginScope.EXPERIMENT, | ||
|
@@ -39,7 +35,30 @@ const config = [ | |
repo: "https://github.com/virtual-labs/tool-validation", | ||
tag: "v1.0.1", | ||
command: "npm i && node js/link_validation.js", | ||
} | ||
}, | ||
{ | ||
id: "svc-rating", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is the ratings config different between testing and prod? It should be the same There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the testing one is correct. The prod one is based on the old approach of adding plugins to page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated the prod one. Had taken the prod one based on the old PR |
||
scope: PluginScope.PAGE, | ||
repo: "https://github.com/virtual-labs/svc-rating", | ||
tag: "v1.0.4", | ||
label: "Validation Tool", | ||
js_modules: [ | ||
"./index.js", | ||
"./config.js", | ||
"https://apis.google.com/js/api.js", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need api.js? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the api js script was present in the html of svc-rating tool as well. It is used for loading and initializing the Google API client library, |
||
], | ||
css_modules: [ | ||
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css", | ||
], | ||
attributes: { | ||
spreadsheetID: "1x12nhpp0QvnsA6x-O1sV4IA9SAbfVsq_wiexWkutOmU", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need spreadsheetID here? Isn't it passed as argument to the component There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The handlebar for rating display component takes the attributes specified in the config file. The rating display handlebar then gets rendered in the html pages. |
||
sheetName: "Experiment-Database", | ||
columnName: "Experiment Short Name", | ||
columnValue: "expName", | ||
title: "Rate this experiment", | ||
imagesDirectory: "./plugins/svc-rating/images/", | ||
}, | ||
}, | ||
]; | ||
|
||
module.exports = config; |
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.
All imports from enums.js can be combined in one statement
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.
Done, removed unnecessary imports as well