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

[NodeSearchBunde] [SearchBundle] Add parameters for ES authentication and use them in version check #2120

Merged
merged 1 commit into from
Sep 12, 2018

Conversation

wesleylancel
Copy link
Contributor

@wesleylancel wesleylancel commented Sep 12, 2018

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets n/a

Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @wesleylancel, your PR needs some changes

  • Your answer if this PR is a bugfix seems to be incorrect.

@ProfessorKuma ProfessorKuma added this to the 5.0.11 milestone Sep 12, 2018
Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @wesleylancel, your PR needs some changes

  • This PR seems to need a milestone of a patch release.

Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @wesleylancel, your PR passed all our requirements.

Thank you for contributing!

@Devolicious Devolicious merged commit 9b6a329 into Kunstmaan:5.0 Sep 12, 2018
Devolicious added a commit that referenced this pull request Sep 12, 2018
* 5.0:
  update changelog
  Add parameters for ES authentication and use them in version check (#2120)
  [AdminBundle] use full version of CKeditor (#2119)
  KUN-3274 Show full path to file in form export (#2118)
  Fix bug in NodeChoiceType (#2115)
  [AdminBundle] fix icon sprite of ckeditor (#2099)
  Fixed issue when running kuma:user:create with --no-interaction flag (#2103)
  Fixed issue with locale in kuma:user:create command (#2104)
  [NodeSearchBundle] Fix search index of childpages of a structured node (#2091)
@mlebkowski
Copy link
Contributor

Please stop this madness. How much more fixes for this feature are you willing to make?

  1. Your symfony semantical configuration should not depend on any runtime dependencies / services. This is just wrong. There is no point of defining the configuration format in runtime, basing on the current ES version — you have your config in app/config for either ES 1.x or ES 6.x. If you switch ES version in runtime, your config will break if it doesn’t match.

  2. The build and run steps should be separated. I don’t want my ES instance running during build step!

  3. You should not rely on container parameters. Those should be used only to fill out the semantic configuration, so:

     parameters:
        kunstmaan.elasticsearch: http://foo:bar@elastic:9200/prefix
     kunstmaan_search_bundle:
          hosts:
             - "%kunstmaan.elasticsearch%"

    Then you can use your Bundle Extension to convert this configuration into your own private parameter, so you can configure your services for example.

  4. You should not repeat the logic of building the elasticsearch DSN. This is why you have so many bugs you have to fix.

  5. Please don’t introduce this kind of things in patch versions… :(

All of the above combines and enforces the first point: you should not do this kind of things in bundle extension. If you want to support numerous configuration formats, add two separate branches for it and use one or another, users choice! Or transform the old format into new format automatically!

BTW, why ES version larger than 2 is automatically assumed 6?

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.

None yet

4 participants