Skip to content

SYN-5600: Removing extended form does not properly remove all the props #3223

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

Merged
merged 8 commits into from
Jul 12, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jul 7, 2023

  • Update synapse.datamodel.Model.delForm() to check for extended properties on the form before deletion. If extended props are found, raise exception with names of properties.
  • Update tests.

Resolves SYN-5600

@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.09 ⚠️

Comparison is base (45a025b) 97.27% compared to head (78390cd) 97.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3223      +/-   ##
==========================================
- Coverage   97.27%   97.19%   -0.09%     
==========================================
  Files         225      225              
  Lines       45049    45054       +5     
==========================================
- Hits        43823    43791      -32     
- Misses       1226     1263      +37     
Flag Coverage Δ
linux 97.19% <100.00%> (+<0.01%) ⬆️
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/datamodel.py 95.63% <100.00%> (+0.04%) ⬆️

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ghost ghost changed the title WIP: SYN-5600: Removing extended form does not properly remove all the props SYN-5600: Removing extended form does not properly remove all the props Jul 7, 2023
@ghost ghost marked this pull request as ready for review July 7, 2023 19:44
@vEpiphyte vEpiphyte added this to the v2.14x.x milestone Jul 7, 2023
@vEpiphyte vEpiphyte added the bug label Jul 7, 2023
Copy link
Contributor

@vEpiphyte vEpiphyte left a comment

Choose a reason for hiding this comment

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

correct test assertions

@vEpiphyte vEpiphyte added the reqChangelog requires changelog label Jul 10, 2023
@ghost ghost requested a review from vEpiphyte July 11, 2023 14:44
@invisig0th invisig0th merged commit e11a461 into master Jul 12, 2023
@invisig0th invisig0th deleted the blackout/SYN-5600/formprops branch July 12, 2023 14:17
@vEpiphyte vEpiphyte removed the reqChangelog requires changelog label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants