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

add getting components from yaml GQL #495

Merged
merged 4 commits into from
Apr 8, 2024
Merged

add getting components from yaml GQL #495

merged 4 commits into from
Apr 8, 2024

Conversation

JerrySentry
Copy link
Contributor

Add a new GQL field in Repository to get all components in the YAML, returning the id and name, allow searching by a term

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@JerrySentry JerrySentry requested a review from a team as a code owner April 8, 2024 17:38
@codecov-notifications
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Apr 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.12%. Comparing base (eafd0af) to head (ad38a83).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #495   +/-   ##
=======================================
  Coverage   96.12%   96.12%           
=======================================
  Files         652      652           
  Lines       17297    17305    +8     
=======================================
+ Hits        16627    16635    +8     
  Misses        670      670           
Flag Coverage Δ
unit 96.12% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.12% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

codecov-public-qa bot commented Apr 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.12%. Comparing base (eafd0af) to head (ad38a83).

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #495   +/-   ##
=======================================
  Coverage   96.12%   96.12%           
=======================================
  Files         652      652           
  Lines       17297    17305    +8     
=======================================
+ Hits        16627    16635    +8     
  Misses        670      670           
Flag Coverage Δ
unit 96.12% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.12% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
graphql_api/types/repository/repository.py 100.00% <100.00%> (ø)

Impacted file tree graph

@@ -79,6 +79,9 @@ type Repository {
filters: ComponentMeasurementsSetFilters
orderingDirection: OrderingDirection
): [ComponentMeasurements!]!
componentsYaml(
term_id: String
Copy link
Contributor

@RulaKhaled RulaKhaled Apr 8, 2024

Choose a reason for hiding this comment

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

let's use termId instead of snake case as this deals directly with client

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@JerrySentry JerrySentry merged commit 322b74a into main Apr 8, 2024
16 checks passed
@JerrySentry JerrySentry deleted the apr_08_cot branch April 8, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants