Rename editor-manual to manual
There is a defined list of of valid origin values for the provenance.
This does not include `editor`, so to make sure all values are valid we
use `manual` instead.
See ac1df4de91/java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll (L221-L229)
This commit is contained in:
@@ -11,7 +11,7 @@ export type Provenance =
|
||||
// Generated by the dataflow model and manually edited
|
||||
| "df-manual"
|
||||
// Entered by the user in the editor manually
|
||||
| "editor-manual";
|
||||
| "manual";
|
||||
|
||||
export type ModeledMethod = {
|
||||
type: ModeledMethodType;
|
||||
|
||||
@@ -224,7 +224,7 @@ DataExtensionsEditor.args = {
|
||||
input: "Argument[this]",
|
||||
output: "ReturnValue",
|
||||
kind: "taint",
|
||||
provenance: "editor-manual",
|
||||
provenance: "manual",
|
||||
},
|
||||
"org.sql2o.Query#executeScalar(Class)": {
|
||||
type: "neutral",
|
||||
|
||||
@@ -50,6 +50,6 @@ MethodRow.args = {
|
||||
input: "Argument[this]",
|
||||
output: "ReturnValue",
|
||||
kind: "taint",
|
||||
provenance: "editor-manual",
|
||||
provenance: "manual",
|
||||
},
|
||||
};
|
||||
|
||||
@@ -71,9 +71,7 @@ export const MethodRow = ({
|
||||
...modeledMethod,
|
||||
type: target.value as ModeledMethodType,
|
||||
provenance:
|
||||
modeledMethod?.provenance === "df-generated"
|
||||
? "df-manual"
|
||||
: "editor-manual",
|
||||
modeledMethod?.provenance === "df-generated" ? "df-manual" : "manual",
|
||||
});
|
||||
},
|
||||
[onChange, externalApiUsage, modeledMethod, argumentsList],
|
||||
|
||||
Reference in New Issue
Block a user