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

Refactoring Table.set for GUI2 and other GUI fixes #9128

Merged
merged 19 commits into from
Feb 21, 2024
Merged

Conversation

jdunkerley
Copy link
Member

@jdunkerley jdunkerley commented Feb 21, 2024

Pull Request Description

  • Added regex function to Standard.Base as a way to easily and cleanly make regular expressions.
  • Added expr and Expression.Value to distinguish expressions from text values.
  • Fixed issues with Table.join widget so dropdown exists.
    • Needed fully qualified name.
    • Added default empty text values for right column to provided text input boxes.
  • Deprecate Table.filter_by_expression and allow Table.filter to take an Expression.
  • Added Simple_Expression and deprecated Column_Operation. Changes the order so takes a column then a calculation.
  • Rename column to value and new_name to as on Table.set.
  • Rename name_column to names on Table.cross_tab.
  • Removed Column_Ref.Expression in favour of using Expression.Value.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed, the GUI was tested when built using ./run ide build.

- 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.
Comment on lines +14 to +15
## Defines a simple expression based off an input column and an operation to perform.
type Simple_Expression
Copy link
Member

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).

Copy link
Member Author

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.

Copy link
Member

@radeusgd radeusgd left a 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

@jdunkerley jdunkerley added the CI: Ready to merge This PR is eligible for automatic merge label Feb 21, 2024
Add defaults so errors less when you pick a Simple_Expression.
@mergify mergify bot merged commit fa6fccb into develop Feb 21, 2024
25 of 26 checks passed
@mergify mergify bot deleted the wip/jd/set-refactor branch February 21, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants