Skip to content

Commit

Permalink
Rename thread.ui to thread.main
Browse files Browse the repository at this point in the history
In order to be consistent with getsentry/rfcs#36
  • Loading branch information
markushi committed Nov 28, 2022
1 parent ba8d9a6 commit 504a108
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions relay-general/src/protocol/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub struct Thread {
pub current: Annotated<bool>,

/// A flag indicating whether the thread was responsible for rendering the user interface.
pub ui: Annotated<bool>,
pub main: Annotated<bool>,

/// Additional arbitrary fields for forwards compatibility.
#[metastructure(additional_properties)]
Expand Down Expand Up @@ -168,7 +168,7 @@ mod tests {
"name": "myname",
"crashed": true,
"current": true,
"ui": true,
"main": true,
"other": "value"
}"#;
let thread = Annotated::new(Thread {
Expand All @@ -178,7 +178,7 @@ mod tests {
raw_stacktrace: Annotated::empty(),
crashed: Annotated::new(true),
current: Annotated::new(true),
ui: Annotated::new(true),
main: Annotated::new(true),
other: {
let mut map = Map::new();
map.insert(
Expand Down
16 changes: 8 additions & 8 deletions relay-general/tests/snapshots/test_fixtures__event_schema.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2931,6 +2931,14 @@ expression: "relay_general::protocol::event_json_schema()"
}
]
},
"main": {
"description": " A flag indicating whether the thread was responsible for rendering the user interface.",
"default": null,
"type": [
"boolean",
"null"
]
},
"name": {
"description": " Display name of this thread.",
"default": null,
Expand All @@ -2950,14 +2958,6 @@ expression: "relay_general::protocol::event_json_schema()"
"type": "null"
}
]
},
"ui": {
"description": " A flag indicating whether the thread was responsible for rendering the user interface.",
"default": null,
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
Expand Down

0 comments on commit 504a108

Please sign in to comment.