Skip to content

Implement TCS NQT questions, Company Guides, and CI improvements - #60

Merged
kumar-veerendra merged 11 commits into
mainfrom
feature/company-guides
Jul 28, 2026
Merged

kumar-veerendra merged 11 commits into
mainfrom
feature/company-guides

Conversation

@kumar-veerendra

Copy link
Copy Markdown
Owner

This pull request introduces several new backend features and models to support company and guide management, as well as draft and debug logging functionality. The main changes include the creation of Mongoose schemas and controllers for companies and company guides, as well as new models for saving user drafts and developer debug logs. The controllers provide both admin and public endpoints for managing and retrieving data.

Company and Guide Management

  • Added Company and CompanyGuide Mongoose models with comprehensive schemas, supporting fields such as name, slug, logo, short descriptions, structured roles, eligibility, exam patterns, FAQs, resources, SEO, and status tracking for guides. Includes support for legacy keys and compound indexes for efficient queries. [1] [2]
  • Implemented adminCompanyGuideController.js with endpoints for admins to create, update, retrieve, publish, unpublish, archive, verify, and delete companies and guides. Includes validation, slug generation, and content sanitization.
  • Implemented companyGuideController.js with public endpoints to list companies, retrieve published guides, featured guides, and guide slugs, as well as fetch guides by slug. Includes highlight computation for featured guides.

Draft and Debug Logging

  • Added Draft model for saving user draft answers to questions, supporting fields for user, question, mode (practice/mock), content, timer, version, device ID, and last saved timestamp. Includes unique index for user/question pairs.
  • Added DeveloperDebugLog model for logging developer debug information such as user, provider, model, latency, retry count, prompt version, validation results, and error reasons. Includes automatic expiration after 24 hours.

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kumar-veerendra-nqtcoder Ready Ready Preview, Comment Jul 28, 2026 6:37pm

@kumar-veerendra
kumar-veerendra merged commit 9eae2ad into main Jul 28, 2026
2 checks passed

This branch was successfully deployed

2 active deployments
Production — ebe49109 Deployed Jul 28, 2026 by vercel[bot]
Preview — ebe49109 Deployed Jul 28, 2026 by vercel[bot]
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