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 71 commits into
base: master
Choose a base branch
from
Open

Custom Target Expressions #2184

wants to merge 71 commits into from

Conversation

aurceive
Copy link

@aurceive aurceive 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

aurceive and others added 25 commits June 16, 2024 02:45
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
getTeamData(override)
getTeamData(override)
fix test & typecheck & format
@aurceive
Copy link
Author

I don't know why, but since this PR was published I have never encountered the optimizer refusing to work when I used CTE.
I also checked the example of the incorrect calculation, now it returns the expected result.

Minimum (un)viable option.
Slowly, very slowly...
Better, but still terribly slow...
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.

2 participants