Content
View differences
Updated by Tobias Dillmann about 1 year ago
**Acceptance criteria:**
* A calculated value Factor list is added to the available as a project attribute
* The project attribute can be displayed in
* the project overview
overview.
* the project A factor list
* A calculated value has these details:
* Name
* Formula
* For all projects
* The formulas can include the following attributes from that project:
* Integer
* Float
* Project factors (project attribute factor lists)
* Mathematical operators: +, -, \*, /, /, ( and )
* Other calculated values
* In order to trigger the selection of the attributes in the field, the user can use the command "/" as implemented in the Automatically generated subjects.
* The command triggers a dropdown to open with sections for:
* Mathematical operators
* Project factors
* Calculated values
* Error handling
* In calculations, there is error handling for **circular references**.
circular references.
* In case the user includes text that is **not not an integer or a float,** float, the field will display an inline error: "Only numeric values, project factors, calculated values and mathematical operators are allowed"
* In case the mathematical operation fails (e.g. because Order of a **division by zero error**), the field will display an inline error.
* **Open question**: are the factor list attributes required? If they _could_ be empty, we must consider error handling. For example, if the formula contains any attributes that are not set, the field will display an inline error: "The attributes foo and bar are not set. Please set all attributes required for the calculation."
* **Order of operations:** operations: Automatic application of the mathematical rule where multiplication and division are performed before addition and subtraction, unless parentheses dictate otherwise
* A calculated value
* The project attribute can be displayed in
* the project overview
* A calculated value has these details:
* Name
* Formula
* For all projects
* The formulas can include the following attributes from that project:
* Integer
* Float
* Project factors (project attribute factor lists)
* Mathematical operators: +, -, \*, /, /, ( and )
* Other calculated values
* In order to trigger the selection of the attributes in the field, the user can use the command "/" as implemented in the Automatically generated subjects.
* The command triggers a dropdown to open with sections for:
* Mathematical operators
* Project factors
* Calculated values
* Error handling
* In calculations, there is error handling for **circular references**.
* **Open question**: are the factor list attributes required? If they _could_ be empty, we must consider error handling. For example, if the formula contains any attributes that are not set, the field will display an inline error: "The attributes foo and bar are not set. Please set all attributes required for the calculation."
* **Order of operations:**