Code Monkey home page Code Monkey logo

spring-boot-starter-breuninger's People

Contributors

benestem avatar dependabot[bot] avatar froth avatar geissebn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spring-boot-starter-breuninger's Issues

Add MongoDB URI to configuration properties

You should be able to configure a MongoDB connection URI (e.g. from Mongo Atlas API) which is then used instead of individual configuration properties like host, port, ssl encryption, auth db.

Example MongoDB URI:

mongodb://xxx-xxx-shard-00-00-xxxxx.mongodb.net:27017,xxx-xxx-shard-00-01-xxxxx.mongodb.net:27017,xxx-xxx-shard-00-02-xxxxx.mongodb.net:27017/?ssl=true&authSource=xxx&replicaSet=xxx-xxx-shard-0

Add support for multiple feature classes

If you would change FeatureProvider bean method to accept list of FeatureClassProvider beans then you could use multiple enums since GenericEnumBasedFeatureProvider constructor allows to pass an array of the enums.
I think this could be implemented by changing bean method to something like this:

        @Bean
        public FeatureProvider featureProvider(final List<FeatureClassProvider> featureClassProviders) {
            @SuppressWarnings("unchecked")
            Class<? extends Enum<?>>[] featureClasses = featureClassProviders.stream()
                    .map(FeatureClassProvider::getFeatureClass).toArray(Class[]::new);
            return new GenericEnumBasedFeatureProvider(featureClasses);
        }

public FeatureProvider featureProvider(final FeatureClassProvider featureClassProvider) {

Allow building url for internal resources and AJAX calls through configuration

UrlHelper class builds URLs (for instance for AJAX calls or internal resources like js files) by extracting as base uri the scheme, port and server name from the http request (e.g. JobDefinitionsController).
This leads to the framework building wrong urls when being used by an unsecured service sitting behind e.g. a secured proxy, which terminates TLS. In that case the framework uses the http://xxxxxxx delivered by the proxy to build the links rendered on the UI instead of using https://xxxxxxx.
Ideally the scheme and/or domain of the base uri should be configurable.

update documentation

  • CONTRIBUTING.md
  • package.json
  • README.md
  • spring-boot-starter-breuninger-validation/README.md
  • spring-boot-starter-breuninger-togglz/README.md
  • spring-boot-starter-breuninger-mongo/README.md
  • spring-boot-starter-breuninger-jobs/README.md
  • spring-boot-starter-breuninger-core/README.md

Add prefetch togglz job

@scheduled(initialDelay = 0, fixedRate = SCHEDULE_RATE_IN_MILLISECONDS)
private void prefetchFeatureStates() {
protected void prefetchFeatureStates() {
if (cache.size() == 0) {
LOG.debug("Initialize state for features");
initializeFeatureStates();
} else {
LOG.debug("Refreshing state for features");
cache.replaceAll((feature, cacheEntry) -> new CacheEntry(featureStateConverter.retrieveFeatureStateFromS3(feature)));
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.