Fixed loading the organization abbrevation from organization.json #951
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixed the web portal always loading the organization's full name as its abbrevation, rather than the abbrevation provided by the admin during setup. Both strings are stored in the
organization.json
config file.Motivation and Context
XDMoD allows the administrator to enter an abbrevation for their organization name, which may otherwise be lengthy ("CHPC" vs. "Center for High Performance Computing"). However, XDMoD has not been using the abbrevation for anything (except in
/xdmod/classes/XDReportManager.php
), perhaps because it has not been loaded correctly. This change fixes only the incorrect loading but does not change how the name/abbrev variables are used.In future PRs it would be nice to change some instances of ORGANIZATION_NAME to ORGANIZATION_NAME_ABBREV in the web portal. For example,
/xdmod/classes/DataWarehouse/Query/Jobs/Statistics/UtilizationStatistic.php
includes 6 instances of the full name in its description paragraph, and the usage of the full name in the main statistics menu may lead to cropping on smaller monitors (especially when nesting queries). Most of these could be changed to the shorter abbrevation without losing any semantic clarity.Types of changes
Checklist: