Skip to content

Fix neutral model validation to consider kind#2965

Merged
koesie10 merged 3 commits intomainfrom
koesie10/modeled-method-validation-neutral
Oct 16, 2023
Merged

Fix neutral model validation to consider kind#2965
koesie10 merged 3 commits intomainfrom
koesie10/modeled-method-validation-neutral

Conversation

@koesie10
Copy link
Copy Markdown
Member

This fixes a bug where the validation of modeled methods would not consider the kind of the modeled method, and would therefore give an error when there was e.g. a neutral sink and a non-neutral summary.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

This fixes a bug where the validation of modeled methods would not
consider the kind of the modeled method, and would therefore give an
error when there was e.g. a neutral sink and a non-neutral summary.
@koesie10 koesie10 requested a review from a team as a code owner October 12, 2023 14:43
Comment thread extensions/ql-vscode/src/model-editor/shared/validation.ts
Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

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

Thanks for updating / explaining. I now agree this implementation looks correct, and the tests also cover all cases.

@koesie10 koesie10 merged commit d0e0237 into main Oct 16, 2023
@koesie10 koesie10 deleted the koesie10/modeled-method-validation-neutral branch October 16, 2023 11:23
@koesie10 koesie10 mentioned this pull request Oct 16, 2023
3 tasks
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.

2 participants