Skip to content

Conversation

@cody-constine-ttd
Copy link
Contributor

No description provided.

Copy link
Contributor

@thomasm-ttd thomasm-ttd left a comment

Choose a reason for hiding this comment

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

Are you still adding tests for these?


@Override
public StoreReader<Collection<RotatingSaltProvider.SaltSnapshot>> getReader(Integer siteId) {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these methods not throw, rather than return null? If we don't expect them to be called, they should at least throw so we catch the error earlier.
Or do we divide the interface so that the methods are not required here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Throwing would change the interface too. But I think splitting it up would also be annoying.
I am thinking when we continue with Admin rework, we migrate salts to follow the pattern of our other files and we can fill these in then.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, lets leave it as, but add logging (at WARN level) to indicate the method is being called.

Copy link
Contributor

@thomasm-ttd thomasm-ttd left a comment

Choose a reason for hiding this comment

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

Small comment about adding some logging

@cody-constine-ttd cody-constine-ttd merged commit 08b94bb into main Dec 17, 2024
4 checks passed
@cody-constine-ttd cody-constine-ttd deleted the cbc-UID2-4571-cloud-encryption-cleanup branch December 17, 2024 18:35
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.

3 participants