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

"stringFormat" to "queryBuilderFormat" convert #76

Open
yaro-tesseris opened this issue Mar 11, 2019 · 9 comments
Open

"stringFormat" to "queryBuilderFormat" convert #76

yaro-tesseris opened this issue Mar 11, 2019 · 9 comments
Labels
Milestone

Comments

@yaro-tesseris
Copy link

Can i get "queryBuilderFormat" from "stringFormat" and render result to UI ?

Example:

const stringQuery = `(wordCount != 2 &&  groupCompetitorsPA < 215 &&  wordCount != 123)`;
const treeJSON = someFunction(stringQuery, config);
return (
  <div>
    <Query
      value={transit.fromJSON(treeJSON)}
    > </Query>
  </div>
);

Thank you.

@mzrt
Copy link
Contributor

mzrt commented Mar 11, 2019

No.

@vitali-svishchou
Copy link

@ukrbublik , do you have any plans to add such a functionality? =)

@ukrbublik
Copy link
Owner

@vitali-svishchou No currently

@markus-azer
Copy link

@ukrbublik @mzrt is there any idea how can i start to make this function ?!

@yaro-tesseris
Copy link
Author

@MarkusAzer
I'm using antlr for this.

@sumitmishra04
Copy link

@ukrbublik @mzrt @MarkusAzer
may we know by when can we expect this feature to be made available? I'm stuck at this point. Can save data to backend in string format but when want to update the existing query we need to reproduce the same tree. Let me know if there is any hack around.

@ukrbublik
Copy link
Owner

@sumitmishra04 JsonLogic is recommended format for saving data on backend. I can't make predictions on importing from string feature aviability.

@sumitmishra04
Copy link

Have managed to resolve the issue by saving both string and Json representation of query in backened. And use string format for user to view query in textarea as plain text and json format to recreate the query view component.

@ukrbublik ukrbublik removed this from the Hard features milestone May 23, 2020
@ukrbublik ukrbublik added import and removed feature labels Jun 8, 2020
@fstn
Copy link

fstn commented Jan 7, 2021

I Really need this too... any advice to do it easily?

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

No branches or pull requests

7 participants