rules repository

A-1060 Try to assign applications to an application group.

Severity Info Check + SQL-based Test Free New

Reason

Application groups organise the application list of a workspace. Once a workspace holds more than a handful of applications, ungrouped apps make it hard to find the right one and to apply group-wide conventions. Assign each application to a group under Application Properties › Application Group.

Small workspaces do not need groups; the check only applies from the number of applications set in ApexMinAppsForGroups.

Example

Non-Compliant Example

app CUSTOMERS (
    // ...
    // no applicationGroup
)
Issues
LineColumnMessage
15App is not assigned to an application group.

Compliant Solution - ★★★★★

app CUSTOMERS (
    // ...
    group: Sales
)

Tests

Test SQL query

select aa.workspace || '.' || aa.alias as identifier,
       'App ' || aa.alias || ' in ' || aa.workspace || ' is not assigned to an application group.' as message
  from apex_applications aa
 where aa.workspace in (#ApexWorkspaces#)
   and aa.application_group is null
   and #ApexMinAppsForGroups# <= (select count(*)
                                    from apex_applications a2
                                   where a2.workspace = aa.workspace)

Test results

IdentifierMessageMigration
WORKSPACE.CUSTOMERSApp CUSTOMERS in WORKSPACE is not assigned to an application group.-

Parameters

Use parameters to customize the rule to your needs.

ParameterDescriptionDefault Value
ApexMinAppsForGroupsMinimum amount of apps in a Workspace to require apps to be in groups5
ApexWorkspacesComma-separated List of APEX workspaces owning APEX applications to check.dblinter, dbl_gui

References