Module reference

On this page

One reference page per module the fork adds. They are written for operators and contributors: what the module is for, its concepts and data model, who may do what, the API, the configuration keys, the UI, how it interacts with the other modules, its limits, what is still open, and where the code lives.

For the big picture see Architecture; for HTTP conventions, authentication, errors and the endpoint tables see API reference; for screens see Design. Status and open points are tracked in Roadmap and status, which is the single source of truth.

ModulePageDesign document (history and rationale)
Custom fieldsCustom fieldsCustom fields design
WorkflowsWorkflowsWorkflow design
ApprovalsApprovalsForms and approvals design (Approvals)
AutomationAutomationAutomation design
Dashboards and reportsDashboards and reportsDashboards design
FormsFormsForms and approvals design (Forms)

How the modules fit together #

  • Custom fields add typed data to tasks. Workflows, automation, forms and reports all refer to a field as cf_<id>.
  • Workflows add statuses and transitions to a project. Approvals make a transition wait for named people.
  • Automation reacts to events from all of the others (task changes, status changes, field changes, approvals, form submissions, time) and acts through the normal model functions as the rule's owner.
  • Forms turn submissions into tasks through the normal create path, so workflows, custom fields and automation apply.
  • Dashboards and reports count tasks, statuses and history, always limited to what the viewer can read.

Every page follows the same outline: Overview, Concepts, Data model, Permissions, API, Configuration keys, UI, Events and interaction with other modules, Limits and safety, Known gaps and open decisions, Where the code lives.

Configuration keys at a glance #

Settings come from config.yml or from environment variables; environment variables override the file. The variable name is VIKUNJA_ plus the key in upper case with dots as underscores, so automation.ticker.interval is VIKUNJA_AUTOMATION_TICKER_INTERVAL. The full list with comments is config-raw.json. config.yml.sample is generated from it with mage generate:config-yaml; edit the JSON, not the sample.

The fork's keys, with their defaults (the meaning of each is on the module page):

KeyDefaultModule
forms.enabledtrueForms
forms.maxbodysize262144Forms
forms.maxattachments5Forms
forms.maxattachmentsize10MBForms
forms.public.enabledtrueForms
forms.public.attachmentsfalseForms
forms.public.ratelimit10Forms
forms.public.formratelimit300Forms
forms.public.requestratelimit60Forms
automation.enabledtrueAutomation
automation.maxdepth3Automation
automation.maxactions25Automation
automation.steptimeout10sAutomation
automation.runtimeout60sAutomation
automation.ratelimit60Automation
automation.workers4Automation
automation.maxattempts5Automation
automation.maxconsecutivefailures20Automation
automation.pollinterval1sAutomation
automation.cachettl30sAutomation
automation.retention30Automation
automation.ticker.interval30sAutomation
automation.ticker.maxtasks100Automation
automation.ticker.maxscan5000Automation
automation.waitmax720hAutomation
automation.maxpendingwaits1000Automation
automation.maxrulesperproject100Automation
automation.webhook.maxbody65536Automation
automation.webhook.tolerance5mAutomation
automation.webhook.ratelimit60Automation
automation.scripts.enabledtrueAutomation
automation.scripts.timeout5sAutomation
automation.scripts.conditiontimeout1sAutomation
automation.scripts.maxsource65536Automation
automation.scripts.maxapicalls100Automation
automation.scripts.maxhttprequests5Automation
automation.scripts.maxresponsesize1048576Automation
automation.scripts.maxlogsize16384Automation
automation.scripts.maxcallstack512Automation
automation.scripts.maxresults200Automation
automation.scripts.httptimeout10sAutomation
reports.cachettl30sDashboards and reports
reports.maxgroups200Dashboards and reports
reports.maxbuckets366Dashboards and reports
reports.maxrows50000Dashboards and reports
reports.timeout20sDashboards and reports

The modules without keys of their own (custom fields, workflows, approvals) share the instance's database and file settings. Besides these keys, service.publicurl, service.secret, service.timezone, service.ipextractionmethod, service.trustedproxies, outgoingrequests.allownonroutableips and outgoingrequests.proxyurl come from upstream and are used by the fork as described on the module pages.

Source of this page on GitHub