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

Some minor improvements suggested from Ned's use #9249

Merged
merged 9 commits into from
Mar 4, 2024

Conversation

jdunkerley
Copy link
Member

@jdunkerley jdunkerley commented Mar 1, 2024

Pull Request Description

  • Adjusted AWS_Credential to have a Default and removed support for Nothing from functions.
  • Renamed Response_Body.to_file to Response_Body.write.
  • Add write to Response.
  • Add Table.get_value and DB_Table.get_value allowing getting a single value from a table.
  • Added Data.download allowing downloading from a URL to a file.
  • Added text widget as input widget for Data methods.

image

Important Notes

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.

@jdunkerley jdunkerley force-pushed the wip/jd/download-fixes branch from a1b1b0e to dafdf2d Compare March 4, 2024 15:22
@jdunkerley jdunkerley marked this pull request as ready for review March 4, 2024 15:22
new : Text -> AWS_Credential | Nothing -> S3_File ! Illegal_Argument
new (uri : Text = S3.uri_prefix) (credentials : AWS_Credential | Nothing = Nothing) =
new : Text -> AWS_Credential -> S3_File ! Illegal_Argument
new (uri : Text = S3.uri_prefix) credentials:AWS_Credential=AWS_Credential.Default =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
new (uri : Text = S3.uri_prefix) credentials:AWS_Credential=AWS_Credential.Default =
new (uri : Text = S3.uri_prefix) (credentials : AWS_Credential = AWS_Credential.Default) =

nit: IMHO the version with spaces + parentheses is more readable

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do as part of the ICON apply this evening.

- if_missing: The value to use if the selector isn't present.
@selector Widget_Helpers.make_column_name_selector
@index (t-> Widget.Numeric_Input minimum=0 maximum=t.row_count-1)
get_value : Text | Integer -> Integer -> Any -> Any
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was get_value chosen over get_cell?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bounced back and forth with Ned and we felt value was better but it was pretty equal.

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 great

@jdunkerley jdunkerley added the CI: Ready to merge This PR is eligible for automatic merge label Mar 4, 2024
@mergify mergify bot merged commit 7f6d10a into develop Mar 4, 2024
26 of 27 checks passed
@mergify mergify bot deleted the wip/jd/download-fixes branch March 4, 2024 16:33
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