Граф коммитов

154 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart 252eda49f7 Adding master election to vtctld.
- Including UI display of the redirect, and a fix in zk topology.
- Better Update support in vtctld2.
  Now always using a single Update structure, and json-encoding it.
  Omitting a bunch of fileds if empty in json encoding.
- Adding unit test for long polling.
2016-10-27 07:20:07 -07:00
Alain Jobart 50a6f36e0f Adding Topo Validator Workflow.
It contains a Keyspace and Shard validator for now, but it's easy to add
new ones.

In the process:
- Fixing minor bugs in vtctld2 web ui.
null and undefined are different in TS.
- Ignoring ErrNoNode in FindAllShardsInKeyspace.
It most likely means a shard creation was aborted in the middle, and we
don't want to error everything out when that happens.
2016-10-20 08:01:05 -07:00
Alain Jobart 07a5a980ab Many changes to the workflow UI.
- Adding workflow creation dialog in vtctld.
- Adding 'Stop' button to workflows in vtctld.
- Fixing exception for redirect keyspaces display.
- Adding skip_start to vtctld.
- Adding Ui side for showing non-running workflows.
- Adding a vtctld HTTP based long-polling mechanism.
- Releasing UI resources for workflow closure.

Also fixing a race condition in manager shutdown:
We were using (manager.ctx == nil) as a test to check out if the manager
was stopped. This is not reliable, as manager.ctx is updated after the
context cancelation and after taking the manager mutex. In the
meantime, a job could have also realized its context was canceled and
started its shutdown, which takes the manager mutex and checks for
manager.ctx == nil as well.
The new logic uses a new 'stopped' flag instead to differentiate the
Manager shutdown from a workflow Stop. It's better documented too.
2016-10-17 14:22:23 -07:00
Alain Jobart 2ee2738bda Adding workflow library.
To manage long running workflows within Vitess.
It contains a sample Sleep workflow.
Wiring up the UI using WebSockets.
Also adding vtctl commands.
2016-10-04 14:09:31 -07:00
Joshua Thompson f2fb448dc5 Merge dsslater's webdriver test. 2016-09-27 09:47:19 -07:00
thompsonja 30b6d1a737 Angular2 webdriver test updates (#2038)
Angular2 webdriver test updates
2016-09-13 17:17:22 -07:00
Priyanka Kulshreshtha 3ced98bafd Fixed some typos 2016-09-08 02:32:08 -07:00
Priyanka Kulshreshtha c0e27eac9a Addressed more comments 2016-09-08 02:31:47 -07:00
Priyanka Kulshreshtha d4462b5a88 Addresed comments from mberlin on PR 1969 2016-09-08 02:30:49 -07:00
pkulsh 3fa827017d webdriver tests for Realtime Status vtctld2 component (#2018)
- Added webdriver tests for the 8 different views checking the dropdowns and number of heatmaps
- Added vtctld2_web_status test to config.json
2016-09-02 16:34:04 -07:00
Priyanka Kulshreshtha 8a28efec9b Addressed comments from mberlin 2016-09-01 16:43:39 -07:00
Priyanka Kulshreshtha 4646e5977f Dropdown now only shows options that actually exist in topology 2016-09-01 16:43:39 -07:00
Priyanka Kulshreshtha 920290bb60 Fixed routing so now it's possible to navigate away from status page 2016-09-01 16:42:10 -07:00
Priyanka Kulshreshtha fb12bc6e7e Changed the metric 'healthy' to 'health' 2016-09-01 06:23:52 -07:00
Priyanka Kulshreshtha cc74e6da89 Added support for a popup for a missing tablet 2016-09-01 06:23:52 -07:00
Priyanka Kulshreshtha d1e44e33b1 Fixed the heatmap display and color scheme 2016-09-01 06:23:52 -07:00
Priyanka Kulshreshtha daf617309f Fixed routing so now it's possible to navigate away from status page 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha 0b8c4eba67 Fixed linting errors 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha c4894e26f9 Finished the popup for the heatmap 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha 77caad86cc Fixed routing issue 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha d8f7daba57 Fixed heatmap display - no vertical lines, thiner rows 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha e9d6c6acd9 Fixed height of the rows of the heatmap 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha e191f692d9 Added support for vertical and horizontal grid lines. 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha 92ee380f71 Fixed redrawing map such that it doesn't automatically reset 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha 04a8efb0ab Reworked algorithm for getting heatmap data 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha 1ae95558dc Generate one heatmap per keyspace 2016-09-01 06:23:19 -07:00
Priyanka Kulshreshtha de2af4a1c3 Implemented routing to different views + basic popup template 2016-09-01 06:23:19 -07:00
dsslater c10f1d4d80 Schema Manager (#1999)
* Added dsahboard view and created keyspace service

* Implemented most of the views necessary. Checking in to sync up.

* restructured file tree

* Working on CRUD interface

* Finished adding mock up views to dashboard

* Implemented keyspace read functionality

* Adds CRUD functionality for Keyspaces and infrastructure

* Started exposing Shard API Endpoints

* gofmt

* Added support for shard endpoints

* Addressed all comments by enisoc and mberlin

* vtctld: added full crud functionality for UI.

Pointed UI to endpoint that leverages vtctl for commands.
Added support for Validation at all levels, RebuildKeyspaceGraph,
RemoveKeyspaceCell, InitShardMaster, Ping, and RefreshState.

* Added new icons on the sidenav, these do not point to new views.

* Removed extraneous merge files and adde new line to dialog-content

* handle partial list error

* gofmt indented return in api.go

* gofmt

* moved material imports to modules in app.module

* fix line length for linter

* adding command support and prime dropdown

* Dashboard has commands working

* removed dashboard prepare function

* finished transition to commands in dialog setting, added tablet actions

* Started adding dropdowns for schema view

* updated to webpack

* adding tablet fetching

* Updateed Tablet service

* Added single schema view for selected schema.

* Changed how columns are processed and moved to prime dialog

* Clean up titles and remove debugging code

* Changed to schema to use vtctlService.runCommand.

* Added spaces for style and removed unnecessary css

* Reworked UI based on team comments

* Removed an unnecessary !important tag
2016-08-30 16:30:31 -07:00
dsslater 30ae93fb3f Workflow ui (#2008)
* First mock of workflow components

* adding horizontal resharding demo to tasks

* use angular css

* workflow ui change

* add icons to workflow ui

* Fixed back to the future example

* renaming files to match workflow names

* Simplify mock data insertion through update

* Fixing linter errors

* Reworking Workflows to use a service

* Changed children of nodes to be an array instead of a map.

* Set up Workflow UI to parse and build workflows from JSON.

* Reworked workflow components to remove redundant html code

* Made padding consistent and added color to running workflows.

* Removed .orig file accidently added.

* Removed vendored styles in favor of CDNs.

* Removed commented out HTML.
2016-08-30 16:28:08 -07:00
dsslater 894e7dabf6 Low hanging features (#1998)
* Added dsahboard view and created keyspace service

* Implemented most of the views necessary. Checking in to sync up.

* restructured file tree

* Working on CRUD interface

* Finished adding mock up views to dashboard

* Implemented keyspace read functionality

* Adds CRUD functionality for Keyspaces and infrastructure

* Started exposing Shard API Endpoints

* gofmt

* Added support for shard endpoints

* Addressed all comments by enisoc and mberlin

* vtctld: added full crud functionality for UI.

Pointed UI to endpoint that leverages vtctl for commands.
Added support for Validation at all levels, RebuildKeyspaceGraph,
RemoveKeyspaceCell, InitShardMaster, Ping, and RefreshState.

* Added new icons on the sidenav, these do not point to new views.

* Removed extraneous merge files and adde new line to dialog-content

* handle partial list error

* gofmt indented return in api.go

* gofmt

* moved material imports to modules in app.module

* fix line length for linter

* adding command support and prime dropdown

* Dashboard has commands working

* removed dashboard prepare function

* finished transition to commands in dialog setting, added tablet actions

* updated to webpack

* Merged changes from shard branch.

* Changing to openDialog instead of prepareDialog pattern.

* Began moving directives to app.module.

* Fix merge issues and add Accordion to PrimeNG import.

* Removed unused import.

* Removed unnecessary style.

* Exported routes so typescript compiler can find it.

* Moved error message to DailogSettings.

* Added spaces to function defaults based on style guide.

* Changing to menu for actions instead of accordion.

* Change shard view to use menus.

* Moved Keyspace actions into menu and fixed command preview.

* Finished keyspace cards and added hover effect.
2016-08-30 11:57:28 -07:00
Priyanka Kulshreshtha f1967ac588 Moved directives into app.module & renamed tablet.component to tablet-popup.component 2016-08-25 23:03:31 -07:00
Priyanka Kulshreshtha 816dd2b495 addressed comments by mberlin 2016-08-25 22:31:30 -07:00
Priyanka Kulshreshtha 6edb3a45fd Fixed indentation on status.component.ts 2016-08-25 22:31:30 -07:00
Priyanka Kulshreshtha 26f9f68871 addressed style comments from thompsonja 2016-08-25 22:31:30 -07:00
Priyanka Kulshreshtha 87ed9f193d Generate one heatmap per keyspace 2016-08-25 22:30:41 -07:00
Priyanka Kulshreshtha 899f8ebe14 Implemented routing to different views + basic popup template 2016-08-25 22:29:58 -07:00
Anthony Yeh aa0f33514a vtctld2: Fix @angular2-material import paths. (#1996) 2016-08-25 16:47:35 -07:00
Anthony Yeh b3e415101d vtctld2: Move all providers to AppModule. (#1995)
Providers and directives are now injected at the module level, rather than in every component.
2016-08-25 16:34:39 -07:00
pkulsh c295efad21 Replaced paper dropdowns with primeNg dropdowns (#1989) 2016-08-24 16:57:57 -07:00
David Slater dd1bad01d9 Removed Polymer from the app and replaced it with PrimeNG 2016-08-24 15:11:16 -07:00
David Slater 38fba2bb63 Addressed comments by enisoc
Changed pattern from preparing dialogs to preparing and opening in one
function.
Added ACL check for vtctl endpoint and schema endpoint.
Seperated the generation of vtctl commands into flags and args.
Better seperated the vtctl service from its clients.
Cleaned up style issues.
2016-08-24 13:56:02 -07:00
David Slater 746c386d3d Changed vtctl service to respect abstraction layers 2016-08-22 13:41:14 -07:00
David Slater 34a4174fc1 Merge branch 'master' into shard/crud 2016-08-22 11:53:16 -07:00
Anthony Yeh d273bfc488 vtctld2: Update to latest angular-cli
From angular-cli master branch, commit
3dcd49bc625db36dd9f539cf9ce2492107e0258c
2016-08-19 16:03:00 -07:00
Anthony Yeh 005020cd32 Merge branch 'master' into angular-cli 2016-08-17 20:01:22 -07:00
Anthony Yeh 8cff0057f4 vtctld2: Make sidenav content flex. 2016-08-17 18:16:40 -07:00
Anthony Yeh 6d1b41ebc5 vtctld2: Update to angular-cli 1.0.0-beta.11-webpack.2 2016-08-17 18:16:40 -07:00
thompsonja 1790e4ba37 Merge pull request #1945 from pkulsh/web-statusComponent
Heatmap populates with values from service
2016-08-17 11:50:20 -07:00
Priyanka Kulshreshtha 7f0bda4512 Fixed URL for tabletHealth call 2016-08-16 22:47:48 -07:00
Priyanka Kulshreshtha 36d5011cde Addressed comments from thompsonja 2016-08-16 17:14:27 -07:00
David Slater dea02aadd7 Merge branch 'master' into shard/crud 2016-08-16 17:03:41 -07:00
Anthony Yeh 6ffceb17a5 vtctld2: Fix scrolling on dashboard. 2016-08-15 16:57:15 -07:00
Priyanka Kulshreshtha cc9e8df243 Fixed some linting errors 2016-08-15 16:37:57 -07:00
Priyanka Kulshreshtha 8f88b3d1eb Addressed comments from thompsonja 2016-08-15 16:37:02 -07:00
Priyanka Kulshreshtha e519a88e00 Heatmap populates with values from service 2016-08-12 18:43:06 -07:00
Anthony Yeh 4ce6c4cf9a vtctld2: Fix use of PolyElement() for Angular 2 RC5. 2016-08-12 17:47:44 -07:00
Anthony Yeh 93253a9b61 vtctld2: Add own components to module declarations. 2016-08-12 17:29:20 -07:00
Anthony Yeh 7e59f3abd0 vtctld2: Update angular2-material to alpha.7-2. 2016-08-12 17:10:22 -07:00
David Slater 1dc5764129 Fixed routing and md-button for rc5. Broken on Polymer. 2016-08-12 16:50:12 -07:00
David Slater 204c759cae Updating to rc5 2016-08-12 13:29:58 -07:00
Priyanka Kulshreshtha 5bcc2ce769 Added the ngModule component support Angular 2 update 2016-08-12 11:20:21 -07:00
David Slater 66d58425b7 Removed extraneous merge files and adde new line to dialog-content 2016-08-09 15:30:54 -07:00
David Slater bf0c1e254a Added new icons on the sidenav, these do not point to new views. 2016-08-09 15:18:01 -07:00
David Slater 910a1ad443 vtctld: added full crud functionality for UI.
Pointed UI to endpoint that leverages vtctl for commands.
Added support for Validation at all levels, RebuildKeyspaceGraph,
RemoveKeyspaceCell, InitShardMaster, Ping, and RefreshState.
2016-08-09 15:18:01 -07:00
David Slater 1350157d7b Started exposing Shard API Endpoints 2016-08-09 15:09:05 -07:00
David Slater 4561775c3a Addressed all comments by enisoc and mberlin 2016-08-09 15:09:05 -07:00
David Slater 64a4a29302 Adds CRUD functionality for Keyspaces and infrastructure 2016-08-09 14:56:36 -07:00
David Slater 914336347e Implemented keyspace read functionality 2016-08-09 14:45:53 -07:00
David Slater be8b2f7399 Finished adding mock up views to dashboard 2016-08-09 14:42:58 -07:00
David Slater 75ff6504ec Working on CRUD interface 2016-08-09 14:38:45 -07:00
David Slater 5deaa8cec3 restructured file tree 2016-08-09 14:34:38 -07:00
David Slater f0dd9df14c Implemented most of the views necessary. Checking in to sync up. 2016-08-09 14:33:58 -07:00
David Slater a435129761 Added dsahboard view and created keyspace service 2016-08-09 14:27:32 -07:00
David Slater 65377c12ce renamed files to kebab case 2016-08-08 21:05:43 -07:00
David Slater 4cfb52fba2 Addressed all comments by enisoc and mberlin 2016-08-08 21:05:43 -07:00
David Slater f11e1fed62 Adds CRUD functionality for Keyspaces and infrastructure 2016-08-08 21:04:50 -07:00
David Slater caa697d25d Added CRUD functionality to keyspaces sin flags 2016-08-08 21:02:59 -07:00
David Slater bb07b9b31f Implemented keyspace read functionality 2016-08-08 21:02:59 -07:00
David Slater 198f2a059f Fixed routing to use navigate 2016-08-08 20:59:40 -07:00
David Slater 94e4f6cddf Finished adding mock up views to dashboard 2016-08-08 20:59:40 -07:00
David Slater 3aa51febd6 imported ng-prime button 2016-08-08 20:53:37 -07:00
David Slater 26db2b98f7 Working on CRUD interface 2016-08-08 20:53:37 -07:00
David Slater 2e153c082b changed shardview to table 2016-08-08 20:47:43 -07:00
David Slater 259163a712 restructured file tree 2016-08-08 20:47:43 -07:00
David Slater 39ffcfe4ac Implemented most of the views necessary. Checking in to sync up. 2016-08-08 20:47:43 -07:00
David Slater 3799b331eb Added dsahboard view and created keyspace service 2016-08-08 20:39:21 -07:00
Priyanka Kulshreshtha d754897771 Removed extra spaces in html 2016-08-04 15:50:29 -07:00
Priyanka Kulshreshtha c26739a1e5 Changed html table css 2016-08-04 15:34:47 -07:00
Priyanka Kulshreshtha 22644f6fe2 Fixed spacing in html files. 2016-08-04 00:02:41 -07:00
Priyanka Kulshreshtha 784c5dcb16 Addressed style comments by mberlin 2016-08-04 00:01:24 -07:00
Priyanka Kulshreshtha 8f358937de Addressed comments from mberlin 2016-08-03 13:25:08 -07:00
Priyanka Kulshreshtha ca2ff42133 Addressed comments from mberlin and finished statusComponent. 2016-08-02 11:01:32 -07:00
Priyanka Kulshreshtha 7412e64cab Finished the heatmap component and a template view using it 2016-07-29 12:20:31 -07:00
Priyanka Kulshreshtha d74d3657c7 Cleaned up code and made 2 plotly heatmap instances. 2016-07-26 11:38:07 -07:00
Priyanka Kulshreshtha fe280c0eb9 web: 2 prototypes for heatmap component 2016-07-24 22:12:02 -07:00
Anthony Yeh 71f5373208 vtctld2: Implement TopoBrowserComponent. 2016-06-29 02:58:18 -07:00
Anthony Yeh e5e30d81ec vtctld2: Fix 'ng lint' issues. 2016-06-29 02:58:18 -07:00
Anthony Yeh 1039886a08 vtctld2: Add BreadcrumbsComponent. 2016-06-29 02:58:18 -07:00
Anthony Yeh 359ae161a7 vtctld2: Rename TopoComponent to TopoBrowserComponent. 2016-06-29 02:58:18 -07:00
Anthony Yeh 4b986b5df6 vtctld2: Add TopoDataService. 2016-06-29 02:58:18 -07:00