Skip to content
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

[Feature][Calling] CSS call history #710

Merged
merged 30 commits into from
Feb 28, 2023

Conversation

pavelprystinka
Copy link
Member

Purpose

  • CSS call history

Does this introduce a breaking change?

  • Yes
  • No

Pull Request Type

What kind of change does this Pull Request introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes
  • Other... Please describe:

Pull Request Checklist

  • Public API changes
  • Verified for cross-platform
  • Synced with iOS, Web team
  • Internal review completed
  • UI Changes
    • Screen captures included
    • Tested for Light/Dark mode
    • Tested for screen rotation
    • Tested on Tablet and small screen device (5")
    • Include localization changes
  • Tests
    • Memory leak analysis performed
    • Tested on API 21, 26 and latest
    • Tested for background mode
    • Unit Tests Included
    • UI Automated Tests Included

How to Test

  • Open...
  • Click on...

What to Check

Verify that the following are valid

  • ...

Other Information

@pavelprystinka pavelprystinka requested review from a team as code owners January 30, 2023 02:39
@acs-ui-bot acs-ui-bot added the Feature New feature added label Jan 30, 2023
Copy link
Member

@grigoryk grigoryk left a comment

Choose a reason for hiding this comment

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

Did a first pass, mostly just on the db stuff. It mostly looks fine, but see comments around specifics.

In summary:

  • better lifecycle of the db connection (don't throw away the opened connection)
  • simplify schema (remove id)
  • simplify cleanup logic, make it part of an insert logic as a single DELETE in a transaction; won't need a remove method then
  • switch to just using Long for start timestamp. it's more correct, and you won't need to do all that time parsing stuff and won't need a threetenbp library include (or desugaring java8+ features)
  • I'm fairly sure you're doing all the db operations on the main dispatcher (due to using lifecycleScope), which is not what you want. Use a dedicated single-threaded executor instead (since sqlite is inherently single-threaded and won't like it if we write simultaneously on different threads).

Copy link
Member

@grigoryk grigoryk left a comment

Choose a reason for hiding this comment

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

Reviewed in person.

grigoryk
grigoryk previously approved these changes Feb 28, 2023
Copy link
Member

@grigoryk grigoryk left a comment

Choose a reason for hiding this comment

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

r+ if you address comments on the CallHistoryRepository.

Copy link
Member

@grigoryk grigoryk left a comment

Choose a reason for hiding this comment

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

Looks good to me! I focused on the repository/etc parts in the review. The rest looks okay at a glance.

@pavelprystinka pavelprystinka merged commit ccc4d89 into release/Calling-v1.2.0 Feb 28, 2023
@pavelprystinka pavelprystinka deleted the feature/css_call_history_v1 branch February 28, 2023 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants