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

Disable caching when evaluating expressions in marks #7373

Merged
merged 3 commits into from
Jun 16, 2020
Merged

Disable caching when evaluating expressions in marks #7373

merged 3 commits into from
Jun 16, 2020

Conversation

amacfie
Copy link
Contributor

@amacfie amacfie commented Jun 15, 2020

As per #7360

Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this @amacfie! LGTM with a couple comments.

changelog/7360.bugfix.rst Outdated Show resolved Hide resolved


evalcache_key = StoreKey[Dict[str, Any]]()
def compiled_eval(expr: str, d: Dict[str, object]) -> Any:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My preference is to inline this code directly into _istrue(), but it's OK if you prefer this way.

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I suggest just updating the CHANGELOG as suggested by @bluetech. 👍

Co-authored-by: Ran Benita <ran@unusedvar.com>
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
@nicoddemus
Copy link
Member

nicoddemus commented Jun 15, 2020

(Note to ourselves: let's make sure to squash-merge this)

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

3 participants