Currently, user can define abbreviations in File -> Options and they are saved in the file <USER_HOME>/.datastudio/abbreviations.properties.
Add the ability to have an administrator level abbreviations file in <ADS_HOME>/abbreviations.properties. If this abbreviations file exists, ADS will merge the abbreviations defined in this file to those defined in the user file.
If both the user and administrator abbreviations files contain the same abbreviation, the one in the user file will take effect.
If both the user and administrator abbreviations files define the Expand On key, the one specified in the user file will take effect.
In File -> Options, only the user abbreviations are displayed and can be edited.
In the auto-completion pop-up, both the user and administrator abbreviations are displayed.
|
248 KB
![]() |
1 KB
Notes to QA:
- Place the administrator abbreviations file in <ADS_HOME>. Verify on Windows, Linux, and Mac that the administrator abbreviations are loaded properly on each platform.
- In File -> Options, verify all editors that support abbreviations.
SQL
Text
HTML
XML
Java
JavaScript
- For auto-completion, verify all editors that expand abbreviations and if the auto-completion pop-up is supported, verify that both user and administrator abbreviations are displayed in the auto-completion pop-up.
SQL
Text
HTML
XML
Java
JavaScript
MongoJS (shows JavaScript abbreviations)
AquaScript (shows JavaScript abbreviations)
- Regression testing: Do not specify an administrator abbreviations file. Abbreviations should function the same as before.
@Deepti - Verify this today for all editors in V17 and share the testing done and results.
@Deepti - Verify this today for all editors in V17 and share the testing done and results.
Issue #15024 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 17.0.11-12, 18.0.0-preview-73 |
No time estimate |
Notes to QA:
- Place the administrator abbreviations file in <ADS_HOME>. Verify on Windows, Linux, and Mac that the administrator abbreviations are loaded properly on each platform.
- In File -> Options, verify all editors that support abbreviations.
SQL
Text
HTML
XML
Java
JavaScript
- For auto-completion, verify all editors that expand abbreviations and if the auto-completion pop-up is supported, verify that both user and administrator abbreviations are displayed in the auto-completion pop-up.
SQL
Text
HTML
XML
Java
JavaScript
MongoJS (shows JavaScript abbreviations)
AquaScript (shows JavaScript abbreviations)
- Regression testing: Do not specify an administrator abbreviations file. Abbreviations should function the same as before.