vscode-codeql icon indicating copy to clipboard operation
vscode-codeql copied to clipboard

Use rich type columns and endpoint kinds for Python model editor

Open koesie10 opened this issue 1 year ago • 0 comments

This makes changes to the Python model editor parsing code to incorporate the query changes from https://github.com/github/codeql/pull/15655. These changes consist of:

  • Adding support for reading rich type columns (as implemented by https://github.com/github/codeql/pull/16490): This makes it possible to replace the columns ["requests", "Member[adapters].Member[HTTPAdapter].Instance.Member[add_headers]"] by ["requests.HTTPAdapter", "Member[add_headers]"].
  • Write rich type columns instead of complex paths. We still retain support for reading non-rich type columns.
  • Use the kind column that has been added in https://github.com/github/codeql/pull/15655 (the last column returned in the query). This makes it possible to properly handle class methods, which we would otherwise need to detect by the name of the method argument rather than just receiving this information from the query.

koesie10 avatar Jul 02 '24 13:07 koesie10