-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport web console fixes [16318, 16359, 16375] to 30.0.0 (#16441)
* Web console: surface more info on the supervisor view (#16318) * add rate and stats * better tabs * detail * add recent errors * update tests * don't let people hide the actions column because why * don't sort on actions * better way to agg * add timeouts * show error only once * fix tests and Explain showing up * only consider active tasks * refresh * fix tests * better formatting * web-console: ACE editor refactoring (#16359) * Move druid-sql completions to dsql mode * Use font-size 12 * Convert ace-modes to typescript * Move aceCompleters to class member * Use namespace imports * Web console: concat data when doing a durable storage download (#16375) * concat data * fix silly console.error --------- Co-authored-by: John Gozde <john@gozde.ca>
- Loading branch information
1 parent
463fb3e
commit fca7ea2
Showing
53 changed files
with
1,063 additions
and
521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
web-console/src/ace-modes/__snapshots__/make-doc-html.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`makeDocHtml correctly formats helper HTML 1`] = ` | ||
" | ||
<div class="doc-name">COUNT</div> | ||
<div class="doc-syntax">COUNT(*)</div> | ||
<div class="doc-description">Counts the number of things</div>" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import { makeDocHtml } from './make-doc-html'; | ||
|
||
describe('makeDocHtml', () => { | ||
it('correctly formats helper HTML', () => { | ||
expect( | ||
makeDocHtml({ | ||
name: 'COUNT', | ||
syntax: 'COUNT(*)', | ||
description: 'Counts the number of things', | ||
}), | ||
).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import escape from 'lodash.escape'; | ||
|
||
export interface ItemDescription { | ||
name: string; | ||
syntax: string; | ||
description: string; | ||
} | ||
|
||
export function makeDocHtml(item: ItemDescription) { | ||
return ` | ||
<div class="doc-name">${item.name}</div> | ||
<div class="doc-syntax">${escape(item.syntax)}</div> | ||
<div class="doc-description">${item.description}</div>`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,4 +89,9 @@ | |
} | ||
} | ||
} | ||
|
||
.#{$bp-ns}-navbar-group.#{$bp-ns}-align-right { | ||
position: absolute; | ||
right: 15px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.