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

Change database user in application configuration #14

Merged
merged 5 commits into from
Oct 19, 2023

Conversation

jarkkoka
Copy link
Contributor

@jarkkoka jarkkoka commented Oct 18, 2023

The change is done in order to spot possible database permission issues. Also, remove defaulting to Hasura user in Docker setup.

Continue to use the Hasura user for integration tests, as Data-Inserter needs permissions to execute TRUNCATE SQL commands to the database.


This change is Reviewable

@jarkkoka jarkkoka force-pushed the change-db-user-in-default-config branch 5 times, most recently from d4d7525 to 1aa1028 Compare October 18, 2023 19:50
Copy link
Contributor

@culka culka left a comment

Choose a reason for hiding this comment

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

Reviewed 8 of 10 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jarkkoka)

@jarkkoka jarkkoka force-pushed the change-db-user-in-default-config branch from 1aa1028 to b883204 Compare October 19, 2023 09:51
Copy link
Contributor Author

@jarkkoka jarkkoka left a comment

Choose a reason for hiding this comment

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

Reviewable status: 5 of 12 files reviewed, 1 unresolved discussion (waiting on @culka)


script/build-jdbc-urls.sh line 12 at r3 (raw file):

  export JORE4_DB_PORT=${JORE4_DB_PORT:-"5432"}
  export JORE4_DB_DATABASE=${JORE4_DB_DATABASE:-"timetablesdb"}
  export JORE4_DB_URL="jdbc:postgresql://${JORE4_DB_HOSTNAME}:${JORE4_DB_PORT}/${JORE4_DB_DATABASE}?stringtype=unspecified"

These changes are important to prevent using incorrect settings in the Azure environment that are intended for local development.

@jarkkoka jarkkoka merged commit b027aac into main Oct 19, 2023
@jarkkoka jarkkoka deleted the change-db-user-in-default-config branch October 19, 2023 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants