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

FR: save input and expression as a share link #13

Closed
nathanperkins opened this issue Jun 28, 2023 · 3 comments · Fixed by #17
Closed

FR: save input and expression as a share link #13

nathanperkins opened this issue Jun 28, 2023 · 3 comments · Fixed by #17
Labels
enhancement New feature or request

Comments

@nathanperkins
Copy link

nathanperkins commented Jun 28, 2023

Feature Description

I would like to be able to save my expression and input and share it as link, similar to the Go Playground

Is your feature request related to a problem?

No.

What alternatives have you considered?

None.

Additional Context

I totally understand that this requires making the app stateful and increases the operational costs. Feel free to reject if it's not reasonable or impose additional constraints like an expiration.

Random Praise

Thanks for making this! It is extremely helpful for experimenting with CEL for Kubernetes CRD field validations :)

@nathanperkins nathanperkins added the enhancement New feature or request label Jun 28, 2023
@nathanperkins nathanperkins changed the title Share links FR: save input and expression as a share link Jun 28, 2023
@monuelo
Copy link
Contributor

monuelo commented Jun 29, 2023

Hey, @nathanperkins! Thank you for the suggestion, and glad to hear that CEL Playground has been helpful! We're looking into ways to implement this feature while keeping the app static.

A possibility is to generate a base64 encoded string from a gzip compressed JSON, which would contain the expression and input data. This string can then be added to the URL, allowing for easy sharing and retrieval of the saved state.

We appreciate your input, and we'll explore this approach further. If you have any more ideas or feedback, please let us know! 🚀

@nathanperkins
Copy link
Author

Very clever idea, I like it :)

@nathanperkins
Copy link
Author

So awesome! Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants