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

Dev: ui_context: Skip querying CIB when in a sublevel or help command #1403

Conversation

liangxin1300
Copy link
Collaborator

port from #1300

When cluster service is not running, entering some crm sublevel requires live cib,
and it will fail to show the help info under this sublevel;
To fix that, should skip querying cib when the current stack is just a sublevel,
or when the current command is the non functional command (like help, ls, cd, up, quit)
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 53.66%. Comparing base (4360523) to head (c480afc).

Files Patch % Lines
crmsh/ui_context.py 55.55% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1403      +/-   ##
==========================================
+ Coverage   53.53%   53.66%   +0.12%     
==========================================
  Files          80       80              
  Lines       23926    23932       +6     
==========================================
+ Hits        12809    12842      +33     
+ Misses      11117    11090      -27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liangxin1300 liangxin1300 merged commit e18847d into ClusterLabs:master Apr 25, 2024
30 checks passed
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 21, 2024
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 21, 2024
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 21, 2024
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 21, 2024
…sterLabs#1460

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 21, 2024
…lusterLabs#1460

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 25, 2024
…lusterLabs#1460

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 25, 2024
…lusterLabs#1460

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 25, 2024
…lusterLabs#1460

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jun 27, 2024
…lusterLabs#1460

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
liangxin1300 added a commit that referenced this pull request Jun 28, 2024
If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jul 1, 2024
…lusterLabs#1460

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
aleksei-burlakov pushed a commit to aleksei-burlakov/crmsh that referenced this pull request Jul 1, 2024
…rLabs#1403 ClusterLabs#1460

backport ClusterLabs#1469

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
liangxin1300 added a commit that referenced this pull request Jul 1, 2024
…1460 (#1480)

backport #1469

If you type
  $ crm configure delete
of do it interactively
  $ crm configure
  crm(live/node1)configure# delete
and then double press tab it, should propose possible resource options.
And this commit makes it working again.
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.

2 participants