Skip to content
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

NH-66480: remove packagecloud and downgrade graphql version #48

Merged
merged 10 commits into from
Jan 22, 2024

Conversation

xuan-cao-swi
Copy link
Contributor

No description provided.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@xuan-cao-swi xuan-cao-swi marked this pull request as ready for review January 17, 2024 15:09
@xuan-cao-swi xuan-cao-swi requested a review from a team as a code owner January 17, 2024 15:09
@xuan-cao-swi
Copy link
Contributor Author

Won't fix https://github.com/solarwinds/solarwinds-apm-ruby/security/code-scanning/3 since can't find better way to sanitize graphql. P.S. current otel graphql instrumentation doesn't have sanitization.

Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @xuan-cao-swi! Question about the graphql handling and as discussed will wait for your fix on the failing tests.

lib/solarwinds_apm/inst/graphql.rb Outdated Show resolved Hide resolved
@xuan-cao-swi xuan-cao-swi requested a review from cheempz January 19, 2024 14:22
ENV['SW_APM_COLLECTOR'] = 'collector.abc.bbc.appoptics.com'

SolarWindsAPM::OboeInitOptions.instance.re_init
options = SolarWindsAPM::OboeInitOptions.instance.array_for_oboe

_(options.size).must_equal 21
_(options[20]).must_equal 1
_(options[20]).must_equal 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no test to confirm an appoptics collector endpoint results in metrics mode of 1 now. This test needs to be fixed to actually "checks for metric mode appoptics".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @xuan-cao-swi, just need that metrics mode for AO test fixed.

Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the enhanced tests @xuan-cao-swi!

@xuan-cao-swi xuan-cao-swi merged commit 882e2db into main Jan 22, 2024
6 checks passed
@xuan-cao-swi xuan-cao-swi deleted the NH-66480 branch January 23, 2024 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants