Skip to content

Conversation

@agrognetti
Copy link
Contributor

@agrognetti agrognetti commented Dec 8, 2025

  • Plugins now receive registration results via onPluginsReady
  • PluginMetadata now requires a version.
  • Creates RegistrationCompleteResult to track plugin registration success or failure.
  • Updates tests and interfaces to support these changes.

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Note

Tracks plugin registration success/failures and invokes onPluginsReady with results; extends PluginMetadata with id/version.

  • SDK Core (LDClient):
    • Collects plugin registration failures and builds RegistrationCompleteResult.
    • Invokes plugin.onPluginsReady(result, metadata) after registration for each environment.
    • Registers hooks prior to registration; logs per-plugin errors.
  • Integrations API:
    • Plugin: adds onPluginsReady(RegistrationCompleteResult, EnvironmentMetadata) default no-op.
    • PluginMetadata: adds getId() and getVersion() accessors (default empty), keeps getName() abstract.
    • New RegistrationCompleteResult sealed class with Success and Failure(List<PluginFailure>).
  • Tests:
    • Update mock plugin metadata to include name, version, and id.

Written by Cursor Bugbot for commit a14d9c3. This will update automatically on new commits. Configure here.

Plugins now receive registration results via onPluginsReady, and PluginMetadata requires a version.
Creates RegistrationCompleteResult to track plugin registration success or failure.
Updates tests and interfaces to support these changes.
@agrognetti agrognetti requested a review from a team as a code owner December 8, 2025 16:52
@agrognetti agrognetti changed the title Add plugins registration result handling feat: Add plugins registration result handling Dec 8, 2025
Updated the error log message in LDClient to clarify that the exception occurred during execution of onPluginsReady for a plugin, rather than during registration.
Adds a new `getId()` and `getVersion` methods to the `PluginMetadata` abstract class, returning empty strings by default.
@agrognetti agrognetti merged commit ea4a41c into main Dec 11, 2025
6 checks passed
@agrognetti agrognetti deleted the agrognetti/add-plugins-registration-result-callback branch December 11, 2025 18:59
agrognetti added a commit that referenced this pull request Dec 11, 2025
🤖 I have created a release *beep* *boop*
---


##
[5.10.0](5.9.2...5.10.0)
(2025-12-11)


### Features

* Add plugins registration result handling
([#318](#318))
([ea4a41c](ea4a41c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Release 5.10.0 adding plugins registration result handling.
> 
> - **Feature**:
> - Add plugins registration result handling (documented in
`CHANGELOG.md`).
> - **Versioning**:
> - Bump SDK version to `5.10.0` in `gradle.properties` and
`.release-please-manifest.json`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a3a15aa. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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