Skip to content

Commit

Permalink
fix(rust): do not use camel case in event names (#1559)
Browse files Browse the repository at this point in the history
* Revert a226fec as it affects the event names (`progress` vs
`Progress`).
* Add the changelog for #1532.
  • Loading branch information
imobachgs authored Aug 28, 2024
2 parents d1a0e5a + dc89478 commit 4cabf6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/agama-server/src/web/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use tokio::sync::broadcast::{Receiver, Sender};
use super::common::Issue;

#[derive(Clone, Debug, Serialize)]
#[serde(rename_all = "camelCase", tag = "type")]
#[serde(tag = "type")]
pub enum Event {
L10nConfigChanged(LocaleConfig),
LocaleChanged {
Expand Down Expand Up @@ -102,6 +102,7 @@ pub enum Event {
job: Job,
},
DASDFormatJobChanged {
#[serde(rename = "jobId")]
job_id: String,
summary: HashMap<String, DASDFormatSummary>,
},
Expand Down
5 changes: 5 additions & 0 deletions rust/package/agama.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 28 12:37:34 UTC 2024 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Expose the DASD D-Bus API through HTTP (gh#openSUSE/agama#1532).

-------------------------------------------------------------------
Tue Aug 27 13:57:35 UTC 2024 - José Iván López González <jlopez@suse.com>

Expand Down

0 comments on commit 4cabf6c

Please sign in to comment.