Hotfix/#2820 more detailed share messages #2946
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduced more detailed messages to show when a specific group cannot be shared (configuration error or disabled in settings).
Small change in
ShareObserver
which could cause an assertion in development mode and a warning in release mode when sharing export was disabled.Type of change
Description and Context
Introduced detailed messages for sharing label. Since the error messages in the settings are created in a hierarchical fashion, I would refrain from showing when import/export was disabled as long as the settings themselves are invalid.
Found a small issue during debugging. The
ShareObserver
did filter out export shares when the export feature was disabled, but did try to find the export group. This led to warnings/assertions. Since the class does additional filtering of unneeded imports when reacting to the file change signal, I removed the filter of references for group - share associations."Fixes #2820"
Screenshots
Testing strategy
Manually tested.
Checklist: