Skip to content

[improve][pip] PIP-300: Add custom dynamic configuration for plugins#21127

Merged
nodece merged 5 commits into
apache:masterfrom
nodece:pip-300
Nov 6, 2023
Merged

[improve][pip] PIP-300: Add custom dynamic configuration for plugins#21127
nodece merged 5 commits into
apache:masterfrom
nodece:pip-300

Conversation

@nodece

@nodece nodece commented Sep 5, 2023

Copy link
Copy Markdown
Member

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@nodece nodece marked this pull request as draft September 5, 2023 07:25
@nodece nodece changed the title [improve][pip] PIP-300: Add dynamic configuration for plugins [improve][pip] PIP-300: Add custom dynamic configuration for plugins Sep 5, 2023
@github-actions github-actions Bot added doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. and removed doc-label-missing labels Sep 5, 2023
@apache apache deleted a comment from github-actions Bot Sep 5, 2023
@nodece nodece marked this pull request as ready for review September 5, 2023 09:07
Comment thread pip/pip-300.md Outdated
Comment thread pip/pip-300.md
@Technoboy- Technoboy- added this to the 3.2.0 milestone Nov 6, 2023
@nodece

nodece commented Nov 6, 2023

Copy link
Copy Markdown
Member Author

PIP has been passed.

@nodece nodece merged commit e5af097 into apache:master Nov 6, 2023
BewareMyPower added a commit to BewareMyPower/pulsar that referenced this pull request Dec 12, 2023
### Motivation

See [PIP-300](apache#21127)

### Modifications

Implement `registerCustomDynamicConfiguration`, which just adds a
customized key to `dynamicConfigurationMap` so that updating such a key
will be possible. The value is a `ConfigField` object whose `Field`
field is null.

Add `testUpdateCustomDynamicConfiguration` to verify it works.

It should be noted the implementation is slightly different from the
original proposal, which also does not express the design clearly.
Comment thread pip/pip-300.md
}
try {
ServiceConfiguration.class.getDeclaredField(key);
throw new IllegalArgumentException("Only register custom configuration");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I accidentally copied the wrong code, this check is meaningless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. type/PIP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants