Task #3134
Task #3132: v94.5: Show scores for results in extension based on compile and run time settings
BE: Set property in the environment property file & score setting in the setting page for the extension.
Description
Score configuration for the extension:
- property setting should be set to true for dev and QA and false for prod. This will be set in the environments property file.
- server setting should be set to true by default but should be settable to false. This will be set in the server setting page i.e. QnaGenerationSetting.
So, we will never see this in prod. But, it will visible by default in QA and Dev so that we can test how accuarate our "match messages" are.
1. property setting should be set to true for dev and QA and false for prod. This will be set in the environments property file.
qa.credentialConfig.properties and dev.credentialConfig.properties
- create a property named "extension.display.score" and set the value as true
prod.credentialConfig.properties
- create a property named "extension.display.score" and set the value as false
create Variable in GlobalUtility.java named 'isExtensionDisplayScoreEnabled'.
Create a method in GlobalUtility.java named "loadExtensionConfig()", which will get the value from "extension.display.score" & set the value for isExtensionDisplayScoreEnabled.
2. server setting should be set to true by default but should be settable to false. This will be set in the server setting page i.e. QnaGenerationSetting.
Create a setting named "Display score in extension" in QNA generation -> settings page.
(display this setting for QA and dev but not for prod)
- Add one toggle button. This is for saving the 'displayScoreInExtn'. This will be the boolean value. By default, this will be 'true'.
- Add 'Set' button.