Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve][fn] Set default tenant and namespace for ListFunctions cmd #23881

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

jiangpengcheng
Copy link
Contributor

@jiangpengcheng jiangpengcheng commented Jan 23, 2025

Fixes #23880

Motivation

The list sources and sinks command will use default tenant and namespace when not specified, the list functions cmd should have the same bahaviour

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

  • This change added tests and can be verified as follows:

    • Added unit test for list functions to use default tenant and namespace

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
    • when list functions using pulsar-admin without tenant and namespace, no error will be thrown, but the default tenant public and namespace default will be used
  • The metrics
  • Anything that affects deployment

Documentation

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

Matching PR in forked repository

PR in forked repository: jiangpengcheng#38

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 23, 2025
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

LGTM

@lhotari
Copy link
Member

lhotari commented Jan 23, 2025

Main Issue: #xyz

PIP: #xyz

@jiangpengcheng Just a small detail for future PRs: it's better to cleanup details from the PR description that don't apply to a specific PR.

@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.20%. Comparing base (bbc6224) to head (2fca018).
Report is 866 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23881      +/-   ##
============================================
+ Coverage     73.57%   74.20%   +0.63%     
+ Complexity    32624    32231     -393     
============================================
  Files          1877     1853      -24     
  Lines        139502   143638    +4136     
  Branches      15299    16317    +1018     
============================================
+ Hits         102638   106589    +3951     
+ Misses        28908    28666     -242     
- Partials       7956     8383     +427     
Flag Coverage Δ
inttests 27.06% <0.00%> (+2.47%) ⬆️
systests 23.13% <0.00%> (-1.20%) ⬇️
unittests 73.73% <100.00%> (+0.88%) ⬆️

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

Files with missing lines Coverage Δ
...java/org/apache/pulsar/admin/cli/CmdFunctions.java 49.80% <100.00%> (+3.59%) ⬆️

... and 1027 files with indirect coverage changes

@jiangpengcheng
Copy link
Contributor Author

Main Issue: #xyz

PIP: #xyz

@jiangpengcheng Just a small detail for future PRs: it's better to cleanup details from the PR description that don't apply to a specific PR.

Thx for remind, updated it

@nodece nodece merged commit 66d1bb0 into apache:master Jan 24, 2025
77 of 81 checks passed
lhotari pushed a commit that referenced this pull request Jan 27, 2025
lhotari pushed a commit that referenced this pull request Jan 27, 2025
lhotari pushed a commit that referenced this pull request Feb 20, 2025
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 27, 2025
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 28, 2025
mukesh-ctds added a commit to datastax/pulsar that referenced this pull request Feb 28, 2025
mukesh-ctds added a commit to datastax/pulsar that referenced this pull request Feb 28, 2025
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 2, 2025
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] pulsar-admin functions list without specifying tenant and namespace return a NPE error
6 participants