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

Add missing conditional on bean #37

Merged
merged 4 commits into from
Mar 15, 2022

Conversation

agrancaric
Copy link
Collaborator

Basic information

  • nrich version:
    1.2.1
  • Module:
    Project

Additional information

Description

Some *AutoConfiguration classes are missing @ConditionalOnMissingBean annotations on some beans. Add where missing and appropriate.

Summary

Added @ConditionalOnMissingBean on beans where it was missing, add servlet restriction to registry controllers @ConditionalOnWebApplication annotation.

Details

Added @ConditionalOnMissingBean on beans where it was missing, add servlet restriction to registry controllers @ConditionalOnWebApplication annotation.

Related issue

#34

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the project's CONTRIBUTING document
  • I have checked my code with the project's static analysis tooling
  • I have formatted my code with the project's IDEA code-style configuration
  • I have checked my code for misspellings
  • I have organized my changes in easy-to-follow commits
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests pass.

@agrancaric agrancaric self-assigned this Mar 15, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #37 (d7877c0) into master (ab9cd55) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #37   +/-   ##
=========================================
  Coverage     95.72%   95.72%           
  Complexity      985      985           
=========================================
  Files           145      145           
  Lines          2384     2384           
  Branches        222      222           
=========================================
  Hits           2282     2282           
  Misses           40       40           
  Partials         62       62           
Impacted Files Coverage Δ
...ation/NrichFormConfigurationAutoConfiguration.java 100.00% <ø> (ø)
.../configuration/NrichRegistryAutoConfiguration.java 100.00% <ø> (ø)
...csrf/configuration/NrichCsrfAutoConfiguration.java 80.00% <ø> (ø)
...er/configuration/NrichWebMvcAutoConfiguration.java 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab9cd55...d7877c0. Read the comment docs.

@agrancaric agrancaric linked an issue Mar 15, 2022 that may be closed by this pull request
Copy link
Collaborator

@jzrilic jzrilic left a comment

Choose a reason for hiding this comment

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

Seems fine to me.

…spring-boot-starter module and restrict conditional for controllers to servlet environment
@agrancaric agrancaric force-pushed the bugfix_addMissingConditionalOnBean branch from d7877c0 to cd7581f Compare March 15, 2022 11:56
@agrancaric agrancaric merged commit b2e5696 into master Mar 15, 2022
@agrancaric agrancaric deleted the bugfix_addMissingConditionalOnBean branch March 15, 2022 12:04
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.

Add missing @ConditionalOnMissingBean annotations
3 participants