Beispiel #1
0
    def dashboard_yota_burndown(auto_open, repository, mssql_query_file,
                                dashboard_type, citrix_token, local_user,
                                labels, dashboard_name, start_date, end_date):
        dc = DataController()
        data_spent = dc.get_issues_mssql(mssql_query_file=mssql_query_file[0])
        data_original = dc.get_issues_mssql(
            mssql_query_file=mssql_query_file[1])

        dashboard = None
        for dt in dashboard_type:
            if dt == 'TOTAL':
                dashboard = YotaBurndownDashboard()
            elif dt == 'DOMAIN':
                dashboard = YotaDomainBurndownDashboard()
            elif dt == 'WORKS':
                dashboard = YotaWorksBurndownDashboard()
            dashboard.dashboard_name = dashboard_name
            dashboard.auto_open = auto_open
            dashboard.repository = repository
            dashboard.citrix_token = citrix_token
            dashboard.local_user = local_user
            dashboard.labels = labels
            dashboard.start_date = datetime.datetime.strptime(
                start_date, '%d.%m.%y').date()
            dashboard.end_date = {
                scope: datetime.datetime.strptime(date, '%d.%m.%y').date()
                for scope, date in end_date.items()
            }
            dashboard.multi_prepare(data_spent=data_spent,
                                    data_original=data_original)
            dashboard.export_to_plot()
Beispiel #2
0
    def dashboard_ba_work_distribution(auto_open, repository, mssql_query_file,
                                       citrix_token, local_user):
        dc = DataController()
        data = dc.get_issues_mssql(mssql_query_file=mssql_query_file)

        dashboard = BaWorkDistributionDashboard()
        dashboard.dashboard_name = 'Business Analysts work distribution'
        dashboard.auto_open = auto_open
        dashboard.repository = repository
        dashboard.citrix_token = citrix_token
        dashboard.local_user = local_user
        dashboard.prepare(data=data)
        dashboard.export_to_plot()
Beispiel #3
0
    def dashboard_iot(auto_open, repository, mssql_query_file, citrix_token,
                      local_user):
        dc = DataController()
        data = dc.get_issues_mssql(mssql_query_file=mssql_query_file)

        dashboard = IotDashboard()
        dashboard.dashboard_name = 'IoT Super Sprint 10'
        dashboard.auto_open = auto_open
        dashboard.repository = repository
        dashboard.citrix_token = citrix_token
        dashboard.local_user = local_user
        dashboard.prepare(data=data)
        dashboard.export_to_plot()
Beispiel #4
0
    def dashboard_all_bugs(auto_open, repository, mssql_query_file,
                           citrix_token, local_user):
        dc = DataController()
        data = dc.get_issues_mssql(mssql_query_file=mssql_query_file)

        dashboard = AllBugsDashboard()
        dashboard.dashboard_name = 'All bugs in BSSBox and Domains projects'
        dashboard.repository = repository
        dashboard.auto_open = auto_open
        dashboard.citrix_token = citrix_token
        dashboard.local_user = local_user
        dashboard.prepare(data=data)
        dashboard.export_to_plot()
Beispiel #5
0
    def dashboard_sprint_burndown(auto_open, repository, mssql_query_file,
                                  dashboard_type, citrix_token, local_user,
                                  dashboard_name, start_date, end_date):
        dc = DataController()
        data_spent = dc.get_issues_mssql(mssql_query_file=mssql_query_file[0])
        data_original = dc.get_issues_mssql(
            mssql_query_file=mssql_query_file[1])

        for dt in dashboard_type:
            dashboard = SprintBurndownDashboard(
            ) if dt == 'SPRINT' else DomainBurndownDashboard()
            dashboard.dashboard_name = dashboard_name
            dashboard.auto_open = auto_open
            dashboard.repository = repository
            dashboard.citrix_token = citrix_token
            dashboard.local_user = local_user
            dashboard.start_date = datetime.datetime.strptime(
                start_date, '%d.%m.%y').date()
            dashboard.end_date = datetime.datetime.strptime(
                end_date, '%d.%m.%y').date()
            dashboard.multi_prepare(data_spent=data_spent,
                                    data_original=data_original)
            dashboard.export_to_plot()
Beispiel #6
0
    def dashboard_bssbox_bugs_tracking(auto_open, repository, mssql_query_file,
                                       citrix_token, local_user,
                                       dashboard_name):
        dc = DataController()
        data = dc.get_issues_mssql(mssql_query_file=mssql_query_file)

        dashboard = BssboxBugsTrackingDashboard()
        dashboard.dashboard_name = dashboard_name
        dashboard.auto_open = auto_open
        dashboard.repository = repository
        dashboard.citrix_token = citrix_token
        dashboard.local_user = local_user
        dashboard.prepare(data=data)
        dashboard.export_to_plot()
Beispiel #7
0
    def dashboard_sprint_info(auto_open, repository, mssql_query_file,
                              dashboard_type, citrix_token, local_user,
                              dashboard_name, end_date):
        dc = DataController()
        data = dc.get_issues_mssql(mssql_query_file=mssql_query_file)

        for dt in dashboard_type:
            dashboard = SprintInfoDashboard(
            ) if dt == 'DOMAIN' else FeatureInfoDashboard()
            dashboard.dashboard_name = dashboard_name
            dashboard.auto_open = auto_open
            dashboard.repository = repository
            dashboard.citrix_token = citrix_token
            dashboard.local_user = local_user
            dashboard.end_date = datetime.datetime.strptime(
                end_date, '%d.%m.%y').date()
            dashboard.prepare(data=data)
            dashboard.export_to_plot()