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

Move jira-issue-lottery.config-file-repo value from application.properties to .env file and set a default for testing. #66

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

xjusko
Copy link
Collaborator

@xjusko xjusko commented Feb 27, 2024

resolves #49 as the previous PR which included this was closed

@xjusko xjusko force-pushed the move-config-url-to-env-file branch from 8cfed41 to 5d06ea2 Compare February 27, 2024 14:43
README.md Outdated

### Create .env File
1. Create a `.env` file in the main directory of your app.
2. Create a Jira Personal Access Token ([Guide on how to create the token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html))
3. Add the following variable to the `.env` file:
2. Add the value of `%dev.jira-issue-lottery.config-file-repo` in the `.env` file to point to a public repository with a valid config file according to first step in [Configuration section](#configure-jira-lottery) such as `https://github.com/jboss-set/jira-issue-lottery`.
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need to move it out of application.properties? If it's environment variable than the naming should be adjusted to make it clear - e.g., THIS_IS_ENV_VAR

Copy link
Collaborator

Choose a reason for hiding this comment

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

The thing is, that in order for the tests to pass we have hardcoded url to this repo (Also for deploying the app itself).
However, if we want to test it upon our own forks of the repository, we would need to override that value all the time in the application.properties. Thus, this way we can have passing test (on local as well) and override the value only for our dev modes, to test new features.

Copy link
Collaborator

@The-Huginn The-Huginn left a comment

Choose a reason for hiding this comment

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

LGTM

@xjusko xjusko force-pushed the move-config-url-to-env-file branch 2 times, most recently from f8a55f2 to d11e28d Compare February 29, 2024 14:16
…rties to .env file and set a default for testing.
@xjusko xjusko force-pushed the move-config-url-to-env-file branch from d11e28d to b1e9d0e Compare February 29, 2024 14:21
@xstefank xstefank merged commit 4c2435b into jboss-set:main Feb 29, 2024
1 check passed
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.

Move jira-issue-lottery.config-file-repo value from application.properties to .env file.
3 participants