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: Certificates Update #295

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open

feat: Certificates Update #295

wants to merge 48 commits into from

Conversation

tunny17
Copy link
Collaborator

@tunny17 tunny17 commented May 1, 2024

What does this PR do?

Fixes #289

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change adds a new database migration
  • This change requires a documentation update

How should this be tested?

  • go to the /apps/backend dir then run "node server.js". Open your postman, set it up and input the params in the body and send the POST req.

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand bits
  • Ran pnpm build
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the ClassroomIO Docs if changes were necessary

@tunny17 tunny17 requested a review from rotimi-best May 1, 2024 09:47
Copy link

vercel bot commented May 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cio-cloud ❌ Failed (Inspect) May 30, 2024 3:47pm
cio-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 3:47pm
cio-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 3:47pm

Copy link

github-actions bot commented May 1, 2024

Thank you for following the naming conventions for pull request titles! 🙏

Comment on lines +48 to +53
try {
courseSchema.parse({
description: $course.description || '',
is_certificate_downloadable: $course.is_certificate_downloadable || false,
certificate_theme: $course.certificate_theme || ''
});
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tunny17 Use the validation approach we use and not expose a schema to a component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Certificates update
2 participants