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

feat!: upgrade certificate_invalidation_view to drf ( 23 ) #35521

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

awais786
Copy link
Contributor

@awais786 awais786 commented Sep 23, 2024

Issue

Steps to test via Postman.

  1. pass this URL in postman as post request.
    form-data: user = student id ( compulsory )
    : notes = your notes ( this is optional param

expected result:

{
    "id": 4,
    "user": "admin",
    "invalidated_by": "admin",
    "created": "September 24, 2024",
    "notes": "testing notes"
}
  1. Now try delete method.
    send data as raw->json.

Steps to verify from instructor dashbard.

  1. Generate a certificate for a student enrolled in the course. ( or add a cert in this table directly admin/certificates/generatedcertificate/)
  2. Enable the "Certificates" tab on the Instructor Dashboard.
  3. Navigate to the following link (replace with your course ID). ( instructor dashboard and certificates tab )
  4. Under the "Invalidate Certificates" section, enter the student's ID and a comment. Upon successful invalidation, the entry will be added to the invalidation table, and a button to remove the entry will appear.

Screenshot 2024-09-24 at 12 51 17 PM

On success it will show the removal button and added a entry inside certificateinvalidation table.

Screenshot 2024-09-24 at 12 51 26 PM
  1. Press the remove button it will remove the entry from table ( certificateinvalidation )

@awais786 awais786 force-pushed the certificate_invalidation_view-to-drf branch from be17650 to 34b317f Compare September 24, 2024 11:07
@awais786 awais786 changed the title Certificate invalidation view to drf feat: Certificate invalidation view to drf ( 23 ) Sep 24, 2024
@awais786 awais786 changed the title feat: Certificate invalidation view to drf ( 23 ) feat: upgrade certificate_invalidation_view to drf ( 23 ) Sep 24, 2024
@awais786 awais786 marked this pull request as ready for review September 24, 2024 18:57
@awais786 awais786 changed the title feat: upgrade certificate_invalidation_view to drf ( 23 ) feat!: upgrade certificate_invalidation_view to drf ( 23 ) Sep 25, 2024
@awais786
Copy link
Contributor Author

awais786 commented Oct 4, 2024

@feanil Please review.

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.

1 participant