-
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
misc: refactor plugin #52
misc: refactor plugin #52
Conversation
Thanks again for this feature. I agree that it is more clean passing the request context everywhere. Just a minor comment: if we are passing Cheers for setting up logger for |
Highly recommend to introduce golang-ci, because it would trigger a warning for this case, since it embeds https://github.com/kkHAIKE/contextcheck and https://github.com/sonatard/noctx |
the chrome logger and context is still worth. I would consider to merge it and if some are getting reverted as part of #51 - it is fine. Otherwise, please close the PR. |
Yes, I agree. But if we manage the lifecycle of chromium from Globally what I am suggesting is move all the configuration to |
Hi, feel free to commit your suggestions. I do not have the full overview of the current architecture of the plugin. But I agree that some interfaces feels a bit complicated. |
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Over the last weeks, by on my Golang experience, I do some refactoring of the plugin. I followed the recommendation todo one big PR: Summarize of all changes:
|
Thanks a lot for this awesome work @jkroepke I will need some time to look into it as it is quite a big one. But it looks very promising and I like the refactoring you did. I think it would be great addition to the plugin. Thanks again for all your time and effort. Really appreciate it. |
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 have few minor comments. I really like the new sub packages which is more clear and organised. The only major change is I would prefer all the packages taken out of internal
. Something like grafana-infinity-datasource organization. I feel that would be more intuitive for developers to follow the code.
I think we should expand e2e test matrix and update docs. We can do it in next step in a separate PR.
# | ||
skipTlsCheck: false | ||
tlsSkipVerify: false |
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.
The same, please change it back to skipTlsCheck
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.
please check first comment about that.
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
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.
Please fix the failing CI jobs and I can push the rest of little changes that we need before merging this PR.
Thanks again for this awesome work. You put a lot of effort and time and I really appreciate it. You really improved the quality of code a lot with your insights.
CI is green now, feel free to finish and feel free revert the error handling, if you are not agree with that. |
I think we are good. There are very small changes that I will do them in a separate PR. I dont want to squash merge this PR as we will lose a lot of context doing so. Do you agree squashing the commits with same commit message? If you agree, could you please do so and force push the branch? If not I can do it just let me know. Thanks again for the work. Codebase looks much better now. |
Is this fine now? |
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
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.
Amazing work!! Cheers again!
@mahendrapaipuri Any plans for a release? I'm happy to start the integration in our eco system. I'm aware that there are small changes todo, but I would appreciate an release candidate, too. |
@jkroepke I had a deadline, so, couldnt come back to it. I have put up a PR with final changes and some fixes. Feel free to take a look at it. I will try to do a release if everything goes green by end of the day. |
Thanks alot! |
Passing all request contexts to chrome instances
Enable plugin logger for chromedp context
I didn't test that. But on theory, if the http server shutdown gracefully, all requests are canceled first. In conclusion, any chrome contexts should be canceled as well.