Skip to content

Add static application type initialization and related tests#94

Open
yeswanth2420 wants to merge 6 commits into
developfrom
dynamic_applicationtype
Open

Add static application type initialization and related tests#94
yeswanth2420 wants to merge 6 commits into
developfrom
dynamic_applicationtype

Conversation

@yeswanth2420
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 19, 2026 11:58
@yeswanth2420 yeswanth2420 requested review from bhushan-mdn, gravi21 and sanwar96 and removed request for Copilot January 19, 2026 12:00
bhushan-mdn
bhushan-mdn previously approved these changes Jan 23, 2026
Copy link
Copy Markdown
Contributor

@bhushan-mdn bhushan-mdn left a comment

Choose a reason for hiding this comment

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

Looks good.

Comment thread shared/coretypes.go
Comment thread shared/coretypes_test.go
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces dynamic application type management by replacing hardcoded validation logic with database-driven validation. The system now initializes predefined application types (STB, XHOME, SKY) in the database on startup and validates against this stored data using case-insensitive matching.

Changes:

  • Added InitializeStaticApplicationTypes() to create predefined application types on first run
  • Replaced hardcoded isValid() with database-backed IsValidApplicationType() using case-insensitive matching
  • Introduced GetAllApplicationTypeList() to retrieve all application types from the cached database
  • Added bootstrap call in main.go to initialize static application types after API setup
  • Updated database schema with unrelated changes to PenetrationMetrics table and compression syntax

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.

File Description
shared/coretypes.go Added database-driven application type initialization and validation logic with three new functions
shared/coretypes_test.go Removed tests for old hardcoded validation, modified existing tests (with issues)
main.go Added bootstrap initialization call for static application types after XconfSetup
db/db_create_tables.cql Contains unrelated schema changes (field renames and compression syntax update)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread shared/coretypes.go
Comment thread shared/coretypes.go
Comment thread db/db_create_tables.cql
Comment thread db/db_create_tables.cql Outdated
Comment thread shared/coretypes.go
Comment thread shared/coretypes_test.go
Comment thread shared/coretypes_test.go Outdated
Comment thread shared/coretypes.go
Comment thread shared/coretypes.go
Copilot AI review requested due to automatic review settings January 27, 2026 12:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread shared/coretypes_test.go
Comment thread shared/coretypes.go
Comment thread shared/coretypes_test.go
Comment thread shared/coretypes.go
Comment thread shared/coretypes.go
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.

4 participants