Allow EP cli to fetch rejections from snowflake (#47628)
Release Notes: - N/A
This commit is contained in:
1 parent
f5d13701d7
commit
44df5c6a85
6 files changed
+483
-28
No files matched your search
@@ -363,7 +363,6 @@ pub fn generate_evaluation_example_from_ordered_commit(
|
||||
repository_url: repository_url.to_string(),
|
||||
revision: format!("{}~1", commit_hash),
|
||||
edit_history: split_commit.source_patch.clone(),
|
||||
// cursor_position: cursor.to_string(),
|
||||
cursor_path: Path::new(&cursor.file).into(),
|
||||
cursor_position: cursor_excerpt,
|
||||
expected_patches: vec![split_commit.target_patch],
|
||||
@@ -372,6 +371,7 @@ pub fn generate_evaluation_example_from_ordered_commit(
|
||||
uncommitted_diff: String::new(),
|
||||
rejected_patch: None,
|
||||
captured_prompt_input: None,
|
||||
telemetry: None,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1395,7 +1395,6 @@ Date: Mon Jan 1 00:00:00 2024
|
||||
repository_url: "https://github.com/test/repo".to_string(),
|
||||
revision: "abc123~1".to_string(),
|
||||
edit_history: "patch1".to_string(),
|
||||
// cursor_position: "file.rs:10:5".to_string(),
|
||||
cursor_path: Path::new("file.rs").into(),
|
||||
cursor_position: "some code<|user_cursor|>".to_string(),
|
||||
expected_patches: vec!["patch".to_string()],
|
||||
@@ -1404,6 +1403,7 @@ Date: Mon Jan 1 00:00:00 2024
|
||||
uncommitted_diff: String::new(),
|
||||
rejected_patch: None,
|
||||
captured_prompt_input: None,
|
||||
telemetry: None,
|
||||
};
|
||||
|
||||
let json = serde_json::to_string(&case).unwrap();
|
||||
|
||||
Reference in new issue
Block a user