Feature/op 19665 additional calculation operators for calculated fields#24247
Draft
toy wants to merge 11 commits into
Draft
Feature/op 19665 additional calculation operators for calculated fields#24247toy wants to merge 11 commits into
toy wants to merge 11 commits into
Conversation
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
https://community.openproject.org/wp/OP-19665 **As** a project portfolio manager **I want to** use additional calculation methods based on project attributes **so that** I can better evaluate and prioritise projects in my portfolio and communicate this evaluation to my stakeholders **Acceptance criteria** * In addition to the available Mathematical operators: `+`, `-`, `*`, `/`, `%` (modulo and percent), `(` and `)` I want to be able to use operators such as * _Comparison: <, >, <=, >=, <>, !=, =,_ * _Logic: IF, AND, OR, XOR, NOT, SWITCH_ * _Numeric: MIN, MAX, SUM, AVG, COUNT, ROUND, ROUNDDOWN, ROUNDUP, ABS_ * _Selections: CASE_ * Only small UX changes needed (as Administration-only feature that builds on existing functionality) **Technical notes** * The library "dentaku" is used for calculated values * Dentaku supports the operators listed above, but they are hidden via filter **Permissions and visibility considerations** * Permissions are unchanged **Translation considerations** * _Key terms and phrases in the key languages_ **Out of scope** * Changes to the Admin-UI on top of adding the operators to the autocompleter. * Built-in support for the user on the syntax of the operators. * Error messaging on faulty formulas guiding the user to the faulty part of the formula. * Using custom fields other than int, float and weighted item list as input * Outputting non numerical values as result (e.g. string)
2d1d905 to
6883046
Compare
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket
https://community.openproject.org/wp/OP-19665
What are you trying to accomplish?
Screenshots
What approach did you choose and why?
Merge checklist