Support `psql` as part of the server host
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- github-actions, postgresql, typescript
Research direction
Start in src/Utils/ActionInputs.ts at the linked logic that removes psql and quotes from the connection string. Reproduce the issue with a host such as caf-named-db-psql.postgres.database.azure.com, then verify that the action preserves psql when it is part of the host while continuing to parse the connection string correctly.
Written by the indexing model from the issue text.
Description
According to the CAF (Cloud Adoption Framework) the official abbreviation for a PostgreSQL database is psql.
But the current implementation blindly replaces 'psql' with '', which breaks the ability to use this action with such a named DB.
Input:
- uses: azure/postgresql@v1
with:
connection-string: host=caf-named-db-psql.postgres.database.azure.com ...
Output:
psql: error: could not translate host name "caf-named-db-.postgres.database.azure.com" to address: Name or service not known
Error: Error occurred while running action:
Error: The process '/usr/bin/psql' failed with exit code 2
Personal workaround:
The code currently not only replaces 'psql' with '', it also (as a second step) replaces '"' with ''. So a functional workaround that I use is adding a rouge " like this:
- uses: azure/postgresql@v1
with:
connection-string: host=caf-named-db-p"sql.postgres.database.azure.com ...
But this is far from ideal 😂
- Dominant language
- TypeScript
- Stars
- 25
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/postgresql
-
need-to-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Azure/postgresql#58 ·
-
need-to-triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Azure/postgresql#55 ·
-
need-to-triage
Difficulty 5/5 Over a week Newbie friendliness 20/100
Azure/postgresql#53 · 1 comment ·
-
need-to-triage
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Azure/postgresql#52 · 1 comment ·
-
need-to-triage
Difficulty 5/5 Over a week Newbie friendliness 15/100
Azure/postgresql#41 ·
All issues in Azure/postgresql
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100