-
Notifications
You must be signed in to change notification settings - Fork 279
Fix: Inconsistencies due to ALTREP parameter #3918
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3918 +/- ##
============================================
- Coverage 29.61% 29.42% -0.20%
Complexity 322 322
============================================
Files 220 221 +1
Lines 7529 7578 +49
Branches 993 1001 +8
============================================
Hits 2230 2230
- Misses 5299 5348 +49
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
I think this could be handled here instead, which would be cleaner. calendar/src/store/calendarObjectInstance.js Lines 322 to 325 in f39e31f
|
|
This method is called upon every keystroke in the description field. Deleting ALTREP here would cause the loss of formatting even if the user discards changes by closing the dialog. I would prefer to delete ALTREP only if the user explicitly clicks "Update" and changes were made (isDirty). |
|
Sorry, I misunderstood how |
|
/backport to stable3.0 |
st3iny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the fix. I tested it and it works fine.
Please sign off your commits before we can merge them. To add your Signed-off-by line to every commit in this branch:
- Ensure you have a local copy of your branch by checking out the pull request locally via command line.
- In your local branch, run: git rebase HEAD~2 --signoff
- Force push your changes to overwrite the branch: git push --force-with-lease origin fix_altrep
Signed-off-by: Maximilian Martin <[email protected]>
Signed-off-by: Maximilian Martin <[email protected]>
|
Perfect! The commits are signed off now. |
|
As |
|
I agree that it makes sense to remove all parameters that are not updated consistently (so, currently all of them). |
|
@max65482 Thanks so much for the fix! 👍
+1 This is also what I recommended in #3863 (comment) |
|
As this PR is merged and fixes the issue, I think we should consider it complete. |
This PR addresses issue #3863: In addition to the plain text description of an event, Thunderbird also saves a formatted HTML version inside the ALTREP parameter. NC calendar does not alter the ALTREP parameter when the plain text description is changed. This results in inconsistencies.
The proposed solution deletes the ALTREP parameter upon modification. This prevents inconsistencies. Thunderbird keeps accepting plaintext-only descriptions.
I will have opened a similar PR in nextcloud/tasks as it is equally concerned.