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 'value' key to the plan representation resolver #216

Merged
merged 5 commits into from
Oct 27, 2023

Conversation

adrian-codecov
Copy link
Contributor

Purpose/Motivation

Add value field for plan representation to better align on how the frontend's been handling plan data.

Historically, our plan object has had it's name under the key value, which I think is a little generic, so I thought adding planName instead to be more descriptive was the play. Although I still believe this, it's becoming hard to treat some items as plan.value vs plan.planName in the client as other endpoints (and the backend) still handles logic internally to use value.

What does this PR do?

  • Add value for plan_representations

Notes to Reviewer

Anything to note to the team? Any tips on how to review, or where to start?

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.

@adrian-codecov adrian-codecov changed the title 713 adjust available plans in plan service Add 'value' key to the plan representation resolver Oct 27, 2023
@codecov-staging
Copy link

codecov-staging bot commented Oct 27, 2023

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 Oct 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (24a7a93) 95.61% compared to head (f6d3241) 95.62%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #216   +/-   ##
=======================================
  Coverage   95.61%   95.62%           
=======================================
  Files         602      602           
  Lines       15295    15300    +5     
=======================================
+ Hits        14625    14630    +5     
  Misses        670      670           
Flag Coverage Δ
unit 95.62% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.62% <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.

@codecov-public-qa
Copy link

codecov-public-qa bot commented Oct 27, 2023

Codecov Report

Merging #216 (f6d3241) into main (24a7a93) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #216   +/-   ##
=======================================
  Coverage   95.61%   95.62%           
=======================================
  Files         602      602           
  Lines       15295    15300    +5     
=======================================
+ Hits        14625    14630    +5     
  Misses        670      670           
Flag Coverage Δ
unit 95.62% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.62% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
graphql_api/types/plan/plan.py 98.33% <100.00%> (+0.08%) ⬆️
...i/types/plan_representation/plan_representation.py 97.29% <100.00%> (+0.15%) ⬆️

Impacted file tree graph

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #216 (f6d3241) into main (24a7a93) will increase coverage by 0.20%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            main    #216     +/-   ##
=======================================
+ Coverage   95.32   95.52   +0.20     
=======================================
  Files        714     716      +2     
  Lines      15584   15706    +122     
=======================================
+ Hits       14854   15003    +149     
+ Misses       730     703     -27     
Flag Coverage Δ
unit 95.62% <100.00%> (?)
unit-latest-uploader 95.62% <100.00%> (?)

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

Files Coverage Δ
graphql_api/types/plan/plan.py 98.33% <100.00%> (+0.22%) ⬆️
...i/types/plan_representation/plan_representation.py 97.29% <100.00%> (+0.15%) ⬆️

... and 22 files with indirect coverage changes

@adrian-codecov adrian-codecov merged commit e1d9fb1 into main Oct 27, 2023
19 of 20 checks passed
@adrian-codecov adrian-codecov deleted the 713-adjust-available-plans-in-plan-service branch October 27, 2023 23:56
scott-codecov added a commit that referenced this pull request Nov 6, 2023
* main:
  Test ats run (#229)
  Release 23.11.2 (#228)
  feat: Add comparison endpoint for impacted files (#212)
  Update shared version (#226)
  feat: add a filter for public/private repo filter for viewableRepositories (#224)
  fix: speedup flag filtering in GraphQL API (#223)
  fix: Disable early notify comment (#219)
  Add 'value' key to the plan representation resolver  (#216)
  713 adjust available plans in plan service (#214)
  feat: Allow upload requests originating from Shelter to set storage path (#172)
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.

2 participants