Skip to content

Fix duplicate license expiry handling#24

Open
Teichoui wants to merge 1 commit intoRedGuides:mainfrom
Teichoui:license-sync-fix
Open

Fix duplicate license expiry handling#24
Teichoui wants to merge 1 commit intoRedGuides:mainfrom
Teichoui:license-sync-fix

Conversation

@Teichoui
Copy link
Copy Markdown

Fixes a Live sync bug where duplicate license rows for the same plugin could cause a valid resource to be blocked as license_expired.

What changed

  • treat a resource as licensed if any active license row for that resource is still valid or unlimited
  • keep license_expired only when all active license rows for that resource are expired
  • prefer payload data from a valid license row when duplicate rows exist
  • add regression coverage for the duplicate-license case from issue not downloading all plugins. #21

Verification

  • Automated: 58 passed on the local Python 3.12 test suite
  • Manual: verified on a LIVE account with duplicate MQ2Shaman license rows (expired + current) by deleting the local plugin and running a normal bulk update
  • Result: MQ2Shaman.zip (ID: 1724) downloaded successfully during the update flow

Closes #21

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.

not downloading all plugins.

1 participant