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

Lookup tables #3748

Merged
merged 54 commits into from
Apr 28, 2017
Merged

Lookup tables #3748

merged 54 commits into from
Apr 28, 2017

Commits on Apr 10, 2017

  1. Configuration menu
    Copy the full SHA
    f2732f8 View commit details
    Browse the repository at this point in the history
  2. Start LookupTableService

    bernd committed Apr 10, 2017
    Configuration menu
    Copy the full SHA
    637a49a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5f2684f View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2017

  1. fix botched rebase

    kroepke committed Apr 11, 2017
    Configuration menu
    Copy the full SHA
    ec2240d View commit details
    Browse the repository at this point in the history
  2. add resources for caches, adapters and lookup tables

    extends Objectmapper provider to allow registering NamedTypes for subtype resolution in plugins
    cache and data adapter configs are polymorphic and require proper binding of config classes
    kroepke committed Apr 11, 2017
    Configuration menu
    Copy the full SHA
    6dfb05a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e68193 View commit details
    Browse the repository at this point in the history
  4. add even more property annotations and make ids nullable in REST DTOs

    forgetting builder annotations is quickly becoming my favorite bug
    kroepke committed Apr 11, 2017
    Configuration menu
    Copy the full SHA
    f4f0930 View commit details
    Browse the repository at this point in the history
  5. consolidate resources into one

    without a single hierarchy getting the cache/adapter types is awkward as it would shadow the GET {idOrName} call
    kroepke committed Apr 11, 2017
    Configuration menu
    Copy the full SHA
    0ab6fa0 View commit details
    Browse the repository at this point in the history
  6. convert data adapters to factory with descriptors

    this simplifies lifecycle management, so we can easily instantiate the descriptor without having to have a complete data adapter
    
    return the information in the `/system/lookups/types/adapters` call
    kroepke committed Apr 11, 2017
    Configuration menu
    Copy the full SHA
    b22a93d View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2017

  1. convert lookup cache metadata to factory/descriptor

    in order to get metadata (which cache providers are present, what default config do they have) we need to expose the descriptors
    since we don't want to instantiate the entire cache, we break out the metadata into its own class that is provided
    the factory can also create instances of the actual caches, based on its configuration
    kroepke committed Apr 12, 2017
    Configuration menu
    Copy the full SHA
    5442393 View commit details
    Browse the repository at this point in the history
  2. build lookup tables during start up

    this change assembles lookup tables from configured caches and adapters
    a GET resource for data is exposed on /system/lookup/data/{name}
    
    moved adapters and caches to their own packages to make easier on the eye
    introduced NullCache (type "none") to disable caching
    kroepke committed Apr 12, 2017
    Configuration menu
    Copy the full SHA
    e8404f8 View commit details
    Browse the repository at this point in the history
  3. send update/delete cluster events when lookup tables or underlying ob…

    …jects are mutated
    
    adapter and cache deletion is denied if those are in use by any lookup table in the system
    kroepke committed Apr 12, 2017
    Configuration menu
    Copy the full SHA
    eb754b7 View commit details
    Browse the repository at this point in the history
  4. fix lookup cache and adapter usages

    fix wrong ids in warning log messages
    kroepke committed Apr 12, 2017
    Configuration menu
    Copy the full SHA
    a044610 View commit details
    Browse the repository at this point in the history
  5. don't recreate cache or adapter when their config hasn't changed

    when updating a lookup table we need to take care not to throw away existing caches or stateful adapters
    that would make them lose their state, even though nothing has changed
    kroepke committed Apr 12, 2017
    Configuration menu
    Copy the full SHA
    a6c1ab0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7596603 View commit details
    Browse the repository at this point in the history
  7. guard against nulls

    kroepke committed Apr 12, 2017
    Configuration menu
    Copy the full SHA
    d621b5f View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2017

  1. initial skeleton for lookup table UI

     - lookup table resource can optionally resolve the referenced caches and data adapters on each page (resulting in fewer API calls and simpler UI code)
     - three new pages are available underneath /system/lookuptables
    kroepke committed Apr 17, 2017
    Configuration menu
    Copy the full SHA
    6571a31 View commit details
    Browse the repository at this point in the history
  2. minor cosmetic fixes

    kroepke committed Apr 17, 2017
    Configuration menu
    Copy the full SHA
    3c2719e View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2017

  1. Configuration menu
    Copy the full SHA
    67991f9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3cdf381 View commit details
    Browse the repository at this point in the history
  3. data adapter UI skeleton

    kroepke committed Apr 18, 2017
    Configuration menu
    Copy the full SHA
    0954547 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2017

  1. wip making adapter UI pluggable

    actually give random number generator config so we can showcase it
    kroepke committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    4ac8673 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2017

  1. wip data adapter ui

    kroepke committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    cdf1819 View commit details
    Browse the repository at this point in the history
  2. simplify data management for adapters pages

    only the page is loading data and passing it down to components
    kroepke committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    e78aadc View commit details
    Browse the repository at this point in the history
  3. remove obsolete page import

    kroepke committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    b3b241b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9cca75d View commit details
    Browse the repository at this point in the history
  5. use correct state from store

    attach promise to correct action
    kroepke committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    0e79acd View commit details
    Browse the repository at this point in the history
  6. Always lookup values through the cache

    The cache handles the lookup in the data adapter on a cache miss.
    bernd committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    eef67d8 View commit details
    Browse the repository at this point in the history
  7. Add license headers

    bernd committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    cf606b8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f410225 View commit details
    Browse the repository at this point in the history
  9. fix routes

    kroepke committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    43efdc3 View commit details
    Browse the repository at this point in the history
  10. import cache plugin export definitions from core

    use correct guava type name in plugin registration
    kroepke committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    c0a0731 View commit details
    Browse the repository at this point in the history
  11. Lookup now returns a LookupResult instead of Object (#3731)

    The LookupResult contains a map so it can hold multiple values for the
    key lookup. It also provides a cache-ttl value to allow custom
    expiration for individual results.
    bernd authored and kroepke committed Apr 24, 2017
    Configuration menu
    Copy the full SHA
    6f56595 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    49ee665 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2017

  1. Configuration menu
    Copy the full SHA
    b71e5b3 View commit details
    Browse the repository at this point in the history
  2. Always get the lookup table when the actual lookup is executed

    This way we avoid keeping a reference to the lookup table for too long.
    That would be an issue when the lookup table gets updated.
    bernd committed Apr 25, 2017
    Configuration menu
    Copy the full SHA
    49b1a6a View commit details
    Browse the repository at this point in the history
  3. wip lookup table ui

    added create/edit form for lookup tables
    not possible to save them yet, neither to pick adapters and caches
    
    don't load pagination twice for adapters and caches
    
    extract some common css
    kroepke committed Apr 25, 2017
    Configuration menu
    Copy the full SHA
    3c79c54 View commit details
    Browse the repository at this point in the history
  4. Refactor LookupTableService

    - Rename createTable() to updateTable()
    - Remove duplication in initialize() and updateTable() methods
    - Move table creation into a separate class
    bernd committed Apr 25, 2017
    Configuration menu
    Copy the full SHA
    5336178 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2017

  1. Configuration menu
    Copy the full SHA
    9af5cd1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dbc5175 View commit details
    Browse the repository at this point in the history
  3. Add lifecycle management to LookupDataAdapter and subclasses

    Some data adapters need lifecycle management to handle thread pools,
    background jobs etc.
    bernd committed Apr 26, 2017
    2 Configuration menu
    Copy the full SHA
    5b67097 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    10f0a9f View commit details
    Browse the repository at this point in the history
  5. Do not return without unlocking

    It's safe to check started/stopped before grabbing the lock.
    bernd committed Apr 26, 2017
    Configuration menu
    Copy the full SHA
    c461c47 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bfdb5ed View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6c4e2ae View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    86ea4cd View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2017

  1. Configuration menu
    Copy the full SHA
    0021952 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    052a59d View commit details
    Browse the repository at this point in the history
  3. Add more information about CSV file requirements

    Reformat to look nicer.
    bernd committed Apr 27, 2017
    Configuration menu
    Copy the full SHA
    e830816 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2017

  1. Configuration menu
    Copy the full SHA
    bbad531 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3fb30cb View commit details
    Browse the repository at this point in the history
  3. added TimeUnitInput core component

    extend guava cache configuration to include
     * refresh keys
     * both expire after options
    
    added documentation to edit/create form
    pass down explicit "updateConfig" prop handler to support more complex config updates from plugin fieldsets
    kroepke committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    6f95efa View commit details
    Browse the repository at this point in the history
  4. fix wrong attribute name

    kroepke committed Apr 28, 2017
    Configuration menu
    Copy the full SHA
    68600db View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5f62af3 View commit details
    Browse the repository at this point in the history