-
Notifications
You must be signed in to change notification settings - Fork 6
Switch to config object from Property for application config #2537
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
Conversation
| scopeForDriveApi: "https://www.googleapis.com/auth/drive.file" | ||
| scopeForDirectoryApi: "https://www.googleapis.com/auth/admin.directory.user.readonly" | ||
| scope-for-drive-api: "https://www.googleapis.com/auth/drive.file" | ||
| scope-for-directory-api: "https://www.googleapis.com/auth/admin.directory.user.readonly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a no-op change, but kebab-case configuration is more idiomatic than camelCase
| notifications: | ||
| subject: "Feedback request" | ||
| content: "You have received a feedback request. Please go to the " | ||
| request-subject: "Feedback request" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
content was unused so I removed it, and flattened the structure 1 level
| web-address: "https://checkins.objectcomputing.com" | ||
| application: | ||
| google-api: | ||
| delegated-user: test@objectcomputing.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was added as the property is defined as coming from an env var in application.yml and this would otherwise fail under test
Following on from #2527 this moves the
check-ins.application.feedbackandcheck-ins.application.google-apiconfiguration into an object instead of using@Propertyto grab the config by string based name.It also flattens the config, as we used to have
notificationsfor thesubjectandcontent, however thecontentproperty isn't used in the codebase, and having a parent for a single item seemed overkill