Skip to content

Convert modeled-method-fs.ts to handle multiple models per method#2905

Merged
koesie10 merged 2 commits intomainfrom
koesie10/convert-modeled-method-fs
Oct 9, 2023
Merged

Convert modeled-method-fs.ts to handle multiple models per method#2905
koesie10 merged 2 commits intomainfrom
koesie10/convert-modeled-method-fs

Conversation

@koesie10
Copy link
Copy Markdown
Member

@koesie10 koesie10 commented Oct 4, 2023

This will change the input/output types for modeled methods in the modeled-method-fs.ts file to take in multiple models per method. This removes the need for conversion functions between this file and yaml.ts files. Instead, the conversion functions are done when calling any functions defined in modeled-method-fs.ts files.

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 will change the input/output types for modeled methods in the
`modeled-method-fs.ts` file to take in multiple models per method. This
removes the need for conversion functions between this file and
`yaml.ts` files. Instead, the conversion functions are done when calling
any functions defined in `modeled-method-fs.ts` files.
Base automatically changed from koesie10/convert-yaml-modeled-methods to main October 4, 2023 12:01
@koesie10 koesie10 marked this pull request as ready for review October 4, 2023 12:04
@koesie10 koesie10 requested a review from a team as a code owner October 4, 2023 12:04
Comment thread extensions/ql-vscode/src/model-editor/modeled-method-fs.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.

One comment but otherwise looks good to me.

This is going exactly the way I intended, by pushing the convertToLegacyModeledMethods higher and higher up the call stack, until eventually everything will be converted and we can get rid of those conversion methods. I'm glad it seems to be working out ok.

Co-authored-by: Robert <robertbrignull@github.com>
@koesie10 koesie10 merged commit 08342f1 into main Oct 9, 2023
@koesie10 koesie10 deleted the koesie10/convert-modeled-method-fs branch October 9, 2023 09:54
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