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

Add support for .pgpass to PostgreSQL #3593

Merged
merged 25 commits into from
Jul 21, 2022

Conversation

radeusgd
Copy link
Member

@radeusgd radeusgd commented Jul 15, 2022

Pull Request Description

Implements https://www.pivotaltracker.com/story/show/182582924

Important Notes

Checklist

Please include the following checklist in your PR:

  • The documentation has been updated if necessary.
  • All code conforms to the
    Scala,
    Java,
    and
    Rust
    style guides.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed: Enso GUI was tested when built using BOTH
      ./run ide dist and ./run ide watch.

@radeusgd radeusgd self-assigned this Jul 15, 2022
@radeusgd radeusgd force-pushed the wip/radeusgd/postgres-pgpass-182582924 branch from 9fd1abc to a491c04 Compare July 18, 2022 11:05
@radeusgd radeusgd marked this pull request as ready for review July 18, 2022 16:49
@radeusgd radeusgd requested a review from hubertp July 18, 2022 16:49
Copy link
Contributor

@hubertp hubertp left a comment

Choose a reason for hiding this comment

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

lgtm

- default: The default fallback value.

> Example
Look up the value of the `FOOBAR` environment variable.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's maybe use something more common in stdlib documentation like HOME ;)


/**
* Overrides the System environment variable with a new value. The override is only visible from
* within Enso.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe mention that it is not persisted?

The environment variable override is only visible to the Enso
`Environment.get` method, the environment as seen from a direct
`System.getenv` Java call remains unchanged.
unsafe_with_environment_override : Text -> Text -> Any -> Any
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this should be an extension method in Test?

Copy link
Member Author

Choose a reason for hiding this comment

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

Definitely! That sounds like a much better place for it, as I was quite hesitant putting it in Base.

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved it, does it look good now?

Copy link
Member

@jdunkerley jdunkerley left a comment

Choose a reason for hiding this comment

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

Generally looks good - one suggestion (how we represent Posix permissions) and one change please.

@radeusgd radeusgd force-pushed the wip/radeusgd/postgres-pgpass-182582924 branch from eb238f0 to 4688314 Compare July 19, 2022 09:51
@radeusgd radeusgd requested a review from jdunkerley July 19, 2022 13:28
@radeusgd radeusgd force-pushed the wip/radeusgd/postgres-pgpass-182582924 branch from 1a15676 to a4b57b2 Compare July 19, 2022 15:43
@radeusgd radeusgd added CI: Ready to merge This PR is eligible for automatic merge and removed CI: Ready to merge This PR is eligible for automatic merge labels Jul 19, 2022
@radeusgd radeusgd added the CI: Ready to merge This PR is eligible for automatic merge label Jul 19, 2022
Copy link
Member

@JaroslavTulach JaroslavTulach left a comment

Choose a reason for hiding this comment

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

I'd suggest to use Array instead of java.util.Set guest wrapper. Otherwise OK, I think.

@mergify mergify bot merged commit 16fd038 into develop Jul 21, 2022
@mergify mergify bot deleted the wip/radeusgd/postgres-pgpass-182582924 branch July 21, 2022 13:32
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.

4 participants