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

Simplify and tidy up config #74

Merged
merged 6 commits into from
Sep 29, 2024
Merged

Simplify and tidy up config #74

merged 6 commits into from
Sep 29, 2024

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Sep 28, 2024

Tidy up model.

Relocation: drop all that mumbo-jumbo.

Tidy up model.

Relocation: drop all that webdav mumbo-jumbo, and for now relocation
is interpreted as Path, that if relative, is resolved from the
relocated configuration directory.
@cstamas cstamas self-assigned this Sep 28, 2024
@cstamas cstamas marked this pull request as ready for review September 28, 2024 21:10
writeFile(target, configuration, false);
}

public static void writeWithBackup(Path target, SettingsSecurity configuration) throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

The pattern is usually to have writeFile(Path, SettingsSecurity) and writeFile(Path, SettingsSecutiry, boolean) methods public methods, the first one calling the second one. And I don't see any reference to the first method. If not called, maybe simply keep the one with the backup.

Copy link
Member Author

Choose a reason for hiding this comment

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

test UT uses the "no backup method", but will remove one extra method and apply pattern you propose

Copy link
Member

@gnodet gnodet left a comment

Choose a reason for hiding this comment

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

I think the SecUtil write stuff can be trimmed down, but....

@cstamas cstamas merged commit 252c990 into master Sep 29, 2024
16 checks passed
@cstamas cstamas deleted the simplify-config branch September 29, 2024 15:14
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.

2 participants