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(editors/IED): Allow IEDs to be deleted after edit count change #1275

Merged
merged 3 commits into from
Jul 1, 2023

Conversation

danyill
Copy link
Collaborator

@danyill danyill commented Jun 23, 2023

Closes #1272

Now that we are using the editCount property we must make sure that plugins are not relying on the old behaviour, like this one. As the doc is no longer exchanged on each edit we also need to to look for editCount in the updated method.

For now I just fix this problem, I hope to have a look through other editors where I suspect similar issues may occur and may not be very visible in our test coverage.

@danyill danyill requested a review from ca-d June 23, 2023 20:30
@danyill danyill marked this pull request as draft June 23, 2023 20:38
@danyill danyill marked this pull request as ready for review June 23, 2023 20:43
@danyill danyill changed the title fix(editors/IED): Allow IEDs to be updated after edit count change fix(editors/IED): Allow IEDs to be deleted after edit count change Jun 24, 2023
@danyill
Copy link
Collaborator Author

danyill commented Jun 24, 2023

For now I just fix this problem, I hope to have a look through other editors where I suspect similar issues may occur and may not be very visible in our test coverage.

I can't see that we use the updated method in a similar manner to this in other plugins so I think we're fine.

Copy link
Contributor

@ca-d ca-d left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

@danyill
Copy link
Collaborator Author

danyill commented Jul 1, 2023

Thanks for the review!

@danyill danyill merged commit 1df6842 into openscd:main Jul 1, 2023
1 check passed
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.

Unable to delete multiple IEDs in IED editor
2 participants