Skip to content

Conversation

@taooceros
Copy link
Member

@taooceros taooceros commented Apr 19, 2021

following on from #398
close #402

@taooceros taooceros requested a review from jjw24 April 19, 2021 05:06
}
_historyItemsStorage.Save();
_userSelectedRecordStorage.Save();
_topMostRecordStorage.Save();
Copy link
Member Author

Choose a reason for hiding this comment

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

I remove this because it will prevent flow to continue save the records once user hit "Save Settings"

Comment on lines -816 to +809
result.Score += _userSelectedRecord.GetSelectedCount(result) * 5 + priorityScore;
result.Score += _userSelectedRecord.GetSelectedCount(result) + priorityScore;
Copy link
Member Author

Choose a reason for hiding this comment

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

This *5 has been changed to UserSelectedRecords. Old one will get 1 score everytime selected

public Dictionary<int, int> records { get; private set; }
public Dictionary<int, int> recordsWithQuery { get; private set; }

[JsonInclude, JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
Copy link
Member Author

Choose a reason for hiding this comment

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

This is used to remove it once transformed

public UserSelectedRecord()
{
records = new Dictionary<int, int>();
recordsWithQuery = new Dictionary<int, int>();
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure whether this name is great......but we cannot use records as name since the legacy one is using it.

@jjw24
Copy link
Member

jjw24 commented Apr 22, 2021

Will take a look this weekend

@jjw24 jjw24 added the bug Something isn't working label Apr 22, 2021
@jjw24 jjw24 enabled auto-merge April 26, 2021 20:40
@jjw24 jjw24 merged commit baf961e into Flow-Launcher:dev Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dev branch: PR398 resets user selected records

2 participants