-
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
Execution control for Table.write and various widget tweaks... #6835
Conversation
d74e525
to
1078748
Compare
count_not_nothing = Option "Count Not Nothing" "(Aggregate_Column.Count_Not_Nothing)" [column_widget] | ||
count_nothing = Option "Count Nothing" "(Aggregate_Column.Count_Nothing)" [column_widget] | ||
count_not_nothing = Option "Count Not Nothing" fqn+".Count_Not_Nothing" [column_widget] | ||
count_nothing = Option "Count Nothing" fqn+".Count_Nothing" [column_widget] | ||
|
||
## Should be a list of Text columns only |
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.
Should we start implementing this by-type column filtering? We have all the capabilities needed to do that.
If not in this PR, I'd be happy to create a small PR for this - it's just a few lines of adjustment to get a really nice UX improvement.
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.
Discussed with Ned and he argued against 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.
Oh, why?
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.
Logic was more confusing for columns to vanish depending on the mode.
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.
Hmm, I see. Well indeed maybe it would be less confusing if we chose the column first and then had a list of aggregations available for it - but that does not fit our Aggregate_Column
format.
IMHO suggesting invalid columns for an aggregation is not that helpful, I don't imagine it is a problem, but if that's the recommendation.
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 was thinking the same and wondered around adding a note if an unsupported type - so you would see the same set but something in brackets warning invalid for this).
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.
Yes, I think that would be good. Or even, if we had the ability to add styling, the invalid types could be greyed out.
Also, I would move all unsupported down to the bottom, so that the first fields that show up are the supported ones. No sense in having to scroll thru unsupported fields to find a good one.
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.
Shall we create a follow up task for this?
I think the sorting will be especially useful, and marking the not-matching ones should also be helpful. Since we don't have formatting yet, maybe we can mark them like /Shortest/
?
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.
Will add a task.
faf6e15
to
6d68149
Compare
@@ -15,7 +15,8 @@ type Boolean | |||
True | |||
False | |||
|
|||
## Computes the logical and (conjunction) of two booleans. | |||
## ALIAS And | |||
Computes the logical and (conjunction) of two booleans. |
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.
Computes the logical and (conjunction) of two booleans. | |
Computes the conjunction (logical 'and') of two booleans. |
I'm wondering if that form would not be more readable? (low priority)
distribution/lib/Standard/Base/0.0.0-dev/src/Data/Text/Regex/Pattern.enso
Show resolved
Hide resolved
distribution/lib/Standard/Base/0.0.0-dev/src/Data/Text/Regex/Pattern.enso
Outdated
Show resolved
Hide resolved
content_type self = | ||
response_headers = self.headers | ||
content_type = response_headers.find if_missing=Nothing h-> "Content-Type".equals_ignore_case h.name | ||
if content_type.is_nothing then Nothing else content_type.value |
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.
not for now, but I'm wondering if we should look for some idiom for this, like Kotlin's elvis operator:
if content_type.is_nothing then Nothing else content_type.value | |
content_type?.value |
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.
yeah would be a nice addition I think.
distribution/lib/Standard/Base/0.0.0-dev/src/Network/HTTP/Response.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Base/0.0.0-dev/src/Network/HTTP/Response.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Base/0.0.0-dev/src/Network/HTTP/Response.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Base/0.0.0-dev/src/Network/HTTP/Response_Body.enso
Outdated
Show resolved
Hide resolved
distribution/lib/Standard/Table/0.0.0-dev/src/Excel/Excel_Workbook.enso
Outdated
Show resolved
Hide resolved
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 to me.
I have some comments/suggestions. Nothing blocking, if we want to get this merged, I think it's fine to leave them for a follow-up PR. Just please let's not forget them :)
@@ -97,7 +99,7 @@ type Pattern | |||
|
|||
Arguments: | |||
- input: The text to match the pattern described by `self` against. |
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.
This could use a brief comment explaining the special handling of zero-length matches.
Remove dead argument from `select_columns`, `remove_columns` and `reorder_columns`. Add ALIAS to `remove_columns`.
Add custom drop down for `keep_unmatched`.
Add fetch to URI. Add some ALIASes (+, -, few methods).
Use fully qualified name for Encoding.
Use fully qualified names for File_Format dropdowns. Use fully qualified names for Report_Unmatched dropdowns. Use fully qualified names for aggregates and parse type dropdowns.
New test for disabled writing of tables.
Use `Math.max`.
Make Response_Body to_text more stable. Add local variable for copying to temp file.
d2518db
to
ad897c8
Compare
Pull Request Description
Table.write
.Text.write
to make part reusable.Text
to anURI
to fetching data.Response
andResponse_Body
.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
.