Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1200)

Issue 9153044: sandbox event simulator

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by bcsaller
Modified:
10 years, 12 months ago
Reviewers:
jeff.pihach, matthew.scott, mp+162301
Visibility:
Public.

Description

sandbox event simulator This is currently a prototype and I'm looking for feedback. Currently this is a (flexible) framework for manipulating backend state with various agents, a few are included by default and we can easily add others if we want. Its currently configured so that if you check it out, run it and do a drag drop import of improv data you'll see some changes every 3 seconds or so. In testing this I discovered a number of bugs and fixed them. Subordinate units import properly Fix sandbox annotation handling (for env) UnitCount Agent Unit Position Agent Annotation moves use transition. Force annotation set on layout placement of new nodes. removeUnits now updates deltaStream removeUnits now skips subordinates properly remove flicker around landcape badges in env view https://code.launchpad.net/~bcsaller/juju-gui/simulator-fo-realz/+merge/162301 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : sandbox event simulator #

Patch Set 3 : sandbox event simulator #

Total comments: 1

Patch Set 4 : sandbox event simulator #

Patch Set 5 : sandbox event simulator #

Patch Set 6 : sandbox event simulator #

Total comments: 10

Patch Set 7 : sandbox event simulator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1796 lines, -225 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M app/assets/javascripts/d3-components.js View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M app/config-debug.js View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M app/models/models.js View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M app/modules-debug.js View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M app/store/env/fakebackend.js View 1 2 3 4 5 6 9 chunks +33 lines, -20 lines 0 comments Download
M app/store/env/sandbox.js View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
A app/store/env/simulator.js View 1 2 3 4 5 6 1 chunk +498 lines, -0 lines 0 comments Download
M app/views/environment.js View 1 2 3 4 3 chunks +27 lines, -15 lines 0 comments Download
M app/views/notifications.js View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M app/views/topology/importexport.js View 1 2 3 4 5 1 chunk +23 lines, -11 lines 0 comments Download
M app/views/topology/service.js View 1 2 3 4 5 6 7 chunks +64 lines, -29 lines 0 comments Download
A test/data/large-improv.json View 1 2 3 4 5 6 1 chunk +398 lines, -0 lines 0 comments Download
A test/data/openstack-improv.json View 1 2 3 4 5 6 1 chunk +396 lines, -0 lines 0 comments Download
M test/index.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M test/test_environment_view.js View 1 2 3 4 6 chunks +52 lines, -44 lines 0 comments Download
M test/test_fakebackend.js View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M test/test_sandbox.js View 1 1 chunk +88 lines, -87 lines 0 comments Download
M test/test_service_module.js View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
A test/test_simulator.js View 1 2 3 4 5 6 1 chunk +158 lines, -0 lines 0 comments Download
M undocumented View 1 2 3 4 3 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 17
bcsaller
Please take a look.
11 years ago (2013-05-03 07:24:11 UTC) #1
bcsaller
Please take a look.
11 years ago (2013-05-04 04:15:06 UTC) #2
gary.poster
On 2013/05/04 04:15:06, bcsaller wrote: > Please take a look. Thanks for fixing subordinates and ...
11 years ago (2013-05-04 12:53:29 UTC) #3
bcsaller
I still have to document the API, mostly what attrs mean to agents. Position flip ...
11 years ago (2013-05-04 17:17:47 UTC) #4
bcsaller
Please take a look.
11 years ago (2013-05-05 09:06:28 UTC) #5
bcsaller
This version has improved testing and docs
11 years ago (2013-05-05 09:07:18 UTC) #6
gary.poster
I will try to review later today. https://codereview.appspot.com/9153044/diff/9001/undocumented File undocumented (right): https://codereview.appspot.com/9153044/diff/9001/undocumented#newcode19 undocumented:19: app/store/env/simulator.js:234 "_updateAgents" ...
11 years ago (2013-05-05 11:29:12 UTC) #7
bcsaller
Please take a look.
11 years ago (2013-05-05 22:30:50 UTC) #8
gary.poster
On 2013/05/05 22:30:50, bcsaller wrote: > Please take a look. I'm getting a possibly intermittent ...
11 years ago (2013-05-06 04:37:15 UTC) #9
bcsaller
Please take a look.
10 years, 12 months ago (2013-05-07 00:58:08 UTC) #10
gary.poster
Notes while doing QA: - When importing sample.json... - Invalid change data in _process_delta: Object ...
10 years, 12 months ago (2013-05-07 14:12:46 UTC) #11
bcsaller
Please take a look.
10 years, 12 months ago (2013-05-07 17:54:11 UTC) #12
bcsaller
Thanks, _process_delta: added exception when delta is null. Generation of a null delta could still ...
10 years, 12 months ago (2013-05-07 17:54:25 UTC) #13
matthew.scott
LGTM - thanks for all the work on this. I think this will really help ...
10 years, 12 months ago (2013-05-09 22:16:26 UTC) #14
jeff.pihach
LGTM - Thanks for putting this together it will really help us develop and test ...
10 years, 12 months ago (2013-05-09 23:02:11 UTC) #15
bcsaller
Thanks for the reviews! https://codereview.appspot.com/9153044/diff/23001/app/app.js File app/app.js (right): https://codereview.appspot.com/9153044/diff/23001/app/app.js#newcode1130 app/app.js:1130: 'juju-fakebackend-simulator', On 2013/05/09 23:02:11, jeff.pihach ...
10 years, 12 months ago (2013-05-09 23:17:35 UTC) #16
bcsaller
10 years, 12 months ago (2013-05-09 23:22:02 UTC) #17
*** Submitted:

sandbox event simulator

This is currently a prototype and I'm looking for feedback.
Currently this is a (flexible) framework for manipulating 
backend state with various agents, a few are included by
default and we can easily add others if we want.

Its currently configured so that if you check it out, run 
it and do a drag drop import of improv data you'll see
some changes every 3 seconds or so.

In testing this I discovered a number of bugs and fixed them.

Subordinate units import properly
Fix sandbox annotation handling (for env)
UnitCount Agent
Unit Position Agent
Annotation moves use transition.
Force annotation set on layout placement of new nodes.
removeUnits now updates deltaStream
removeUnits now skips subordinates properly
remove flicker around landcape badges in env view

R=gary.poster, matthew.scott, jeff.pihach
CC=
https://codereview.appspot.com/9153044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b