4.2. Managing Configurations

Configuration data is loaded into MQC by loading configuration source files. There are different types of configuration source files to handle different groups of configuration data:

  • Project Structure configuration source file

    Contains configuration data like expected artifacts, project milestones, and one or multiple artifact structures (see Project Structure).

  • Quality Model configuration source file

    Contains configuration data like expected measures, quality properties including the corresponding measurement functions and one or multiple quality model structures (see Quality Model).

  • Targets configuration source file

    Contains target values for specific data measures, or quality properties per artifact and milestone (see Target Values).

  • Annotations configuration source file

    Contains annotations configuration (see Annotations).

  • Pages Layouts configuration source file

    Contains the layout configuration of pages like the Quality page (see Pages Layouts).

  • Dashboard Pages configuration source file

    Contains the configuration of dashboard pages (see Dashboards).

  • Custom Pages configuration source file

    Contains the configuration of user specific pages (see Custom Pages).

The format of configuration source files can be YAML, JSON or Excel.

4.2.1. Load / Reload

All configuration source files can be loaded via the left-hand side configuration menu (see Figure 4.8). To open the menu panel, click on the icon shown in the top-right.

../../_images/MQC_ManagingConfigurations_Menu.png

Figure 4.8 Open the configuration menu by clicking on the button in the left-hand side panel.

Then select the corresponding configuration group to add a configuration source file.

../../_images/MQC_ManagingConfigurations_Import.png

Figure 4.9 Dialog to manage one or multiple configuration source files, for example target value sources.

Configuration source files are loaded by using the Add button.

The “Add Source” Dialog allows the loading of a configuration source file from your local file system, if the MQC desktop client is used. Loading form a network path, git or selecting from the sample projects is available both on the MQC desktop client and the web player.

For some configuration source types there are additional sources available, like the suggestions for quality models or the special adapters for custom adapters.

../../_images/MQC_ManagingConfigurations_Dialog.png

Figure 4.10 Dialog to add a configuration source file, for example a project structure source.

When using Git as the source, the repository url and the branch have to be inputed.

Git repositories that have already been used for other configuration sources or for data sources are shown in a dropdown to be selected with one click.

After cloning the git repository, by clicking on the clone button, the file tree of the git repository is shown in the state of the selected branch. A configuration source file can be choosen in the file browser.

More information about git sources can be found in the Git chapter of Data Sources.

../../_images/MQC_ManagingConfigurations_DialogGit.png

Figure 4.11 Dialog to add a configuration source file from git, for example a quality model source.

When adding a new configuration source file, the content is validated for consistency and, additionally, it is checked for conflicts against the already loaded source files. Potentially, a notification popup informs about the reason(s), why an load is not possible.

Each configuration source file may be independently:

  • Reloaded

    If after the load the file was changed at its physical location, MQC notifies about that as shown in Figure 4.9.

  • Exported

    For more details on exporting configuration source files see Export / Save.

  • Deleted

Besides, it is possible to do this for all loaded configuration source files at once by using the buttons next to the Add button.

4.2.2. Export / Save

Individual configuration source files are exported by using the Export button next to the configuration source file (see Figure 4.9). This will export the file in the format of the previous load.

To merge configurations from multiple loaded sources into a single source file, the Export multiple button next to Add button at the top of the dialog has to be used. This opens an additional Export dialog as shown in Figure 4.12. It is possible to select the relevant source files to be combined.

Additionally, this dialog provides the option to explicitly choose the file type of the combined export (YAML, JSON or Excel).

../../_images/MQC_ManagingConfigurations_ExportMultiple.png

Figure 4.12 Export dialog for exporting multiple configuration sources into one file with the option to define the file format.

For configuration data that can be changed directly in MQC, a Save/Save as functionality is available (see Figure 4.13).

../../_images/MQC_ManagingConfigurations_Save.png

Figure 4.13 Configuration changes inside the tool can be saved to configuration source files.

This applies to:

  • annotation sources

  • layout sources

  • dashboard sources

Any modification done by adding, deleting or refreshing configuration source files, finally, has to be applied by using the Update Project button.