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

can bring your own history class #166

Closed
wants to merge 8 commits into from
Closed

Conversation

Ppito
Copy link
Contributor

@Ppito Ppito commented Dec 5, 2023

Hello @Frezyx,

I need to monitor my application and keep the log history to do some stuff on it. (Like, to bring back all the logs for our support operations).
So I've moved the logic of your history implementation into a class that I can override like I want.

By the way, I saw that you were thinking about a FileManager implementation, and I think we could use this approach. What do you thinks ?

And by extension, why not offer log history implementations directly with Isar, hive or SQFlite database?

In any case, by passing through a class we'll be free to make our own implementation of the history backup.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c09d434) 100.00% compared to head (f855531) 100.00%.
Report is 11 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #166   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        11    +1     
  Lines          173       183   +10     
=========================================
+ Hits           173       183   +10     

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

Comment on lines +3 to +5
class DefaultTalkerHistory implements TalkerHistory {
DefaultTalkerHistory(this.settings);

Copy link
Owner

Choose a reason for hiding this comment

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

Can you provide documentation ?
(Public class)

Comment on lines +30 to +32

abstract class TalkerHistory {
List<TalkerDataInterface> get history;
Copy link
Owner

Choose a reason for hiding this comment

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

Can you provide documentation ?
(Public class)

@Frezyx
Copy link
Owner

Frezyx commented Dec 12, 2023

Hello @Ppito !
Good history functional extending.
Please fix comments and we will merge this PR

@Ppito
Copy link
Contributor Author

Ppito commented Dec 12, 2023

Sorry, I broke my git and pulled the wrong thing ... ignore this PR, I'll make another clean one.

@Ppito Ppito closed this Dec 12, 2023
@Ppito Ppito deleted the feat-history branch December 12, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants