faameunier / tk-chrome

Tabby (aka project tabkiller) is a Chrome extension that aims at automatically deleting all your useless tabs.
https://www.tabby.us/
0 stars 0 forks source link

[BackEnd] last_active_timestamp is null for tab not opened yet, it interfers with behaviour #37

Closed MerlinLaffitte closed 4 years ago

MerlinLaffitte commented 4 years ago

What

How

Why

faameunier commented 4 years ago

There is already a basic protection here: https://github.com/faameunier/tk-chrome/blob/93a60e6f5ad3f92bab761f487e8ddce3a6365f84/src/services/scorer.js#L45-L50

It definitely can be improved (maybe add a exp decay in the score from max score to 1 ?) Same applies for protection after restore or next ?

We could also move these logic to the abstract class as I don't think it will change depending on the scorer, but that's for a V10

faameunier commented 4 years ago

closing this as last_active_timestamp is now initiated at creation time and when restored (PR #63)