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

OverloaAdd parameter overloads to design-view forms #188

Merged
merged 15 commits into from
Jul 1, 2019
Merged

OverloaAdd parameter overloads to design-view forms #188

merged 15 commits into from
Jul 1, 2019

Conversation

mohanvive
Copy link
Contributor

By @PradeepaJey1 ...

Purpose

The stream and window functions doesn't show the parameter overloads along with the function name.

Goals

Add function names with parameter overloads in the stream function and window function drop-down and render the parameters according to the selected parameter overload.

Approach

  • In the drop down it displays the possible parameter loads with the function name [functionName(parameter1,parameter2)].
  • Renders the parameters which are only in the selected parameter overload.
  • If there are two or more parameter overloads with the same length, then a template will be rendered for unknown parameters as shown below. This is only rendered when an user has saved the parameters and opens the form again or when he switches from source to design view.
    image

Security checks

PradeepaJey1 and others added 12 commits June 19, 2019 10:27
This commit will
 1. Add parameter overloads to window and stream function drop down
 2. Modifies the validation and building and mapping parameter methods to support parameter overloads
 3. Fix indentation
The changes which I have done in the carbon-analytics editor core is merged to siddhi-distribution editor core.
Show normal functions [time,math,etc] in the filter condition, select expressions and attributes of window and stream function
Since incremental aggregators are obtained from the backend
Instead of checking if the parameter name is "attribute", add another property called "isMultiValue" [by checking the next name in parameter overload is "..."].
@CLAassistant
Copy link

CLAassistant commented Jul 1, 2019

CLA assistant check
All committers have signed the CLA.

@mohanvive mohanvive changed the title OverloaAdd parameter overloads to design-view formsd OverloaAdd parameter overloads to design-view forms Jul 1, 2019
@mohanvive
Copy link
Contributor Author

Moved from #176 ...

@dnwick dnwick merged commit eaec2a3 into siddhi-io:master Jul 1, 2019
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

4 participants