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

IndexSet default setting #3209

Merged
merged 7 commits into from Dec 16, 2016
Merged

IndexSet default setting #3209

merged 7 commits into from Dec 16, 2016

Commits on Dec 16, 2016

  1. Create IndexSetsResource#setDefault() API endpoint

    Doesn't do anything yet.
    bernd committed Dec 16, 2016
    Copy the full SHA
    9600391 View commit details
    Browse the repository at this point in the history
  2. Remove default flag from IndexSetConfig in favor of a cluster config …

    …setting
    
    This removes the `default` field from the IndexSetConfig database object
    and creates a DefaultIndexSetConfig object in the cluster config
    instead. Using a cluster config object makes it easier to ensure that
    only one index set is the default.
    
    There is no migration to convert the `default` flag to a
    DefaultIndexSetConfig in the cluster config because this only happened
    to people using alphas and betas and the user is able to just set the
    default index set via the API or in the UI. (UI upcoming)
    
    Also implement the IndexSetsResource#setDefault() method to actually set
    the default in cluster config.
    bernd committed Dec 16, 2016
    Copy the full SHA
    1ed3e0f View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    8ed279d View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    b9fc166 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    498da20 View commit details
    Browse the repository at this point in the history
  6. Change IndexSet registry and service interfaces for #getDefault() method

    Since the default index must be there, we do not return an Optional but
    throw an IllegalStateException if the default index set cannot be found.
    bernd committed Dec 16, 2016
    Copy the full SHA
    e0c4c98 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    8a17bdd View commit details
    Browse the repository at this point in the history