Skip to content

[improve][doc] improve Pulsar function document - #18601

Merged
tisonkun merged 10 commits into
apache:masterfrom
labuladong:improve-function-doc
Dec 1, 2022
Merged

tisonkun merged 10 commits into
apache:masterfrom
labuladong:improve-function-doc

Conversation

@labuladong

@labuladong labuladong commented Nov 24, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #18593

Modifications

Most of the changes are style improvements.

Some key changes are below:

  1. Request users to set functionsWorkerEnabled=true before playing with Pulsar function.
  2. For clarity, always use yaml file to create functions instead of CLI parameters, and remove the redundant UserConfig field in the example yaml file.
  3. Rewrite the document for window function. The original document for window function is wrong.
  4. Move example-stateful-function-config.yaml to examples folder when compile.

Documentation

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

@github-actions github-actions Bot added the doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. label Nov 24, 2022
@labuladong labuladong changed the title WIP:improve function doc [improve][doc] improve Pulsar function document Nov 24, 2022
@labuladong
labuladong marked this pull request as ready for review November 25, 2022 05:08
@labuladong

Copy link
Copy Markdown
Contributor Author

cc @tisonkun @Anonymitaet @momo-jun

@labuladong

Copy link
Copy Markdown
Contributor Author

Sorry I found there still are some improvements, so mark this pr to draft for this moment.

@labuladong
labuladong marked this pull request as draft November 28, 2022 01:35
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
Comment thread site2/docs/functions-quickstart.md Resolved
@momo-jun

Copy link
Copy Markdown
Contributor

@labuladong thanks for improving the docs! Feel free to ping me for another look when it's ready.

@labuladong
labuladong marked this pull request as ready for review November 28, 2022 07:58
@labuladong

Copy link
Copy Markdown
Contributor Author

Change addressed, ready for review~

@labuladong
labuladong requested review from cbornet and momo-jun and removed request for cbornet, eolivelli and momo-jun November 30, 2022 07:02
@codecov-commenter

codecov-commenter commented Nov 30, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #18601 (0e1080b) into master (b579bb8) will decrease coverage by 2.09%.
The diff coverage is 21.95%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18601      +/-   ##
============================================
- Coverage     47.51%   45.42%   -2.10%     
+ Complexity    10520    10077     -443     
============================================
  Files           698      698              
  Lines         68079    68326     +247     
  Branches       7280     7332      +52     
============================================
- Hits          32351    31034    -1317     
- Misses        32151    33699    +1548     
- Partials       3577     3593      +16     
Flag Coverage Δ
unittests 45.42% <21.95%> (-2.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...loadbalance/impl/LeastResourceUsageWithWeight.java 0.00% <0.00%> (ø)
...lsar/broker/loadbalance/impl/ThresholdShedder.java 3.27% <0.00%> (-44.44%) ⬇️
...ersistentStreamingDispatcherMultipleConsumers.java 0.00% <0.00%> (ø)
...istentStreamingDispatcherSingleActiveConsumer.java 0.00% <0.00%> (ø)
...ervice/streamingdispatch/StreamingEntryReader.java 0.00% <0.00%> (ø)
.../pulsar/broker/service/AbstractBaseDispatcher.java 49.42% <25.00%> (-11.40%) ⬇️
...rg/apache/pulsar/broker/service/AbstractTopic.java 60.86% <50.00%> (-4.40%) ⬇️
...roker/loadbalance/impl/ModularLoadManagerImpl.java 65.26% <66.66%> (-3.97%) ⬇️
...tent/PersistentDispatcherSingleActiveConsumer.java 50.47% <71.42%> (-9.41%) ⬇️
...g/apache/pulsar/client/impl/RawBatchConverter.java 3.12% <0.00%> (-89.07%) ⬇️
... and 89 more

@labuladong

Copy link
Copy Markdown
Contributor Author

/pulsarbot rerun-failure-checks

Comment thread site2/docs/functions-package-python.md Resolved
Comment thread site2/docs/functions-package-python.md Resolved
@labuladong

Copy link
Copy Markdown
Contributor Author

Thanks for your suggestion~ PTAL @cbornet

@cbornet

cbornet commented Nov 30, 2022

Copy link
Copy Markdown
Contributor

LGTM 👍

@labuladong

Copy link
Copy Markdown
Contributor Author

/pulsarbot rerun-failure-checks

@labuladong

Copy link
Copy Markdown
Contributor Author

Can this PR be merged?

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Merging...

@tisonkun

tisonkun commented Dec 1, 2022

Copy link
Copy Markdown
Member

CI failed. Retrigger.

@tisonkun
tisonkun merged commit 1e88b61 into apache:master Dec 1, 2022
lifepuzzlefun pushed a commit to lifepuzzlefun/pulsar that referenced this pull request Dec 9, 2022
lifepuzzlefun pushed a commit to lifepuzzlefun/pulsar that referenced this pull request Jan 10, 2023
@Technoboy- Technoboy- added this to the 3.0.0 milestone Apr 12, 2023
@Technoboy-

Copy link
Copy Markdown
Contributor

Cherry picked some parts to branch-2.11. #20073

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Doc] Pulsar function document need improve

8 participants