Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dan product notifications#1524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chillenberger merged 13 commits intomasterfromdan-product-notifications
Jun 14, 2024
Merged

Conversation

@chillenberger
Copy link
Contributor

@chillenbergerchillenberger commentedJun 14, 2024
edited
Loading

  • add product High banner to all of product
  • add product High Modal popup
  • add product Medium banner to product with deployment specific capability
  • add product Marketing banner to all of product
  • add review after duration

@chillenbergerchillenberger marked this pull request as ready for reviewJune 14, 2024 17:37
@chillenbergerchillenberger merged commitd1c7351 intomasterJun 14, 2024
@chillenbergerchillenberger deleted the dan-product-notifications branchJune 14, 2024 17:43
pubfnupdate_viewed(new:&Vec<String>,cookies:&CookieJar<'_>){
letmut cookie =Cookie::new("session",format!(r#"{{"notifications": {:?}}}"#, new));
pubfnupdate_viewed(new:&Vec<NotificationCookie>,cookies:&CookieJar<'_>){
let serialized = new.iter().map(|x| x.to_string()).collect::<Vec<String>>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You want to useserde_json::to_string


impl std::fmt::DisplayforNotificationCookie{
fnfmt(&self,f:&mut std::fmt::Formatter<'_>) -> std::fmt::Result{
letmut rsp =format!(r#"{{"id": "{}""#,self.id.clone());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

serde_json::to_string

self
}

pubfnjson(body:String) ->Response{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We should move this topgml_components crate.

.into_iter()
.map(|x|x.as_str().unwrap().to_string())
.collect::<Vec<String>>(),
.map(|x|serde_json::from_str::<NotificationCookie>(&x.to_string()).unwrap())
Copy link
Contributor

@levkklevkkJun 14, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is not backwards compatible. You need to catch the deserialization error here and either bubble up the error, convert the old format to the new one, or return a default value.

chillenberger added a commit that referenced this pull requestJun 17, 2024
@chillenbergerchillenberger restored the dan-product-notifications branchJune 17, 2024 17:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@levkklevkklevkk left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@chillenberger@levkk

[8]ページ先頭

©2009-2025 Movatter.jp