Skip to content

Implement the missed test case from codecov #3005

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
May 26, 2025

Conversation

bitfriend
Copy link
Contributor

@bitfriend bitfriend commented May 22, 2025

  • Implement the missed test case from codecov
  • Thus implement some crates for it and extend api.rsh too

Copy link

codecov bot commented May 22, 2025

Codecov Report

Attention: Patch coverage is 92.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 42.53%. Comparing base (bf2ab6c) to head (cf3e911).
Report is 25 commits behind head on main.

Files with missing lines Patch % Lines
native/acter/src/api/comments.rs 94.64% 3 Missing ⚠️
native/test/src/utils.rs 84.21% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3005      +/-   ##
==========================================
+ Coverage   41.70%   42.53%   +0.83%     
==========================================
  Files         899      899              
  Lines       56387    56454      +67     
==========================================
+ Hits        23516    24014     +498     
+ Misses      32871    32440     -431     
Flag Coverage Δ
integration-test 51.24% <92.00%> (+2.06%) ⬆️
unittest 31.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bitfriend bitfriend marked this pull request as ready for review May 26, 2025 12:09
@bitfriend bitfriend requested a review from gnunicorn May 26, 2025 12:10
Comment on lines 1959 to 1979
/// update builder
fn update_builder() -> Result<CommentUpdateBuilder>;

/// replace the current task with one with the latest state
fn refresh() -> Future<Result<Comment>>;

/// whether or not this user can redact this item
fn can_redact() -> Future<Result<bool>>;
}

object CommentUpdateBuilder {
/// set description text
fn content_text(body: string);

/// set description html text
fn content_formatted(body: string, html_body: string);

/// send builder update
fn send() -> Future<Result<EventId>>;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Our UI currently doesn't have any notion of updating comments and having updated comments (like we don't have notifications nor activities for those either), I am not sure we want to expose this API yet...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed by 2c274fd

assert_eq!(cal_events.len(), 3);
let main_event = cal_events.first().expect("main event should be available");

let locations = main_event.locations();
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@bitfriend
Copy link
Contributor Author

But we will keep core module and test fn for comment update.

@bitfriend bitfriend merged commit 7143824 into acterglobal:main May 26, 2025
20 of 23 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Recently Done in Product May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Recently Done
Development

Successfully merging this pull request may close these issues.

2 participants