Example #1
0
    def dashboard_feature_progress(self, plan, fact, details):
        if not (plan and fact):
            raise ValueError('both of plan and fact parameters are false')

        dc = DataController()
        data = dc.get_pandas_issues(query=None, expand=None)

        df1 = data[(data.issuetype == "Epic") |
                   (data.issuetype == "Documentation")]
        df2 = df1[df1["labels"].str.contains(pat="num")]
        d = df2['labels'].to_dict()

        fl = get_feature_list(d)
        # fg = get_group_list(d)
        fser = get_feature_series(fl, 2)

        dashboard = FeatureProgressDashboard()

        for i in range(0, len(fser)):
            dashboard.dashboard_name = 'Feature F-{0}'.format(
                i)  # str(i).zfill(1)
            dashboard.filter_list = ['num{0}'.format(i)]
            dashboard.items_on_chart = 40
            dashboard.min_item_tail = 6
            dashboard.plan = plan
            dashboard.fact = fact
            dashboard.details = details

            dashboard.prepare(data=data)
            dashboard.export_to_plot()
Example #2
0
    def dashboard_reference_implementation(self):
        dc = DataController()
        data = dc.get_pandas_issues(query=None)

        options = cc_klass().read_dashboards_config()
        data_path = options[config_controller.FEATURE_PROGRESS_FILE]

        data_dict = data.to_dict(orient='index')
        serializable_data_dict = iu.serialize(data_dict)
        DashboardController.save_to_json(data=serializable_data_dict,
                                         file_path=data_path)
Example #3
0
    def dashboard_heatmap(self):
        dc = DataController()
        data = dc.get_pandas_issues(query=None, expand='')

        df1 = data[data.issuetype == "Epic"]
        df2 = df1[df1["labels"].str.contains(pat="num")]
        d = df2['labels'].to_dict()

        fl = get_feature_list(d)
        fgl = get_feature_series(fl, 3)

        dashboard = FeatureHeatmapDashboard()

        for i in range(0, 1):
            dashboard.dashboard_name = i  # str(i).zfill(1)
            dashboard.prepare(data=df2)
            dashboard.export_to_plot()
Example #4
0
    def dashboard_feature_group_progress(self, plan, fact, details):
        if not (plan and fact):
            raise ValueError('both of plan and fact parameters are false')

        dc = DataController()
        data = dc.get_pandas_issues(query=None, expand=None)

        dashboard = FeatureProgressDashboard()

        #Dashbord parameters

        #filter to search epics (feature group)
        fg_list = FEATURE_GROUP_LIST.split(sep=';')
        dashboard.filter_list = fg_list

        dashboard.dashboard_name = "Feature Group Dashboard"
        dashboard.items_on_chart = 30
        dashboard.min_item_tail = 6
        dashboard.plan = plan
        dashboard.fact = fact
        dashboard.details = details

        dashboard.prepare(data=data)
        dashboard.export_to_plot()