Page MenuHomePhabricator

[reportupdater] Allow defaults for all config parameters
Open, NormalPublic5 Story Points

Description

Today, only the db parameter is allowed to have default.
That was implemented, because of backwards compatibility with the former generate.py.
But it can easily be extended to all other config parameters, so that a config like this:

daily_report:
    type: script
    starts: 2018-01-01
    granularity: days
    explode_by:
        wiki: wikis.txt

weekly_report:
    type: script
    starts: 2018-01-01
    granularity: weeks
    explode_by:
        wiki: wikis.txt

monthly_report:
    type: script
    starts: 2018-01-01
    granularity: months
    explode_by:
        wiki: wikis.txt

could look like that:

defaults:
    type: script
    starts: 2018-01-01
    explode_by:
        wiki: wikis.txt

daily_report:
    granularity: days

weekly_report:
    granularity: weeks

monthly_report:
    granularity: months

Related Objects

Event Timeline

mforns created this task.Apr 26 2018, 3:10 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 26 2018, 3:10 PM
mforns triaged this task as Unbreak Now! priority.
Restricted Application added subscribers: Liuxinyu970226, TerraCodes. · View Herald TranscriptApr 26 2018, 4:32 PM
mforns lowered the priority of this task from Unbreak Now! to Needs Triage.Apr 26 2018, 4:34 PM
mforns triaged this task as Low priority.Apr 30 2018, 4:49 PM
Vvjjkkii renamed this task from [reportupdater] Allow defaults for all config parameters to g5daaaaaaa.Jul 1 2018, 1:14 AM
Vvjjkkii raised the priority of this task from Low to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
AfroThundr3007730 renamed this task from g5daaaaaaa to [reportupdater] Allow defaults for all config parameters.Jul 1 2018, 7:04 AM
AfroThundr3007730 lowered the priority of this task from High to Low.
AfroThundr3007730 updated the task description. (Show Details)
AfroThundr3007730 added a subscriber: Aklapper.
Milimetric raised the priority of this task from Low to Normal.
Milimetric set the point value for this task to 5.
awight added a subscriber: awight.Mar 13 2019, 3:47 PM
awight removed a subscriber: awight.Mar 21 2019, 4:03 PM