Release Readiness Dashboard
Groups of Queries
One of the key requirements for the Release Readiness Dashboard was to have multiple widgets of information. Each widget was to contain visuals for at least one data set. In addition, there was also a need for a numeric view that only displays the current count in cases when a view of historic data is not necessary. The above design was the result of those requirements.
Interpreted in terms of what is stored in the database, each grid on the view represents a
group that can have multiple
queries. I.e. a one-to-many relationship. Groups can be specified to be a
number, or both, eventually affecting how it will be loaded on the front view.
Queries are stored in the database as a
JSON formatted string with
Qb structure, and used to dynamically request for data from Elastic Search each time a page is loaded. No Bugzilla data is stored locally on the dashboard’s server. After the data is retrieved from Elastic Search and depending on the group’s type, a plot (or number) is then generated on the fly and appended onto the view.
Moving forward, another requirement was to have default groups that will display for every version of a specific product. Being linked to through a
group.version_id meant that a new group had to be created every time a new version is being set up. The solution to this problem: Polymorphic objects.
With each group as a polymorphic object, we are able to link rows in the same
group table to different entities like
version. In terms of changes to the schema, we simply remove
group.version_id and replace it with a generic
group.entity_id. Note that an actual
FOREIGN KEY constraint cannot be reinforced here.
We are now able to define default groups by linking it to a product as a polymorphic object. However, because a single product group and its corresponding queries can now used across different versions, some version dependent text in fields like
query.query_qb must be changed dynamically before it can be useful.
To solve this issue, soft tags like
<version_title> are stored in place of the version dependent text and replaced by the corresponding version’s values when being requested on the server.
So here we have it; Multiple groups that each display multiple data sets:
- With the option to display the group as a plot or a current count.
- With the option to display the group for an individual version (custom group) or for all versions of a product (default group).