[feature-stats] Add filtering of data on the web-application side

Bug #1443347 reported by Alexander Kislitsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Alexander Kislitsky

Bug Description

We should filter data on the collector side. Additional configuration of rules for filtration sould be able to load from external config. If filtration rules are not provided, then all data will be marked as not filtered by collector.

Filtering rules structure: {release_id: {build_id: from_dt}}. If from_dt is not present, then stats from build_id is not marked as filtered. If from_date is present, then stats from build_id is marked as non filtered only after datetime greater than from_dt. Format of from_dt is ISO 8601.
from_dt timezone is UTC.

If filtering rules are present and release is not listed in filtering rules, data should be marked as filtered.
If build_id is not listed for release in filtering rules, data should be marked as filtered.

All other data will be marked as filtered.

Filtering rules example:

 {'6.1':
    {
        # 6.1 build 2015-04-13_234_13-12-31 became not filtered only
        # after 2015-04-30T23:00:18 UTC
        '2015-04-13_234_13-12-31': '2015-04-30T23:00:18',

        # 6.1 build 2015-04-13_06-18-10 not filtered
        '2015-04-13_06-18-10': None
  },
  '6.1.1': {}, # All builds of 6.1.1 filtered
  '7.0': None # All builds of 7.0 not filtered
 }

Work items:
- Handle filtration on the fuel-collector side,
- Handle filtering status in the CSV exporter.
- Handle filtering status in the fuel-stats web UI.

tags: added: feature-nailgun
removed: non-release
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/173384

Changed in fuel:
status: Triaged → In Progress
Dmitry Pyzhov (dpyzhov)
tags: removed: feature-nailgun
Dmitry Pyzhov (dpyzhov)
tags: added: non-release
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Alexander Kislitsky (<email address hidden>) on branch: master
Review: https://review.openstack.org/173384
Reason: Changes not required on Nailgun side

Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

This bug is not related to 6.1 codebase and does not affect our HCF. Moving to 7.0.

Changed in fuel:
milestone: 6.1 → 7.0
description: updated
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-stats (master)

Fix proposed to branch: master
Review: https://review.openstack.org/184480

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-stats (master)

Reviewed: https://review.openstack.org/184480
Committed: https://git.openstack.org/cgit/stackforge/fuel-stats/commit/?id=4b224453cc98196f6aba1253766421e5b3dfb9a4
Submitter: Jenkins
Branch: master

commit 4b224453cc98196f6aba1253766421e5b3dfb9a4
Author: Alexander Kislitsky <email address hidden>
Date: Wed May 20 15:59:50 2015 +0300

    Installation info filtering rules added to collector

    - Rules of filtering installation info added to the application config.
    - All data is saved as before, but filtered installation info is marked
      as filtered in the DB.
    - Boolean field added to installation info DB model for saving status
      of data filtration.
    - DB migration for adding filtration flag added.
    - Log level to applictaion logger set explicitly.
    - Optional build_id parameter added to installation info JSON schema.
    - Adding of migration files handled in the collector base test.
    - Requirement for python-dateutil added to the collector requirements.txt

    Change-Id: I99626f7f9495a0f36ed70af487d41a647250355b
    Partial-Bug: #1443347

description: updated
Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.