Project

General

Profile

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.

Added by Ayush Khandelwal over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Immediate
Target version:
Start date:
07/18/2023
Due date:
07/18/2023
% Done:

100%

Estimated time:
2.00 h
Spent time:

Description

Score configuration for the extension:

  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.
  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.

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.

Also available in: Atom PDF