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

154 Коммитов

Автор SHA1 Сообщение Дата
Rohit Nayak 3edee1d4ef Hotfix issue with failing polyfill in Chrome
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2019-12-19 14:15:26 +01:00
Yun Lai 37c586eadd Add MultiSplitDiff support in workflow, also fixed arguments ordering
issue

Signed-off-by: Yun Lai <ylai@squareup.com>
2019-10-11 01:38:48 -07:00
hwdef 1f98c92b79 fix some spelling mistakes
Signed-off-by: hwdef <hwdef97@gmail.com>
2019-09-26 17:06:20 +08:00
Yun Lai b600193b8c Added exclude_tables flag in workflow and pass it down to vtworker
Signed-off-by: Yun Lai <ylai@squareup.com>
2019-09-24 11:15:12 +10:00
Karel Alfonso Sague f950b3c25c Enable selecting consistent snapshot during resharding workflows via vtctld ui
Signed-off-by: Karel Alfonso Sague <kalfonso@squareup.com>
2019-09-18 12:09:14 +10:00
hwdef d5fda2b258 fix some misspell
Signed-off-by: hwdef <hwdef97@gmail.com>
2019-08-28 14:59:49 +08:00
Rafael Chacon f41656fe71
Merge pull request #4878 from luky-pc/feature/add-space
need a space before =
2019-05-25 14:10:39 -07:00
eleven 89fe07b25f need a space before =
Signed-off-by: eleven <looker_pc@163.com>
2019-05-25 23:45:52 +08:00
eleven 046d9e141c should use ' to take place of "
Signed-off-by: eleven <looker_pc@163.com>
2019-05-25 23:38:30 +08:00
deepthi e1ed744b18 delete old website files, fix license in package.json
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-03-18 21:23:40 -07:00
huynq0911 1898eba2df Change http to https for security links
For security, we should change http into https links.
This PR also update deprecated links

Signed-off-by: huynq0911 <huynq0911@gmail.com>
2019-02-16 12:41:48 +07:00
Rafael Chacon abac3c7194 Updates assets with latest changes
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-08-24 17:34:51 -07:00
Rafael Chacon 63f9d5073f Cleanup javascript and fix typo in workflow name
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-08-24 17:30:48 -07:00
Rafael Chacon 0206024bff Refactor new workflow name for clarity
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-08-24 16:09:40 -07:00
Rafael Chacon f57e338c94 Merge branch 'upstream-master' into improvements-to-workflows-v2 2018-08-23 16:09:25 -07:00
Rafael Chacon b718782bcd Add new options to workflow UI
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-08-23 16:05:46 -07:00
Rafael Chacon d84e0434ee Code refactor, renaming for better readability
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-08-20 10:55:57 -07:00
Rafael Chacon 228bfe8472 Adds keyspace resharding workflow
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-08-17 11:29:28 -07:00
Rafael Chacon e0f8b5b33b Modify horizontal workflow to require explicit source and destination shards
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-08-16 13:58:53 -07:00
Rafael Chacon 7cf87c27c6 Fix issue where different workflows incorrectly get flags from a different one
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-08-15 10:59:28 -07:00
Rafael Chacon 56a1f34290 Adds bundled assets and improve help messages
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-06-22 10:59:17 -07:00
Rafael Chacon f395d0b1d0 Adds SplitDiff destination tablet type to resharding workflow
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-06-22 10:51:27 -07:00
Rafael Chacon c6b021ba24 Update comment per code review
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-06-20 10:41:32 -07:00
Rafael Chacon 3a6634a3e1 Fix typos
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-06-19 15:09:00 -07:00
Rafael Chacon f1405c90af Adds LegacySpliClone option to horizontal sharding workflow
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-06-19 15:05:23 -07:00
Alain Jobart 5397c65187 Fixing vtctld tablets URL.
When running in a container, the absolute URLs don't work. Have to use
relative ones, as in every other .ts file in that directory.
2017-11-15 14:20:20 -08:00
Sugu Sougoumarane c781c5e6fb codegen after vtctld source file change 2017-10-23 23:02:54 -07:00
Sugu Sougoumarane 45d5125487 export internal change 2017-10-23 15:41:05 -07:00
Michael Berlin 14afc18998 web/vtctld2: Fix missing zero values in schema view e.g. for "# Rows".
I fixed this by changing the JSON marshaller of the vtctl commands: For
protobuf messages we now use the "jsonpb" package which supports
emitting fields with zero values.

We already used this approach in the vtctld API endpoints. I've moved
the code to the "vtctl" package to make it more generic.

A drawback of this approach is that it doesn't cope well with our *Info
objects e.g. ShardInfo because the type switch recognizes them as
proto.Message and they have unexported fields which let jsonpb panic. To
work-around this, I've changed the vtctl code to marshal only the
embedded protobuf message and not the full *Info object anymore.
2017-03-29 09:37:16 -07:00
Michael Berlin fc17abfde3 web/vtctld2: Fix schema display if a table has no primary key. 2017-03-29 07:41:40 -07:00
Yipei Wang a845e451e1 vtctld UI: Push the recent UI change of workflow creation dialogue. 2017-03-24 13:31:30 -07:00
wangyipei01 925addf07e workflow: Implement canary feature. (#2613)
User can control through UI for running a canary task,
then running the remaining tasks. Create unit tests
and manually test the UI in e2e test environment.
2017-03-14 20:48:55 -07:00
Alain Jobart 0b8e500cc6 ReloadSchema{Shard,Keyspace} and UI fixes.
- Adding vtctl ReloadSchema{Shard,Keyspace} commands.
- Adding ReloadSchema{Shard,Keyspace} to ui.
- Removing test workflow data to avoid flickering at startup.
- Fixing schema display in vtctld2 UI.
- Rebuild vtctl doc.
- Rebuilding UI.
2017-01-31 10:50:33 -08:00
Yipei Wang f90f0151da workflow: Add horizontal resharding workflow.
It supports creating workflow to reshard multiple source shards.
It will show a phase-based tree-structure UI.
Unit Test is included for testing the happy path.
2017-01-20 13:55:08 -08:00
Alain Jobart 4e7b259fb4 Rebuilding webapp. 2017-01-18 10:27:41 -08:00
Alain Jobart 10de39f940 Properly building the sub-workflows.
Otherwise the topovalidator sub-actions buttons don't work.
2017-01-18 09:54:32 -08:00
thompsonja 73381fba35 Add font-awesome directly to angular2 project (#2383)
BUG=33706658
2016-12-16 20:01:37 -08:00
thompsonja 330824a264 Copy external dependencies for vtctld, fix webdriver test (#2345)
* Update vtctld web app to use local files for css and plotly js and fix webdriver test.
2016-12-06 16:38:13 -08:00
Alain Jobart 547e38462a Adding right favicon to web app. 2016-12-06 07:11:24 -08:00
Alain Jobart f67bb63d5b Lots of vtctld2 fixes.
1. Improving tablet sort in dashboard.
When fetching tablet list, we sort by type as we add tablets.
Using sub-ordering for sort by type and sort by cell, to have a
deterministic order within groups.

2. Fixing initial table display in dashboard.
Only display the 'There are no tablets in this shard.' message when we
actually got a result with no tablets.

3. Fixing shard view columns width.

4. No more selection in shards view.

5. Different menus for master vs slaves in shard view.

6. Adding a refresh button to 3 dashboard views.

7. Using a single dialog for all workflows.
That way it's not linked to a single workflow component, but instead to
the window. Which as a side effect fixes the bug where opening the
dialog only greys out half of the window.

8. Moving keyspace / shard creation.
From the floating '+' button that doesn't float to a menu.

9. Using plus icon for new workflow.
Removing plus icon, as it doesn't float.
Only showing + in workflows if master.
2016-12-02 09:49:36 -08:00
Alain Jobart a803f272f0 Removing DemoteMaster from vtctl, and UI.
It is just a confusing command. The tabletmanager RPC command is still
there (and used during reparent). But no need to expose it.
2016-11-29 10:40:15 -08:00
Alain Jobart 585219d68d Link the available workflows for ui and backend.
Also adding a command line way to disable workflows.
And adding message to dialogs to fix UI bug.
2016-11-11 13:15:45 -08:00
Pavel Ivanov 30ee782478 Refactor workflow code to be more UI-friendly. (#2240)
The main goal of this change is to make not started and finished workflows
visible in the UI. Without this it was possible to create a workflow with
-skip_start option, and then it won't be visible in the UI thus not giving any
ability to actually start it. Also once workflow finishes it was disappearing
from the UI thus not giving any ability to see how it finished and whether it
existed at all or not. Besides this UI problem also workflows were never deleted
from the topo server and were accumulating indefinitely. This change makes
everything from topo server visible in the UI thus giving ability for the user
to delete already finished workflows.

This UI improvement allows the validator workflow to become less awkward and
actually finish once all fixers are done working. I'm modifying the validator
workflow to do that here as well.
2016-11-11 11:06:47 -08:00
Alain Jobart 13839f95d3 Many improvements to make vtctld new UI safer.
- adding a flag to not display CRUD topo menus.
So that vtctld can be less dangerous in established production
environments.
- Make set RO / RW behind the replication flag.
Also add better messages, and add the ignore regexp flag.
- Tablet type changes in shard display.
Now they are sorted with master first, then replica, then rdonly, then
everything else.
Also display master in bold, replica/rdonly in italic, rest normal.
2016-11-09 13:18:16 -08:00
Alain Jobart 410283999f Fixing a couple vtctld problems.
1. The schema page is now more resilient to missing data in responses.
2. The topology browser doesn't add extra '/' in topodata URLs, so we
don't do a useless roundtrip with a redirect.
3. Adding a button in UI to switch from old to new and new to old UI.
2016-11-08 11:38:05 -08:00
Alain Jobart 2742950552 Adding features service to vtctld.
So we can enable / disable UI features.
Using it for top-level Status and Workflows links, as well as reparent
menu items.

Also re-organized the menus for shard / tablets.
2016-11-08 08:34:00 -08:00
Pavel Ivanov cac9ce496f Some cleanup on the Node-related Go<->javascript API. (#2221)
- Make the first value of enums (the one that is equal to 0) to be the unknown
  one, so that it was considered a programming error.
- Remove "omitempty" tag from fields where change from some value to empty value
  must be passed in an update to the web UI.
- Add "omitempty" to Children because that's an important special use case.
- Modify javascript to assume that name, state, style and message of an action
  is always there.
- Modify javascript to work when 'children' value was not received.
2016-11-04 23:02:18 -07:00
Pavel Ivanov 55be023434 Fix parsing of actions when updating Node in workflow UI. (#2215)
It looks like something has changed recently and now when WorkflowManager
encodes Node into json it behaves similar to proto3: when 'state' and 'style'
in an action have enum value equal to 0, it's getting omitted from the resulting
json. That caused the javascript code to skip adding the Action object to the
Node. I'm fixing the javascript to account for that and consider missing 'state'
and 'style' as being equal to 0.
2016-11-04 13:59:47 -07:00
thompsonja 981a1bc48b Update worker tablet type to drained in vtctld / docs (#2187)
Update worker tablet type to drained in vtctld / docs
2016-11-01 11:30:22 -07:00
Pavel Ivanov dafc8a453a Incorporate schema swap into workflow framework. (#2199)
This makes a minimal wiring of schema swap process into the workflow framework,
just enough to execute it and to see in the UI when it's in progress. Deeper
integration to display all the steps being done during the schema swap will be
done later.

This also fixes a few nil pointer dereference bugs discovered during testing of
the process. With those bugs fixed the rest of the code works as is.
2016-10-31 09:55:56 -07:00