Conversation
The legacy result was populated based on information that is already present in `CompletedQueryInfo` anyway. Old history items which only have the legacy result populated have not been created for at least 30 days now since the legacy query runner hasn't been used for quite a while now.
6ff0f93 to
2ba3964
Compare
|
What is the significance of the 30 days? Is that the default query history item expiry time? I believe that's configurable so someone may have changed it. What would happen in that case (I've not looked at the code changes yet)? |
Yes, exactly. However, I think this should actually be fine for all query history items created in the extension in at least the last year. When we enabled the new query server by default, we were already setting |
charisk
left a comment
There was a problem hiding this comment.
Thanks! It's great to see this cleaned up. I can't think of anything wrong with these changes.
| /** | ||
| * A compilation message for a test message (either an error or a warning) | ||
| */ | ||
| export interface CompilationMessage { |
There was a problem hiding this comment.
Should this go in new-messages.ts?
Also should we rename new-messages.ts (and I guess new-query-runner.ts)? Happy for that to be a follow up.
There was a problem hiding this comment.
Not really, since this is not a message that is produced by the query server. This message is only produced for tests, and never as part of a query run. Therefore, I don't think it makes sense to move it to new-messages.ts.
I can rename new-messages.ts in a follow-up PR. new-query-runner.ts has already been renamed as part of #3171
This removes all remaining usages of legacy messages. The first commit changes the most: It removes the
resulton aQueryHistoryItem, which was populated based on information that is already present inCompletedQueryInfoanyway. Old history items which only have the legacy result populated have not been created for at least 30 days now since the legacy query runner hasn't been used for quite a while now. Therefore, we can safely remove it.Checklist
ready-for-doc-reviewlabel there.