Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Target Expressions #2184

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open

Conversation

tisseandorius
Copy link

@tisseandorius tisseandorius commented May 31, 2024

Describe your changes

I added support for custom target expressions and a convenient editor.
image

Since the last PR I have found at least one indisputably correct way to use CTE.

Example: https://discord.com/channels/785153694478893126/1035719815622561892/1244630283052126298
Another example: https://discord.com/channels/785153694478893126/1035720633167921313/1237378233666633850

Testing/validation

The optimizer sometimes refuses to work with some large expressions. Like this:
image

This can be bypassed by slightly changing the form of the expression without changing the essence.
image

Also, this case is calculated incorrectly. Although when it is used as part of a larger expression, it is calculated as expected.
image

I can't fix it. It's an engine issue. I preferred to forget about it until the transition to Pando.

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

@frzyc
Copy link
Owner

frzyc commented Jun 11, 2024

@tisseandorius I am still not convinced that Custom Target expression is the solution towards somewhat niche usecases. Can you elaborate on which usecases that existing multi-target features cannot cover? I am not sure I can understand from the discord link you sent.

tisseandorius and others added 19 commits June 16, 2024 02:10
added sum_fraction support
Added description for enclosing head units
The legendary return of division operation support!
Minor change in clamp and sum_fraction description
Adding a description for average
null comma fix
disabling focusToSIA
a few little things
Support for a longer Target paths
pivot: true for custom functions
export custom functions
import custom functions
functional stats did not work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants