Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hide definitions bearing thecontainer.excluded tag#50452

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chalasr merged 1 commit intosymfony:6.2fromMyks92:fix-contaier-debug
May 29, 2023
Merged

Hide definitions bearing thecontainer.excluded tag#50452

chalasr merged 1 commit intosymfony:6.2fromMyks92:fix-contaier-debug
May 29, 2023

Conversation

@Myks92
Copy link
Contributor

QA
Branch?6.2
Bug fix?yes
New feature?no
Depreciation?
TicketsFix#50417
LicenseMIT
Doc PR-

Normally I test whether the exclusion rules from the service container of my bundles work correctly by just using thedebug:container command and looking whether my excluded services occur in the last.
However, due to the latest changes in#46279 all folders and subfulders (excluded or not) are always in this list.

You need to open the definition to see if it was excluded:
Service Container

For example,Command,Query,Entity are folders, but they are specified as services in the container.

This PR fixes this problem to ignore definitions bearing the container.excluded tag if those are to be hidden for Descriptors:JsonDescriptor,MarkdownDescriptor,TextDescriptor andXmlDescriptor.

After fixes problem:
Снимок экрана 2023-05-27 в 17 03 19

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has acontribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (seehttps://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (seehttps://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.4 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@Myks92Myks92 changed the titleIgnore definitions bearing thecontainer.excluded tagHide definitions bearing thecontainer.excluded tagMay 27, 2023
@nicolas-grekas
Copy link
Member

Can you please check if this issue happens on 6.3? We might have fixed this as an improvement already.

@MatTheCat
Copy link
Contributor

@nicolas-grekas I can confirm this still happens with Symfony 6.3.0 RC2

Myks92 reacted with thumbs up emoji

@Myks92Myks92 requested a review fromMatTheCatMay 28, 2023 19:14
Copy link
Contributor

@MatTheCatMatTheCat left a comment

Choose a reason for hiding this comment

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

LGTM, maybe just make line breaks consistent 👍

Myks92 reacted with thumbs up emoji
@chalasr
Copy link
Member

Looks good, thank you for contributing.
Can you have a look ContainerDebugCommandTest and see if you can add a test to prevent future regressions?

@Myks92
Copy link
ContributorAuthor

@chalasr, I added tests forDescriptor andContainerDebugCommand. Is that what you need?

@chalasr
Copy link
Member

Thank you@Myks92.

Myks92 reacted with hooray emoji

@chalasrchalasr merged commit4f2b5e1 intosymfony:6.2May 29, 2023
@Myks92Myks92 deleted the fix-contaier-debug branchMay 29, 2023 08:48
@fabpotfabpot mentioned this pull requestMay 30, 2023
@fabpotfabpot mentioned this pull requestJun 26, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@MatTheCatMatTheCatMatTheCat approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

6 participants

@Myks92@carsonbot@nicolas-grekas@MatTheCat@chalasr@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp