Skip to content

Conversation

@timyates
Copy link
Contributor

@timyates timyates commented Jul 5, 2024

Following on from #2527 this moves the check-ins.application.feedback and check-ins.application.google-api configuration into an object instead of using @Property to grab the config by string based name.

It also flattens the config, as we used to have notifications for the subject and content, however the content property isn't used in the codebase, and having a parent for a single item seemed overkill

@timyates timyates added the server label Jul 5, 2024
@timyates timyates self-assigned this Jul 5, 2024
@timyates timyates changed the title Switch to config object from Property for application feedback Switch to config object from Property for application config Jul 5, 2024
Comment on lines -95 to +96
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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@mkimberlin mkimberlin merged commit 9c2ae3d into develop Jul 30, 2024
@mkimberlin mkimberlin deleted the bugfix-move-feedback-to-config branch July 30, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants