-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dynamic languages: Deprecate models-as-data CSV interface #16181
Conversation
} | ||
|
||
private class DeprecationAdapterImpl extends DeprecationAdapter { | ||
deprecated override predicate sourceModel(string type, string path, string kind) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
) | ||
} | ||
|
||
deprecated override predicate sinkModel(string type, string path, string kind) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
) | ||
} | ||
|
||
deprecated override predicate summaryModel( |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
|
||
private predicate typeModel(string row) { any(TypeModelCsv s).row(inversePad(row)) } | ||
deprecated override predicate typeModel(string type1, string type2, string path) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
|
||
private predicate typeVariableModel(string row) { any(TypeVariableModelCsv s).row(inversePad(row)) } | ||
deprecated override predicate typeVariableModel(string name, string path) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
6467ddd
to
fdde1c7
Compare
} | ||
|
||
private class DeprecationAdapterImpl extends DeprecationAdapter { | ||
deprecated override predicate sourceModel(string type, string path, string kind) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
) | ||
} | ||
|
||
deprecated override predicate sinkModel(string type, string path, string kind) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
) | ||
} | ||
|
||
deprecated override predicate summaryModel( |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
|
||
private predicate typeModel(string row) { any(TypeModelCsv s).row(inversePad(row)) } | ||
deprecated override predicate typeModel(string type1, string type2, string path) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
|
||
private predicate typeVariableModel(string row) { any(TypeVariableModelCsv s).row(inversePad(row)) } | ||
deprecated override predicate typeVariableModel(string name, string path) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
} | ||
|
||
private class DeprecationAdapterImpl extends DeprecationAdapter { | ||
deprecated override predicate sourceModel(string type, string path, string kind) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
) | ||
} | ||
|
||
deprecated override predicate sinkModel(string type, string path, string kind) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
) | ||
} | ||
|
||
deprecated override predicate summaryModel( |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
|
||
private predicate typeModel(string row) { any(TypeModelCsv s).row(inversePad(row)) } | ||
deprecated override predicate typeModel(string type1, string type2, string path) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
|
||
private predicate typeVariableModel(string row) { any(TypeVariableModelCsv s).row(inversePad(row)) } | ||
deprecated override predicate typeVariableModel(string name, string path) { |
Check warning
Code scanning / CodeQL
Inconsistent deprecation Warning
a non-deprecated predicate
e197557
to
0d5591f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python 👍
Can we really get away with no change note, though? If people have models in CSV-files, they would need to convert them, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I think the change note can be omitted, but perhaps the deprecated classes can have a QLDoc comment about how the contents should be migrated to a data extension instead. And in the case of TypeModelCsv
, the TypeModel
class is also an alternative.
@@ -134,15 +134,15 @@ module ModelInput { | |||
* `kind` should be either `value` or `taint`, for value-preserving or taint-preserving steps, | |||
* respectively. | |||
*/ | |||
abstract predicate row(string row); | |||
abstract deprecated predicate row(string row); | |||
} | |||
|
|||
/** | |||
* A unit class for adding additional type model rows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* A unit class for adding additional type model rows. | |
* DEPRECATED. Use a data extension or the `TypeModel` class instead. | |
* | |
* A unit class for adding additional type model rows. |
0d5591f
to
f04431b
Compare
f04431b
to
e7dc120
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.