You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docYour PR contains doc changes, no matter whether the changes are in markdown or code files.type/featureThe PR added a new feature or issue requested a new feature
Is your feature request related to a problem? Please describe.
Provide a way to get the applied policy of the topic. In Pulsar, the topic will apply the topic level policy if present or apply the namespace policy if present or use the broker level configuration. It needs to support get the applied policy for a topic that might use the namespace policy or topic policy or broker level default configuration.
Describe the solution you'd like
Add "--applied" for the get policy cmd. For example:
Could you please add doc once you finish all code work? Pulsar admin doc and REST API doc are automatically generated from codes, you can add corresponding descriptions in the code files. Thanks again.
Could you please add doc once you finish all code work? Pulsar admin doc and REST API doc are automatically generated from codes, you can add corresponding descriptions in the code files. Thanks again.
@315157973 yes, the "docs" are added in the code files and they will be shown on websites automatically.
One thing should pay attention to is that if your changes apply to pulsar-admin, REST API, and Java admin API, make sure the "docs" are added there. Do your changes apply to these 3 websites?
"docs" are added in pulsar-admin, REST API.
The Java admin API does not seem to be automatically generated yet?
Many new APIs do not exist, not just those I added
@315157973Java admin API is the same as what you did for pulsar-admin and REST API.
If you want to add docs for Java admin API, you may need to add descriptions to these files.
All of my new APIs have descriptions. However, my new APIs and many old APIs with descriptions are not displayed in Java admin API. Please help to check the tool. @Anonymitaet
For example:
I've checked all commands and documented details here. I found that all commands (except setMessageTTL(String topic, int messageTTLInSecond) are not shown on any version of the Java Admin API website.
docYour PR contains doc changes, no matter whether the changes are in markdown or code files.type/featureThe PR added a new feature or issue requested a new feature
Activity
315157973 commentedon Jan 17, 2021
I will work on it
Support get topic applied policy for message TTL (#9225)
Support get topic applied policy for InactiveTopic (#9230)
Anonymitaet commentedon Jan 22, 2021
@315157973 thanks for your contribution.
Could you please add doc once you finish all code work?
Pulsar admin doc and REST API doc are automatically generated from codes, you can add corresponding descriptions in the code files. Thanks again.
315157973 commentedon Jan 22, 2021
OK
Support get topic applied policy for MaxProducer (#9293)
Support get topic applied policy for DelayedDeliveryPolicies (#9245)
Support get topic applied policy for MaxConsumers (#9296)
Support get topic applied policy for Retention (#9362)
Support get topic applied policy for offloader (#9505)
19 remaining items
Anonymitaet commentedon Apr 9, 2021
@315157973 thanks for your great contribution!
Since you've finished all code work, could u pls add docs for them? Then users know your changes and how to use it.
I think the descriptions should be added to pulsar-admin, REST API, or Java admin API if needed.
Below is an example.

Feel free to ping me if you need doc review.
After doc is added, we can close this issue.
315157973 commentedon Apr 9, 2021
There are descriptions in my code, and we already have automatic document generation tools, so I don’t need to add them manually, right? @Anonymitaet
315157973 commentedon Apr 9, 2021
Looks like it has been generated
Anonymitaet commentedon Apr 9, 2021
@315157973 yes, the "docs" are added in the code files and they will be shown on websites automatically.
One thing should pay attention to is that if your changes apply to pulsar-admin, REST API, and Java admin API, make sure the "docs" are added there. Do your changes apply to these 3 websites?
315157973 commentedon Apr 9, 2021
"docs" are added in
pulsar-admin,REST API.The
Java admin APIdoes not seem to be automatically generated yet?Many new APIs do not exist, not just those I added
Anonymitaet commentedon Apr 9, 2021
@315157973
Java admin APIis the same as what you did forpulsar-adminandREST API.If you want to add docs for Java admin API, you may need to add descriptions to these files.
315157973 commentedon Apr 10, 2021
All of my new APIs have descriptions. However, my new APIs and many old APIs with descriptions are not displayed in
Java admin API. Please help to check the tool. @AnonymitaetFor example:
pulsar/pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/Topics.java
Lines 1660 to 1674 in 56bad04
This API has been around for a long time, but it does not appear in the
Java admin APIAnonymitaet commentedon Apr 12, 2021
@315157973
setMessageTTL(String topic, int messageTTLInSecond)is shown on https://pulsar.apache.org/api/admin/2.7.0-SNAPSHOT/ but not shown on https://pulsar.apache.org/api/admin/.I've checked all commands and documented details here. I found that all commands (except
setMessageTTL(String topic, int messageTTLInSecond) are not shown on any version of the Java Admin API website.Anonymitaet commentedon Apr 12, 2021
Hi @tuteng
@315157973 has added various commands and docs correspondingly in their source code files.
Docs for pulsar-admin and REST API are shown on websites but docs for Java Admin API are not shown on any version of the Java Admin API website (https://pulsar.apache.org/api/admin/2.7.0-SNAPSHOT/ or https://pulsar.apache.org/api/admin/).
Do you have any clues? Many thanks.
Anonymitaet commentedon Apr 13, 2021
Hi @tuteng could u pls give us some instructions? Many thanks.
Anonymitaet commentedon Apr 15, 2021
@315157973 the docs you added for Java Admin API should be shown on https://pulsar.apache.org/api/admin/2.8.0-SNAPSHOT/, however, currently https://pulsar.apache.org/api/admin/2.8.0-SNAPSHOT/ is not generated yet and it should be generated after 2.7.1 is released. I've discussed w/ @tuteng and opened this issue to track. He will handle it.
Since code work has been finished and all docs have been added to source code files (pulsar-admin, REST API, and Java admin API), I'll close this issue and keep an eye for the commands that should be shown on https://pulsar.apache.org/api/admin/2.8.0-SNAPSHOT/ once https://pulsar.apache.org/api/admin/2.8.0-SNAPSHOT/ is generated.
Support get topic applied policy for message TTL (apache#9225)