-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: introduce queryEnterpriseCustomerContainsContent #1014
feat: introduce queryEnterpriseCustomerContainsContent #1014
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/react-query-route-loaders #1014 +/- ##
==================================================================
- Coverage 81.28% 81.27% -0.02%
==================================================================
Files 382 384 +2
Lines 7941 7968 +27
Branches 1943 1948 +5
==================================================================
+ Hits 6455 6476 +21
- Misses 1427 1433 +6
Partials 59 59 ☔ View full report in Codecov by Sentry. |
useUserEntitlements, | ||
} from '../data'; | ||
import NotFoundPage from '../../NotFoundPage'; | ||
|
||
const CourseRoute = () => { | ||
const { courseKey } = useParams(); |
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.
[inform] This file will soon be removed in Course migration. Coverage not important.
*/ | ||
export default function useEnterpriseCustomerContainsContent(contentIdentifers, queryOptions = {}) { | ||
const { data: enterpriseCustomer } = useEnterpriseCustomer(); | ||
return useQuery({ |
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.
Coverage will be added when we tackle more currently uncovered hooks like this in bulk. Prioritizing functionality first.
2f46eb4
into
feat/react-query-route-loaders
https://2u-internal.atlassian.net/browse/ENT-8688
Splits out
queryEnterpriseCustomerContainsContent
related things (the API call tocontains_content_items
in enterprise-catalog) as a standalone PR so that it may be used on both course and program related page routes.For all changes
Only if submitting a visual change