-
Notifications
You must be signed in to change notification settings - Fork 364
:param v2 #962
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
:param v2 #962
Conversation
a999616 to
3d96f89
Compare
| } | ||
|
|
||
| // future proofing | ||
| if (parameters.type !== ARRAY) return null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe return {}
oskarhane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the parser approach on this one. So great not to add more regexps!
Maybe we could think about adding another parser (or extend yours) to parse all :param and :params input? (not now, but might be worth a card).
It seems to have broken e2e tests.
- Added new dep @neo4j/browser-lambda-parser - Updated existing cmd utils to use parser for all things lambda - Standardized and cleaned up error frames appearance regardless of source - Added new help text for :param - Standardized appearance of :help buttons and Error frames
ea32325 to
b611283
Compare
|
@oskarhane thank you for your feedback! I have addressed your comments. For the AutoExecButton tests I had to export a non-bus version as I could not figure out how to properly mock |
oskarhane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
5a50a8f to
dbebe24
Compare
This PR adds support for the
:paramv2 syntax (explicit returns). In addition, it also cleans up and standardizes the error frame appearance regardless of error origin. Finally it standardizes the appearance of:helpbuttons.Todo
@neo4j/browser-lambda-parseris publishedSTR
:help paramand follow the instructions for explicit returnsScreenshots
Setting parameters

Error

:helpcommandschangelog: Support additional
:paramdefinition. See:help paramsin neo4j-browser for instructions.