-
Notifications
You must be signed in to change notification settings - Fork 11
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: return learner_state_counts
as part of the admin assignments list API response
#322
Merged
adamstankiewicz
merged 5 commits into
main
from
ags/admin-assignments-list-learner-state-counts
Nov 7, 2023
Merged
feat: return learner_state_counts
as part of the admin assignments list API response
#322
adamstankiewicz
merged 5 commits into
main
from
ags/admin-assignments-list-learner-state-counts
Nov 7, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learner_state_counts
as part of the admin assignments list API response
3 tasks
adamstankiewicz
commented
Nov 7, 2023
Comment on lines
-6
to
-7
from drf_spectacular.types import OpenApiTypes | ||
from drf_spectacular.utils import OpenApiParameter, extend_schema |
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] The removed imports are unused.
iloveagent57
approved these changes
Nov 7, 2023
katrinan029
added a commit
that referenced
this pull request
Nov 13, 2023
fix: refactored code based on reviewer feedback fix: allow non-opaque-keys as content key for allocate requests fix: data migration to delete Actions sans Assignments, and use on_delete=CASCADE (#314) chore: allow optional logging of Django's SQL fix: missing content titles on assignments feat: Try to populate lms_user_id on assignments during creation This is an attempt to cover the case where learners are already logged in at the moment of assignment. This case is a hole left by the work in ENT-7875 which only set out to cover the case where a learner was logged out at the moment of assignment. ENT-7874 feat: Added assignments in credits_available endpoint feat: allowing consumers of the learner content assignment api to filter by email and content title fix: lint error chore: refactored fix: updated failing tests feat: fetch enterprise catalog content metadata, serialize for credits_available assignments ENT-7878 feat: add course_type field to assignment content metadata serializer feat: return `learner_state_counts` as part of the admin assignments list API response (#322) feat: validate requested allocation price feat: link learners during assignment allocation ENT-7778 | Call task to link learners to enterprise customer during allocation, and have that ask add a successful linked action. fix: new approach to generate `learner_state_count` in admin assignments list API; add addtl ordering and filtering support (#324) chore: rebase fix: lint error chore: added test coverage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to support the default behavior of
DataTable
filtering with checkboxes on the "Status" column of the "Assigned" table in the Learner Credit Management's budget detail page, the paginated response of the admin content assignments list API now returns alearner_state_counts
field that will adhere to any queryset filters, etc.Allows the frontend UI to iterate over
learner_state_counts
to display the following:Example API response
Updated DRF Spectacular docs
The Redoc page now includes the extra pagination fields that were not currently depicted as well as the new
learner_state_counts
field.