Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • P plugin_dbui
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

Now running Gitlab v15.9.3. More info.

  • w2pext
  • plugin_dbui
  • Issues
  • #9
Closed
Open
Issue created Nov 03, 2015 by LE GAC Renaud@legacOwner

Review the initialisation of the Selector class

  • It should be easy to initialize a selector also there is no data in the request.var
  • The user case can be found in track_publications/graph/dashboard
  • The current code:
    cfg = Storage()
    cfg.Graph_selectorCumulative = 'True'
    cfg.Graph_selectorId = ''
    cfg.Graph_selectorId_authors_roles = ''
    cfg.Graph_selectorId_graphs = ''
    cfg.Graph_selectorId_projects = ''
    cfg.Graphs_selectorId_teams = ''
    cfg.Graph_selectorTime = T('month')
    cfg.Graph_selectorYear_start = datetime.now().year
    cfg.Graph_selectorYear_end = ''

    request.vars.update(cfg)

    fields = ('cumulative','id_graphs', 'time', 'year_start','year_end')
    selector = Selector(virtdb.graph_selector, exclude_fields=fields)

should become:

    fields = ('cumulative','id_graphs', 'time', 'year_start','year_end')
    selector = Selector(virtdb.graph_selector, exclude_fields=fields)
    selector.year_start = datetime.now().year
    selector.cumulative = True
Assignee
Assign to
Time tracking