Skip to content

Service name shell completion bugfix#11559

Merged
ndeloof merged 1 commit intodocker:mainfrom
oandrew:completion_bugfix
Mar 15, 2024
Merged

Service name shell completion bugfix#11559
ndeloof merged 1 commit intodocker:mainfrom
oandrew:completion_bugfix

Conversation

@oandrew
Copy link
Copy Markdown
Contributor

@oandrew oandrew commented Feb 28, 2024

What I did
Fix broken shell completion logic for service names.
The bug was introduced in #11251 effectively returning all services regardless of toComplete value.
Use a separate variable to only return the matching service names.

Related issue

fixes #11526

@ndeloof
Copy link
Copy Markdown
Contributor

ndeloof commented Mar 1, 2024

for legal reason we require contributors to sign-off commits, please amend your commit and force-push, then we can merge

@ndeloof ndeloof enabled auto-merge (rebase) March 1, 2024 08:49
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 1, 2024

Codecov Report

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

Project coverage is 58.20%. Comparing base (5a1ba0e) to head (fc32b41).
Report is 1 commits behind head on main.

❗ Current head fc32b41 differs from pull request most recent head 4f2eb02. Consider uploading reports for the commit 4f2eb02 to get more accurate results

Files Patch % Lines
cmd/compose/completion.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11559      +/-   ##
==========================================
+ Coverage   57.70%   58.20%   +0.49%     
==========================================
  Files         138      135       -3     
  Lines       11729    11615     -114     
==========================================
- Hits         6768     6760       -8     
+ Misses       4283     4183     -100     
+ Partials      678      672       -6     

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

auto-merge was automatically disabled March 1, 2024 23:06

Head branch was pushed to by a user without write access

@oandrew oandrew force-pushed the completion_bugfix branch 2 times, most recently from f7de30e to 3f378ff Compare March 1, 2024 23:09
@oandrew
Copy link
Copy Markdown
Contributor Author

oandrew commented Mar 6, 2024

@ndeloof updated the commit

@ndeloof ndeloof force-pushed the completion_bugfix branch from 3f378ff to b43291f Compare March 15, 2024 08:51
@ndeloof ndeloof enabled auto-merge (rebase) March 15, 2024 08:51
Signed-off-by: Andrew Onyshchuk <[email protected]>
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.

[BUG] compose bash completion doesn't correctly expand service names

3 participants