diff --git a/CHANGELOG.md b/CHANGELOG.md index 554fb0a..196ac82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased - Round trip `field_id` +- Add `ixp` dataset flag +- rename label def description to instructions # v0.33.1 - Fix selection index issue on custom label trend reports diff --git a/api/src/resources/dataset.rs b/api/src/resources/dataset.rs index 86154a3..a3c646f 100644 --- a/api/src/resources/dataset.rs +++ b/api/src/resources/dataset.rs @@ -27,6 +27,7 @@ pub enum DatasetFlag { ExternalMoonLlm, Qos, ZeroShotLabels, + Ixp, } #[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)] diff --git a/api/src/resources/label_def.rs b/api/src/resources/label_def.rs index 478fb2b..77acf4c 100644 --- a/api/src/resources/label_def.rs +++ b/api/src/resources/label_def.rs @@ -12,7 +12,7 @@ pub struct LabelDef { pub name: Name, #[serde(default)] - pub description: String, + pub instructions: String, #[serde(default, skip_serializing_if = "Option::is_none")] pub external_id: Option, #[serde(default, skip_serializing_if = "Option::is_none")] @@ -28,7 +28,7 @@ pub struct NewLabelDef { pub name: Name, #[serde(default, skip_serializing_if = "Option::is_none")] - pub description: Option, + pub instructions: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub external_id: Option, #[serde(default, skip_serializing_if = "Option::is_none")] diff --git a/cli/tests/test_datasets.rs b/cli/tests/test_datasets.rs index 50ce664..28d75e5 100644 --- a/cli/tests/test_datasets.rs +++ b/cli/tests/test_datasets.rs @@ -132,7 +132,7 @@ fn test_create_update_dataset_custom() { }, { "name": "foo", - "description": "Long label description", + "instructions": "Long label description", "external_id": "ext id", "title": "Title Me", "pretrained": { @@ -224,7 +224,7 @@ fn test_create_update_dataset_custom() { label_defs: vec![ LabelDef { name: LabelName("bar".to_owned()), - description: "".to_owned(), + instructions: "".to_owned(), external_id: None, pretrained: None, title: "".to_owned(), @@ -232,7 +232,7 @@ fn test_create_update_dataset_custom() { }, LabelDef { name: LabelName("foo".to_owned()), - description: "Long label description".to_owned(), + instructions: "Long label description".to_owned(), external_id: Some("ext id".to_owned()), pretrained: Some(LabelDefPretrained { id: LabelDefPretrainedId("0000000000000001".to_owned()), @@ -250,7 +250,7 @@ fn test_create_update_dataset_custom() { label_defs: vec![ LabelDef { name: LabelName("bar".to_owned()), - description: "".to_owned(), + instructions: "".to_owned(), external_id: None, pretrained: None, title: "".to_owned(), @@ -258,7 +258,7 @@ fn test_create_update_dataset_custom() { }, LabelDef { name: LabelName("foo".to_owned()), - description: "Long label description".to_owned(), + instructions: "Long label description".to_owned(), external_id: Some("ext id".to_owned()), pretrained: Some(LabelDefPretrained { id: LabelDefPretrainedId("0000000000000001".to_owned()),