-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support getting batches of summary updates via LocalUserIndex (#4983)
- Loading branch information
Showing
21 changed files
with
362 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
pub type Args = super::summary::Args; | ||
use candid::Principal; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct Args { | ||
pub invite_code: Option<u64>, | ||
pub on_behalf_of: Option<Principal>, | ||
} | ||
|
||
pub type Response = super::summary::Response; |
12 changes: 12 additions & 0 deletions
12
backend/canisters/community/api/src/queries/c2c_summary_updates.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use candid::Principal; | ||
use serde::{Deserialize, Serialize}; | ||
use types::TimestampMillis; | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct Args { | ||
pub on_behalf_of: Option<Principal>, | ||
pub updates_since: TimestampMillis, | ||
pub invite_code: Option<u64>, | ||
} | ||
|
||
pub type Response = super::summary_updates::Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
pub type Args = super::summary::Args; | ||
use candid::Principal; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct Args { | ||
pub on_behalf_of: Option<Principal>, | ||
} | ||
|
||
pub type Response = super::summary::Response; |
11 changes: 10 additions & 1 deletion
11
backend/canisters/group/api/src/queries/c2c_summary_updates.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
pub type Args = super::summary_updates::Args; | ||
use candid::Principal; | ||
use serde::{Deserialize, Serialize}; | ||
use types::TimestampMillis; | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct Args { | ||
pub on_behalf_of: Option<Principal>, | ||
pub updates_since: TimestampMillis, | ||
} | ||
|
||
pub type Response = super::summary_updates::Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.