-
Notifications
You must be signed in to change notification settings - Fork 6
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
Re-adding features to V2 architecture #1205
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
func (qmc *QuesmaManagementConsole) elasticsearchResolveIndexPattern(ctx context.Context, indexPattern string) (sources elasticsearch.Sources) { | ||
resp, err := qmc.elasticsearch.RequestWithHeaders(ctx, "GET", "_resolve/index/"+indexPattern+"?expand_wildcards=open", nil, nil) |
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.
nitpick: The same uri is used in https://github.com/QuesmaOrg/quesma/blob/main/quesma/elasticsearch/index_resolver.go#L56
Maybe, we can extract common const?
@@ -48,3 +49,46 @@ func (t DummyTableResolver) Pipelines() []string { return []string{} } | |||
func (t DummyTableResolver) RecentDecisions() []mux.PatternDecisions { | |||
return []mux.PatternDecisions{} | |||
} | |||
|
|||
//func (t DummyTableResolver) resolveWildcardCommonTable(indexPattern string) *mux.Decision { |
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.
Is this needed?
@@ -73,12 +74,14 @@ func (p *ElasticsearchToClickHouseQueryProcessor) prepareTemporaryQueryProcessor | |||
logManager := clickhouse.NewEmptyLogManager(p.legacyDependencies.OldQuesmaConfig, p.legacyDependencies.ConnectionPool, p.legacyDependencies.PhoneHomeAgent(), p.legacyDependencies.TableDiscovery) | |||
logManager.Start() | |||
|
|||
abTestingController := sender.NewSenderCoordinator(p.legacyDependencies.OldQuesmaConfig) |
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.
Should not we create and start this Coordinator
earlier? and pass it to Init()
I've made some (a lot of) shortcuts to merge v2 architecture processors. Now it's time to take the high road.
Changes:
IndexManagement
(the only component which depends on it isTableResolver
ClickHouse Ingester
interface @nablaone