-
Notifications
You must be signed in to change notification settings - Fork 128
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
[GCS]-Parse configurations from Kibana UI #493
[GCS]-Parse configurations from Kibana UI #493
Conversation
parse configs from ui by formating the private-key
buildkite test this |
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.
Some comments around test specific code in connector implementations and a suggestion for narrowing an exception type.
Hey, I've rebased the branch on the latest main. on a side note, This PR needs to be backported to 8.7 as these changes will be required to make the Google Cloud Connector work with Kibana UI. But I'm not able to add or remove any labels, so can someone do that, would be a great help. cc: @timgrein @tarekziade |
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'm not sure about approach taken here.
Ideally, when connector is initialised, it already has to have all fields initialised and ready to work. In this PR, however, values are initialised later with special private method - doesn't seem like a good pattern to me.
I want to discuss it with @tarekziade - ideally you validate config in initialiser and raise errors there, and framework will show errors in UI correctly.
@artem-shelkovnikov I've been validating the configurations at the time of initialization only, I've moved it to ping keeping this comment in mind. |
I understand, however it feels like this validation should happen in the initialiser OR we should actually introduce a method in the framework Problem that I see with current approach is that connector becomes more fragile. If it happens so that we don't call |
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 agree with @artem-shelkovnikov that _validate_configurations()
and _initialize_configurations()
shouldn't happens in ping()
. Any particular reason to move them out of __init__
?
It also requires to be called in sequence, e.g. it will fail if you call _initialize_configurations()
without calling _validate_configurations()
.
…o handle-configuration-from-ui
buildkite test this |
Co-authored-by: Chenhui Wang <54903978+wangch079@users.noreply.github.com>
c695557
to
fa2acc6
Compare
buildkite test this |
…e client. Co-authored-by: Tim Grein <tim@4greins.de>
buildkite test this |
buildkite test this |
1 similar comment
buildkite test this |
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.
LGTM
@artem-shelkovnikov, @wangch079, Can we get this merge if it looks good to you? |
buildkite test this |
buildkite test this |
💔 Failed to create backport PR(s)
To backport manually run: |
(cherry picked from commit 2144c0f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Closes #466
This PR addresses the following changes:
Checklists
Pre-Review Checklist
make test
andmake ftest NAME=google_cloud_storage
v7.13.2
,v7.14.0
,v8.0.0
)Considered corresponding documentation changesContributed any configuration settings changes to the configuration reference