Skip to content

Conversation

@mir-huzaif
Copy link

No description provided.

Copy link

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 pull request adds a new system-wide migration function to the LexActivator library, allowing users to migrate existing license data from user-specific storage to system-wide storage. The copyright year in the LICENSE file has also been updated to reflect 2026.

Changes:

  • Added MigrateToSystemWideActivation function to enable migration of license data to system-wide storage
  • Updated native function bindings in lexactivator_native.py for the new migration function
  • Updated LICENSE copyright year from 2025 to 2026

Reviewed changes

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

File Description
cryptlex/lexactivator/lexactivator_native.py Added native ctypes binding for MigrateToSystemWideActivation function with c_uint32 parameter
cryptlex/lexactivator/lexactivator.py Added public wrapper method MigrateToSystemWideActivation with comprehensive docstring describing usage, parameters, and return values
LICENSE.txt Updated copyright year from 2025 to 2026

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

raise LexActivatorException(status)

@staticmethod
def MigrateToSystemWideActivation(oldPermissionFlag):
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The parameter name 'oldPermissionFlag' uses camelCase, which is inconsistent with the codebase's naming convention. Throughout this file, parameter names consistently use snake_case (e.g., 'release_version', 'release_published_date', 'two_factor_authentication_code', 'trial_length'). The parameter should be renamed to 'old_permission_flag' to maintain consistency.

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

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

Changing it to snake case also changing other instances where camel case was being used.

The function does not support migration from custom data directories.
Args:
oldPermissionFlag (int): permission flag used previously
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The parameter name in the docstring should match the actual parameter name used in the function signature. If the parameter is renamed to 'old_permission_flag' for consistency, this documentation should be updated accordingly.

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

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

Changing it to snake case also changing other instances where camel case was being used.

Returns:
int: LA_OK, LA_FAIL
"""
status = LexActivatorNative.MigrateToSystemWideActivation(oldPermissionFlag)
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The parameter name 'oldPermissionFlag' in the native function call should match the parameter name in the function signature. If the parameter is renamed to 'old_permission_flag' for consistency with the codebase naming conventions, this reference should be updated accordingly.

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

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

Changing it to snake case also changing other instances where camel case was being used.

@sonarqubecloud
Copy link

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.

3 participants