Beispiel #1
0
    def dashboard_bugs_duration(plan, fact, auto_open, priorities, labels,
                                creators, repository, citrix_token,
                                local_user):
        if not (plan and fact):
            raise ValueError('both of plan and fact parameters are false')

        dc = DataController()
        data_dao = dc.get_issue_sqllite(query=None, expand=None)

        for priority in priorities:
            dashboard = BugsDurationDashboard()
            dashboard.dashboard_name = 'Bugs Life Cycle for '
            dashboard.items_on_chart = 10
            dashboard.min_item_tail = 5
            dashboard.plan = plan
            dashboard.fact = fact
            dashboard.auto_open = auto_open
            dashboard.repository = repository
            dashboard.citrix_token = citrix_token
            dashboard.local_user = local_user
            dashboard.priority = priority.strip()
            dashboard.creators = creators
            dashboard.labels = labels
            dashboard.prepare(data=data_dao)
            dashboard.export_to_plot()
Beispiel #2
0
    def dashboard_bugs_progress(plan, fact, auto_open, repository,
                                citrix_token, local_user):
        if not (plan and fact):
            raise ValueError('both of plan and fact parameters are false')

        dc = DataController()
        data_dao = dc.get_issue_sqllite(query=None, expand=None)

        dashboard = BugsProgressDashboard()
        dashboard.dashboard_name = 'BSSBox bugs progress'
        dashboard.items_on_chart = 20
        dashboard.min_item_tail = 5
        dashboard.plan = plan
        dashboard.fact = fact
        dashboard.auto_open = auto_open
        dashboard.repository = repository
        dashboard.citrix_token = citrix_token
        dashboard.local_user = local_user
        dashboard.prepare(data=data_dao)
        dashboard.export_to_plot()
Beispiel #3
0
    def dashboard_feature_domain_progress(self, plan, fact, details, projects,
                                          fixversion, auto_open,
                                          dashboard_type, dashboard_format,
                                          sprint, components, upload_to_file,
                                          labels):
        if not (plan and fact):
            raise ValueError('both of plan and fact parameters are false')

        dc = DataController()
        data_dao = dc.get_issue_sqllite(query=None,
                                        expand=None,
                                        upload_to_file=upload_to_file)

        project_list = projects  #["BSSPAY", "BSSUFM", "BSSBFAM", "BSSLIS"]
        for project in project_list:
            dashboard = FeatureProgressDomainDashboard()
            dashboard.dashboard_name = 'All features in ' + (fixversion  if project == "" else project) + \
                                        (('('+components + ')') if components != "" else "") + \
                                        ((' ' + sprint) if sprint != "" else "")
            dashboard.filter_list = [""]
            dashboard.items_on_chart = 40
            dashboard.min_item_tail = 6
            dashboard.plan = plan
            dashboard.fact = fact
            dashboard.details = details
            dashboard.auto_open = auto_open

            dashboard.project = project
            dashboard.fixversion = fixversion
            dashboard.dashboard_type = dashboard_type
            dashboard.dashboard_format = dashboard_format
            dashboard.sprint = sprint
            dashboard.components = components
            dashboard.labels = labels
            dashboard.prepare(data=data_dao)

            #lopen_list, ldev_list, lclose_list, lname_list = data_dao.get_sum_by_projects(dashboard.project, "",
            #                                                                                          fixversion)
            #for val in lname_list:
            #    dashboard.open_list, dashboard.dev_list, dashboard.close_list, dashboard.name_list
            dashboard.export_to_plot()
Beispiel #4
0
    def dashboard_bugs(plan, fact, auto_open, priorities, projects, statuses,
                       labels, repository):
        if not (plan and fact):
            raise ValueError('both of plan and fact parameters are false')

        dc = DataController()
        data_dao = dc.get_issue_sqllite(query=None, expand=None)

        for priority in priorities:
            dashboard = BugsDashboard()
            dashboard.dashboard_name = '{0}s in BSSBox'.format(priority.strip()) if labels == ''\
                else 'Showstoppers in BSSBox'
            dashboard.items_on_chart = 10
            dashboard.min_item_tail = 5
            dashboard.plan = plan
            dashboard.fact = fact
            dashboard.priority = priority.strip()
            dashboard.projects = projects
            dashboard.statuses = statuses
            dashboard.labels = labels
            dashboard.repository = repository
            dashboard.auto_open = auto_open
            dashboard.prepare(data=data_dao)
            dashboard.export_to_plot()
Beispiel #5
0
    def dashboard_arba_issues(plan, fact, auto_open, assignees, teams, details,
                              repository, citrix_token, local_user):
        if not (plan and fact):
            raise ValueError('both of plan and fact parameters are false')

        dc = DataController()
        data_dao = dc.get_issue_sqllite(query=None, expand=None)

        if details == 'issues':
            dashboard = ArbaIssuesDashboard()
            dashboard.dashboard_name = teams + ' issues tracking'
            dashboard.items_on_chart = 10
            dashboard.min_item_tail = 5
            dashboard.plan = plan
            dashboard.fact = fact
            dashboard.auto_open = auto_open
            dashboard.repository = repository
            dashboard.citrix_token = citrix_token
            dashboard.local_user = local_user
            dashboard.assignees = assignees
            dashboard.prepare(data=data_dao)
            dashboard.export_to_plot()
        elif details == 'review':
            dashboard = ArbaReviewDashboard()
            dashboard.dashboard_name = teams + ' review'
            dashboard.items_on_chart = 10
            dashboard.min_item_tail = 5
            dashboard.plan = plan
            dashboard.fact = fact
            dashboard.auto_open = auto_open
            dashboard.repository = repository
            dashboard.citrix_token = citrix_token
            dashboard.local_user = local_user
            dashboard.assignees = assignees
            dashboard.prepare(data=data_dao)
            dashboard.export_to_plot()