Commit Graph

57 Commits

Author SHA1 Message Date
Peter Bourgon
c900c17ad5 app: fix tests 2015-06-15 14:51:19 +02:00
Tom Wilkie
feb2cae406 Merge pull request #226 from tomwilkie/224-id
Seed random so different apps have different ids.
2015-06-15 13:13:59 +02:00
Tom Wilkie
ab07b27f52 Seed random so different apps have different ids. 2015-06-15 11:12:57 +00:00
Peter Bourgon
e726ee6fde make static 2015-06-15 12:54:27 +02:00
Peter Bourgon
3e8bdcc854 Sub-topolgies rendered in one place only 2015-06-15 10:26:22 +02:00
Peter Bourgon
086ff3b791 Change from grouped URL to sub-topologies 2015-06-12 13:23:25 +02:00
Tom Wilkie
53456179e4 All merging of RenderableNodes, such that we can merge multiple topologies. 2015-06-11 17:11:10 +00:00
Tom Wilkie
894439a449 Prevent multiple connections for the same app. 2015-06-11 10:02:54 +00:00
Tom Wilkie
616759200f Merge pull request #197 from tomwilkie/196-foo
Don't make adjacency edges into 'the internet' if they refer to valid nodes
2015-06-10 10:31:22 +01:00
Tom Wilkie
719f933c21 Refactor MakeAdjacencyID & ParseAdjacencyID; add ParseNodeID (which separates scope and the rest of node id) 2015-06-10 09:21:45 +00:00
Tom Wilkie
9808b57c53 Merge pull request #191 from tomwilkie/report-bugs
Add report issue link
2015-06-10 08:59:38 +01:00
Tom Wilkie
cce2e3c0b5 Restore container details to their rightful position. 2015-06-10 07:53:57 +00:00
Peter Bourgon
667d8b8dd0 OriginHosts and OriginNodes become Origins
Another baby step towards #123, this change follows from #192 and merges
the two concepts of Origin in a renderable node. We also cut out a layer
of abstraction, and add an OriginTable method to Report, which directly
generates a table of info for the detail pane given any origin node ID.

Other changes from feedback:

- Assume origin IDs are unique and don't reflect.Dedupe
- Improve origin ID lookup
- Move OriginTable to detailed_node.go, as a free function
- rm app/detail_pane.go (empty)
2015-06-09 18:48:09 +02:00
Tom Wilkie
e1092d2ac2 Add report issue link 2015-06-09 16:29:22 +00:00
Peter Bourgon
aa0a754363 Improve test coverage; SquashRemote -> Squash
Also, remove some dead code.
2015-06-09 15:54:06 +02:00
Peter Bourgon
d438261742 HostMetadata becomes Host Topology
- All HostMetadata information becomes NodeMetadata
- Significant change to mechanics, but same net effect
- LocalNets becomes "local_networks", space-separated list of CIDRs
- Load becomes simple single string
- Use MakeHostNodeID for indexing into Host topology
- (That changes the app /origin/{id} handler; will be removed later)
2015-06-09 15:38:08 +02:00
Peter Bourgon
1e0b83eb6d Merge branch report-fields (#190) 2015-06-09 14:25:54 +02:00
Peter Bourgon
7c56939e22 Update IDList
- MakeIDList rather than NewIDList
- Iterate on test coverage
- Drop Copy method, for now
2015-06-08 19:52:26 +02:00
Peter Bourgon
4832ee76f3 Add the various ID constructors
- Use constructors instead of ScopeDelim everywhere
- Use constructors instead of IDDelim everywhere
- IDDelim is renamed EdgeDelim, for clarity
- Partial import of the new test fixtures, to be completed later
2015-06-08 17:53:01 +02:00
Peter Bourgon
d486d1074a Refactor process mappers to taggers
- Reduce tagger interface to operate on reports
- Remove cgroup tagger
2015-06-08 15:04:40 +02:00
Peter Bourgon
754eac3152 Rename NewReport -> MakeReport. 2015-06-05 13:55:40 +00:00
Peter Bourgon
19383fcb8b Rename Resolver to staticResolver 2015-06-04 10:36:59 +00:00
Peter Bourgon
06d805db3c Refactoring of xfer/collector.go
- Add interface to xfer/collector.go
- Add some more tests
- quit field changed to make it consistent with other Stoppable components in Scope
- Add peek, only used for tests
2015-06-04 10:27:30 +00:00
Tom Wilkie
f738dbd9ae Update static.go 2015-06-03 13:26:15 +00:00
Tom Wilkie
7c4120ff11 Add /api handler, expose app version number. 2015-06-03 13:21:55 +00:00
Tom Wilkie
d544f6ec4a Don't both logging DNS resolution errors. 2015-06-02 16:10:42 +00:00
Tom Wilkie
679eccf7d2 Update static.go 2015-06-02 10:47:09 +00:00
Peter Bourgon
bd2ef9deef app: rebuild static.go for node/edge highlighting 2015-06-01 20:45:30 +02:00
Tom Wilkie
2d430895e3 Plumbing for releases stolen straight from weave. 2015-06-01 15:17:32 +00:00
Tom Wilkie
d9b54ba60b Yet More Plumbing for multi-host setup.
- Move peers from flags to args in the app
- Allow users to specify peers as IPs and hostname, both with and without ports
- Allow users to specify peers on ./scope launch, and plumb that through entrypoint.sh and run-app
- Improce ./scope usage text
- Add brief document explaining how to cluster Scope
2015-06-01 12:29:01 +00:00
Tom Wilkie
dd97a33e0e Restore the internet node to the container topologies. 2015-05-27 17:12:33 +00:00
Tom Wilkie
04145ce991 Merge pull request #121 from tomwilkie/refactor
Refactor topology 'views' and their http handlers
2015-05-27 15:18:35 +01:00
Tom Wilkie
0ade65d32a Refactor grouped topologies, topology 'views' and their http handlers 2015-05-27 14:17:47 +00:00
Tom Wilkie
c468558656 Merge pull request #98 from tomwilkie/scrolling
Fix wrapping and scrolling in the details pane.
2015-05-27 15:16:01 +01:00
Tom Wilkie
0b786ae5a7 Don't produce pseudo nodes for the container topologies 2015-05-27 10:05:24 +00:00
Tom Wilkie
0fd5c2eeae Factor out pseudo node creation to a per-topology function - no semantic change right now. 2015-05-27 10:05:18 +00:00
Peter Bourgon
92adbf1c40 Merge pull request #107 from weaveworks/errcheck
Address non-Close errors identified by errcheck
2015-05-26 17:32:04 +02:00
Peter Bourgon
84454d1ba1 Fix errcheck errors in app 2015-05-26 16:52:29 +02:00
Peter Bourgon
bf49e12094 Add Containers topology 2015-05-26 16:37:44 +02:00
Tom Wilkie
957d5253a1 Merge pull request #95 from tomwilkie/docker-image-annot
Expose Docker image IDs and Names
2015-05-26 11:21:45 +01:00
Tom Wilkie
18c38a6bf4 Expose docker image id and name 2015-05-26 10:15:23 +00:00
Tom Wilkie
ab41aacd59 Fix wrapping and scrolling in the details pane. 2015-05-24 09:36:49 +00:00
Peter Bourgon
8c7ca1ecc2 Merge pull request #67 from weaveworks/remove-topology-type
Topologies no longer have a 'type' (for grouping)
2015-05-23 18:07:58 +02:00
Tom Wilkie
f577bbc76f Update static.go 2015-05-22 16:59:44 +00:00
Peter Bourgon
7427467363 Stabilize order of rows in origin node 2015-05-22 15:57:52 +02:00
Tom Wilkie
b536d1161b Set git version variable at build time. 2015-05-22 13:34:23 +00:00
Peter Bourgon
8ee5934ec5 Simplify originNodeForProcess 2015-05-22 13:27:14 +02:00
Peter Bourgon
2d5f58e8ed Expand details pane 2015-05-22 13:20:00 +02:00
Peter Bourgon
c8cfd2af5f Topologies no longer have a 'type' (for grouping) 2015-05-20 10:46:07 +02:00
Peter Bourgon
8e2c7053f0 Fix api_topology_test.go 2015-05-20 10:13:37 +02:00