-
-
Notifications
You must be signed in to change notification settings - Fork 455
Bring Legacy records together #416
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
Conversation
| } | ||
| _historyItemsStorage.Save(); | ||
| _userSelectedRecordStorage.Save(); | ||
| _topMostRecordStorage.Save(); |
There was a problem hiding this comment.
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"
| result.Score += _userSelectedRecord.GetSelectedCount(result) * 5 + priorityScore; | ||
| result.Score += _userSelectedRecord.GetSelectedCount(result) + priorityScore; |
There was a problem hiding this comment.
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)] |
There was a problem hiding this comment.
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>(); |
There was a problem hiding this comment.
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.
|
Will take a look this weekend |
following on from #398
close #402