This project is mirrored from https://gitee.com/NQL886/scope.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 15 Apr, 2017 1 commit
  2. 27 Mar, 2017 3 commits
    • Mike Lang's avatar
      api_topologies: Change semantics of blank or omitted option values · 9e1666cb
      Mike Lang authored
      Instead of value being "" or omitted meaning "use group.Default", we now allow the empty value
      to go through. This was done to allow multi-value options to be able to encode 'no options selected'.
      This is important as the alternative is very confusing, as 'nothing selected' would generally mean
      'match everything', not 'select default' (which in the k8s namespace example, means the "default" namespace).
      
      Since the UI is the only user of this API, and it already sends the default value always, this does not affect
      any existing usage.
      
      Since the UI still wants to show a 'match all' button to prevent confusion, but it's not a normal option
      (if it were a normal option, it could be combined with others, which isn't meaningful), we add a new key
      NoneLabel that indicates the name that should be displayed on this extra button.
      
      Finally, we implement these changes for the k8s namespace button, ie.
      - Get rid of All Namespaces option
      - Add "All Namespaces" as the NoneLabel
      - Default to "" when "default" namespace not present, which is equivalent to the old "all" option.
      9e1666cb
    • Mike Lang's avatar
      api_topologies: Allow selecting multiple k8s namespace filters · bfb68a54
      Mike Lang authored
      This is the first usage of the new 'union' selectType.
      Note that we're still sending 'all' for now. There's currently no easy
      way to specify this meaning, and arguably it should be done entirely clientside.
      But for now it just means some UI weirdness where 'all' is one of the options and having it on
      means anything else you select doesn't matter.
      bfb68a54
    • Mike Lang's avatar
      api_topologies: Add a selectType field to option groups · efb68fb2
      Mike Lang authored
      This field changes the option group behaviour depending on its value.
      Currently only supports two values:
      "one" (default): Old behaviour, one option can be selected
      "union": Any number of options can be selected, and the filters are OR-ed togther
      
      It is written in such a way as to easily enable a future "intersection" option,
      as per union but AND-ing the filters. But this is not done here. YAGNI.
      efb68fb2
  3. 21 Mar, 2017 1 commit
  4. 20 Mar, 2017 2 commits
  5. 17 Mar, 2017 1 commit
  6. 16 Mar, 2017 1 commit
    • Mike Lang's avatar
      When k8s present, allow filtering of containers by namespace · b01e8904
      Mike Lang authored
      To facilitate this, we replace the existing functionality of updateFilters which
      sets k8s topologies to have the filters [namespace, managed], to instead append the namespace filter
      to any existing. This lets it apply to both k8s and container topologies without overwriting existing
      container filters. We instead set the managed filter in the static definition.
      
      This however has the side effect that the ordering of the namespace filter and the managed filter
      in k8s topologies has been reversed, so it reads:
      	Show Unmanaged | Hide Unmanaged
      	foo | bar | default | baz | All Namespaces
      instead of:
      	foo | bar | default | baz | All Namespaces
      	Show Unmanaged | Hide Unmanaged
      b01e8904
  7. 20 Feb, 2017 1 commit
  8. 23 Jan, 2017 1 commit
  9. 20 Jan, 2017 1 commit
  10. 29 Nov, 2016 4 commits
  11. 28 Nov, 2016 1 commit
  12. 15 Nov, 2016 1 commit
    • CarltonSemple's avatar
      Added container filters as CLI arguments · 9833a854
      CarltonSemple authored
      gofmt load_container_filters.go
      
      removed the environment variable for container label filters
      
      Added the --app.container-label-filter command line argument, and load_container_filters.go now uses the results from that
      
      Changed init() to InitializeTopologies()
      
      Changed init() to InitializeTopologies() so that it can be called after the container filters are loaded from the command line argument. init() executes before main() in prog/main.go, so the flag parsing isn't finished before init() is called
      
      Applied lint fixes
      
      fixed lint issues
      
      brought back the init function for api_topologies.go
      
      Addressed many of the PR comments, except escaping colons
      
      Renamed IsDesired to HasLabel in render/filters.go
      
      Allows for the user to escape colons
      
      added registry function for modifying the container filters
      
      created a separate function that parses the container filter flags
      
      simplified registry.addContainerFilters()
      
      addressed review comments
      
      switched API Topology Description IDs to constants
      
      addressed review comments
      
      joined constants
      
      added test functions
      
      addressed most of the review comments
      
      Changed containerLabelFilters to an array of APItopologyOptions, placing the parsing in the Set() function. Removed parsing from HasLabel in render/filters.go
      
      refactored code
      
      added test that applies to the container filtering by labels
      
      applied golint
      
      made Registry items private and added a MakeRegistry() function
      
      fixed usage of topologyRegistry.RendererForTopology
      
      Added container label filters by exclusion
      
      minor update to report_fixture
      
      Modified container labels test to use existing report
      
      I added labels to the existing containers in the fixed report for testing.
      
      refactored code
      
      refactored code
      
      further code refactoring
      
      addressed @ijsnellf's review comments
      
      unexported Registry, and reduced duplicate code
      
      addressed @ijsnellf's review comments
      
      Addressed review comments
      
      Addressed final review comments
      9833a854
  13. 28 Oct, 2016 1 commit
  14. 26 Oct, 2016 1 commit
  15. 24 Oct, 2016 1 commit
  16. 05 Oct, 2016 1 commit
  17. 17 Jul, 2016 1 commit
  18. 16 Jun, 2016 1 commit
    • Tom Wilkie's avatar
      Add filters for pseudo nodes. (#1581) · c80eb42a
      Tom Wilkie authored
      * Add filters for pseudo nodes.
      
      - Don't filter the internet node as a pseudo node.
      - Rename pseudo filter to unmanaged/uncontained.
      - Review feedback
      - Move the FilterFoo funcs into the tests
      - Drop the 'nodes' from filter labels.
      
      * Fix experimental
      c80eb42a
  19. 09 Jun, 2016 1 commit
  20. 17 May, 2016 1 commit
  21. 09 May, 2016 2 commits
  22. 06 May, 2016 1 commit
  23. 03 May, 2016 5 commits
  24. 29 Apr, 2016 1 commit
  25. 28 Apr, 2016 1 commit
    • Paul Bellamy's avatar
      Fixing grouped node count for filtered children nodes · 3d3aed2b
      Paul Bellamy authored
      Squash of:
      
      * We have to keep all the container hostnames until the end so we can
        count how many we've filtered
      
      * Adding tests for ContainerHostnameRenderer and PodServiceRenderer with
        filters
      
      * Because we filter on image name we need the image name before
        filtering
      
      * Alternative approach to passing decorators.
      
      * Refactor out some of the decorator capture
      
      * Don't memoise decorated calls to Render
      
      * Fixing filtered counts on containers topology
      
        Tricky, because we need the filters to be silent sometimes (when they're
        in the middle), but not when they're at the top, so we take the "top"
        filter's stats. However, this means we have to compose all
        user-specified filters into a single Filter layer, so we can get all
        stats.
      
        There are no more Silent filters, as all filters are silent (unless they
        are at the top).
      
        Additionally, I clarified some of the filters as their usage/terminology
        was inconsistent and confused. Now Filter(IsFoo, ...) *keeps* only nodes
        where IsFoo is true.
      3d3aed2b
  26. 06 Apr, 2016 1 commit
  27. 29 Mar, 2016 2 commits
    • Paul Bellamy's avatar
      Refactoring rendering to remove RenderableNode · 2c6b6e67
      Paul Bellamy authored
      Squash of:
      - use detailed.Summaries to render topology nodes
      - ban merging nodes of different topologies (they should be mapped)
      - need to prune parents when mapping node types
      - render container images by id if they have no name
      - remove separate render ids and prune parents in NewDerived*
      - don't render metrics/metadata for groups of nodes
      - fixing up tests
      - removing pending unit tests (for mapping.go, for now)
      - updating experimental dir for RenderableNode removal
      2c6b6e67
    • Paul Bellamy's avatar
      backend changes for new option rendering · 430130c0
      Paul Bellamy authored
      430130c0
  28. 23 Mar, 2016 1 commit