-
Notifications
You must be signed in to change notification settings - Fork 323
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
Refactoring Table.set
for GUI2 and other GUI fixes
#9128
Conversation
- Added `expr` function to create an Expression. - Adjust `set` to take `Expression` and allow creation of constant text values. - Removing `Column_Ref.Expression` in favour of `Expression.Value` and adjust signatures to allow both.
Rename `new_name` to `as` on `Table.set`.
Rename name_column to names in cross_tab.
distribution/lib/Standard/Base/0.0.0-dev/src/Data/Text/Regex.enso
Outdated
Show resolved
Hide resolved
## Defines a simple expression based off an input column and an operation to perform. | ||
type Simple_Expression |
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.
A bit unsure about the name (I was confused what's the difference between Expression
and Simple_Expression
).
I think the old Derived_Column
or something similar was better describing what this is (or I just got used to it).
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.
Chosen in discussion with Ned and Sylwia in the product review.
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.
Looks good, some minor comments and one thing about the naming (but tbh I'm not sure what are good alternative names...).
Good to go IMO
distribution/lib/Standard/Table/0.0.0-dev/src/Internal/Expand_Objects_Helpers.enso
Show resolved
Hide resolved
Couple of PR comments.
Fix a load of failing tests.
Add defaults so errors less when you pick a Simple_Expression.
Pull Request Description
regex
function toStandard.Base
as a way to easily and cleanly make regular expressions.expr
andExpression.Value
to distinguish expressions from text values.Table.join
widget so dropdown exists.Table.filter_by_expression
and allowTable.filter
to take anExpression
.Simple_Expression
and deprecatedColumn_Operation
. Changes the order so takes a column then a calculation.column
tovalue
andnew_name
toas
onTable.set
.name_column
tonames
onTable.cross_tab
.Column_Ref.Expression
in favour of usingExpression.Value
.Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.