Skip to content

Conversation

@timyates
Copy link
Contributor

@timyates timyates commented Jun 26, 2024

Currently we have a proliferation of @Property(name = "check-ins.web-address") String webURL for whenever we need to send an email to the user (or create an absolute URL link back to the server)

This PR replaces these with a single singleton configuration object that holds the web address and can be injected into the services as required.

This is the first step in moving all the check-ins configuration into code, to add type safety and reduce duplication of key names

[edit] I also added check-ins.application.name to the config object, and replaced it's usage in the code.

@timyates timyates requested review from mkimberlin and vhscom June 26, 2024 11:08
@timyates timyates self-assigned this Jun 26, 2024
And switch to a class so we can validate the nested props
@timyates timyates changed the title Use config class instead of check-ins.web-address Use config class instead of check-ins.web-address and check-ins.application.name Jun 27, 2024
Copy link
Contributor

@vhscom vhscom left a comment

Choose a reason for hiding this comment

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

LGTM

@timyates timyates merged commit 529fbae into develop Jul 5, 2024
@timyates timyates deleted the bugfix-use-configuration-for-web-address branch July 5, 2024 09:35
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.

4 participants