Skip to content

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Apr 11, 2024

No description provided.

@github-actions github-actions bot added the Ruby label Apr 11, 2024
}

private class DeprecationAdapterImpl extends DeprecationAdapter {
deprecated override predicate sourceModel(string type, string path, string kind) {

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
)
}

deprecated override predicate sinkModel(string type, string path, string kind) {

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
)
}

deprecated override predicate summaryModel(

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.

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

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.

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

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
@hvitved hvitved force-pushed the dynamic/deprecate-csv-models branch from 6467ddd to fdde1c7 Compare April 11, 2024 09:46
}

private class DeprecationAdapterImpl extends DeprecationAdapter {
deprecated override predicate sourceModel(string type, string path, string kind) {

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
)
}

deprecated override predicate sinkModel(string type, string path, string kind) {

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
)
}

deprecated override predicate summaryModel(

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.

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

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.

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

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
}

private class DeprecationAdapterImpl extends DeprecationAdapter {
deprecated override predicate sourceModel(string type, string path, string kind) {

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
)
}

deprecated override predicate sinkModel(string type, string path, string kind) {

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
)
}

deprecated override predicate summaryModel(

Check warning

Code scanning / CodeQL

Inconsistent deprecation

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.

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

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.

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

This deprecated predicate overrides [a non-deprecated predicate](1). Consider deprecating both.
@hvitved hvitved force-pushed the dynamic/deprecate-csv-models branch 3 times, most recently from e197557 to 0d5591f Compare April 11, 2024 11:45
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Apr 11, 2024
@hvitved hvitved marked this pull request as ready for review April 11, 2024 17:34
@hvitved hvitved requested review from a team as code owners April 11, 2024 17:34
yoff
yoff previously approved these changes Apr 12, 2024
Copy link
Contributor

@yoff yoff left a 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?

asgerf
asgerf previously approved these changes Apr 12, 2024
Copy link
Contributor

@asgerf asgerf left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* 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.

@hvitved hvitved dismissed stale reviews from asgerf and yoff via f04431b April 12, 2024 11:14
@hvitved hvitved force-pushed the dynamic/deprecate-csv-models branch from 0d5591f to f04431b Compare April 12, 2024 11:14
@hvitved hvitved force-pushed the dynamic/deprecate-csv-models branch from f04431b to e7dc120 Compare April 12, 2024 11:40
Copy link
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

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

LGTM

@hvitved hvitved merged commit ff55ed8 into github:main Apr 16, 2024
@hvitved hvitved deleted the dynamic/deprecate-csv-models branch April 16, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note Python Ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants