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

Fix wrong failure-msg when clearing photo-cache. #1375

Merged
merged 2 commits into from
Jan 19, 2025

Conversation

umgfoin
Copy link
Contributor

@umgfoin umgfoin commented Jan 16, 2025

bool GeophotoService::clearCache returns false, if any of the cleared caches was already empty.
Accordingly, a failure-msg is shown in the maps-GUI.
This change makes the function always return true unless an exception occurred - then false is returned.

@umgfoin umgfoin requested a review from tacruc January 16, 2025 15:04
@tacruc
Copy link
Collaborator

tacruc commented Jan 17, 2025

@come-nc What do you think? I would prefere having the Icache->clear() funktion fixed. But this is far out of our code space. So I'm fine.

@umgfoin umgfoin force-pushed the PR_fix_wrong_photocache_failure-msg branch 2 times, most recently from 61dec6f to b473113 Compare January 17, 2025 08:30
@umgfoin umgfoin requested a review from come-nc January 17, 2025 08:41
@umgfoin umgfoin force-pushed the PR_fix_wrong_photocache_failure-msg branch from a40a929 to 2d502d7 Compare January 17, 2025 08:42
@umgfoin umgfoin enabled auto-merge January 17, 2025 08:44
bool GeophotoService::clearCache returns false, if any of the cleared caches was already empty.
Accordingly a failure-msg is shown in the maps-GUI.
This change makes the function always return true unless an exception occurred - then false is returned.

Signed-off-by: umgfoin <umgfoin@users.noreply.github.com>
Signed-off-by: umgfoin <umgfoin@users.noreply.github.com>
@umgfoin umgfoin force-pushed the PR_fix_wrong_photocache_failure-msg branch from 2d502d7 to 79bd524 Compare January 19, 2025 19:26
Copy link
Collaborator

@tacruc tacruc left a comment

Choose a reason for hiding this comment

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

Looks good thanks.

@umgfoin umgfoin merged commit 8601242 into nextcloud:master Jan 19, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants