-
Notifications
You must be signed in to change notification settings - Fork 50
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
fetch restricted runs in publisher #964
Conversation
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.
Looks good to me, better to have a unittest for this usecase
4ca9fe8
to
579bc87
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #964 +/- ##
=======================================
Coverage 67.75% 67.76%
=======================================
Files 128 128
Lines 3228 3229 +1
Branches 913 935 +22
=======================================
+ Hits 2187 2188 +1
Misses 996 996
Partials 45 45 ☔ View full report in Codecov by Sentry. |
I don't see many tests for |
@@ -10,6 +11,7 @@ class DiscoveryDataApiService { | |||
const queryParams = { | |||
editable: 1, | |||
exclude_utm: 1, | |||
include_restricted: restrictionTypeValues, |
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.
hmmm, do we not need any test updates for 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.
No. There are virtually no tests for this file.
{ value: 'custom-b2c', label: 'Custom B2C' }, | ||
]; | ||
|
||
const RESTRICTION_TYPE_VALUES = RESTRICTION_TYPE_OPTIONS.map(opt => opt.value).filter(Boolean).join(','); |
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.
👍🏽 on that Boolean filter
PROD-4088
This PR adds adds the restriction params to the API calls in Publisher to ensure that restricted runs are always fetched/updated properly in Publisher.
Testing