Skip to content

feat: 🆕 Entitlements DB web UI in docs site#751

Merged
blacktop merged 12 commits into
masterfrom
feat/ent_site
Jun 9, 2025
Merged

feat: 🆕 Entitlements DB web UI in docs site#751
blacktop merged 12 commits into
masterfrom
feat/ent_site

Conversation

@blacktop

@blacktop blacktop commented Jun 9, 2025

Copy link
Copy Markdown
Owner

No description provided.

@blacktop blacktop requested a review from Copilot June 9, 2025 04:28

Copilot AI 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.

Pull Request Overview

This PR adds new functionality for entitlements in the IPSW DB web UI by introducing new models, database methods, and a GitHub Actions workflow to update the entitlements database. Key changes include:

  • New model definitions for Entitlement, EntitlementKey, and EntitlementWebSearch along with related database query methods.
  • Updates in various logging messages from “filesystem” to “FileSystem” for consistency.
  • Package version bumps and configuration tweaks in Docusaurus and package.json, as well as a new GitHub workflow for updating the entitlements database.

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
www/static/sqlite.worker.js Contains generated worker code for sqlite with source map reference.
www/package.json Updates Docusaurus and dependency versions; changes start script.
www/docusaurus.config.js Adds future config flags and an entitlements nav link.
www/docs/guides/macho.md Updates logging message to use “FileSystem” capitalization.
internal/search/search.go Updates logging messages for scanning “FileSystem”.
internal/model/ent.go New model file defining entitlements structures for DB and web search.
internal/db/sqlite.go Adds new methods for creating, retrieving, and searching entitlements.
internal/commands/ent/ent.go Updates logging messages for scanning “FileSystem” within entitlement scan.
.github/workflows/update-entitlements-db.yml New workflow to automatically update the entitlements database.
Comments suppressed due to low confidence (2)

internal/db/sqlite.go:213

  • The join in SearchEntitlements references the table 'entitlement_keys', but the EntitlementKey model's TableName() method returns 'entitlement_keys_normalized'. Verify that this join targets the intended table or update the TableName for consistency.
dbQuery = dbQuery.Joins("JOIN entitlement_keys ON entitlement_keys.entitlement_id = entitlements.id")

internal/db/sqlite.go:214

  • Ensure that the underlying SQLite environment supports the REGEXP operator or that a custom implementation/extension is configured, as SQLite does not enable REGEXP by default.
Where("entitlement_keys.key REGEXP ?", query.KeyPattern)

@blacktop blacktop merged commit 4872f59 into master Jun 9, 2025
3 of 5 checks passed
@blacktop blacktop deleted the feat/ent_site branch June 9, 2025 04:30
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.

2 participants