Skip to content

added issue date in response#132

Merged
rushi-tekdi merged 1 commit into
tekdi:AI-assessmentfrom
rushi-tekdi:AI-Assessment
Jul 13, 2026
Merged

added issue date in response#132
rushi-tekdi merged 1 commit into
tekdi:AI-assessmentfrom
rushi-tekdi:AI-Assessment

Conversation

@rushi-tekdi

Copy link
Copy Markdown
Collaborator

No description provided.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2b38c141-5efb-4bc6-a7d0-aa43fbb393d6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rushi-tekdi
rushi-tekdi merged commit f3ba55a into tekdi:AI-assessment Jul 13, 2026
1 check was pending
@sonarqubecloud

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the tracking content service to retrieve and include certificate timestamps (issuedOn, createdOn, and updatedOn) in the dashboard data structure. The review feedback suggests defining local interfaces (CertificateInfo and UserStatus) to avoid duplicating inline type definitions and to keep the code DRY and maintainable.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +623 to +626
const statusMap = new Map<
string,
{ status: string; issuedOn: Date | null; createdOn: Date | null; updatedOn: Date | null }
>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

To improve maintainability and avoid duplicating the certificate fields and their types, consider defining a local interface CertificateInfo and using it for the statusMap definition.

        interface CertificateInfo {
          status: string;
          issuedOn: Date | null;
          createdOn: Date | null;
          updatedOn: Date | null;
        }

        const statusMap = new Map<string, CertificateInfo>();

Comment on lines +642 to +651
const userStatusMap: Record<
string,
{
status: string;
highestAttempt: number;
issuedOn: Date | null;
createdOn: Date | null;
updatedOn: Date | null;
}
> = {};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Instead of duplicating the inline type definition for userStatusMap, you can define a local interface UserStatus that extends CertificateInfo to keep the code clean and DRY.

          interface UserStatus extends CertificateInfo {
            highestAttempt: number;
          }
          const userStatusMap: Record<string, UserStatus> = {};

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