Send platform parameter when creating labels (#1179)
* Catches errors when polling for data on Manage Hosts Page * Sends platform parameter to server on label create * Remove unnecessary condition to format platform param * Clean up scheduled query formData
This commit is contained in:
@@ -11,7 +11,7 @@ import validate from 'components/forms/ConfigurePackQueryForm/validate';
|
||||
const baseClass = 'configure-pack-query-form';
|
||||
const fieldNames = ['query_id', 'interval', 'logging_type', 'platform', 'shard', 'version'];
|
||||
const platformOptions = [
|
||||
{ label: 'All', value: 'all' },
|
||||
{ label: 'All', value: '' },
|
||||
{ label: 'Windows', value: 'windows' },
|
||||
{ label: 'Linux', value: 'linux' },
|
||||
{ label: 'macOS', value: 'darwin' },
|
||||
|
||||
@@ -46,7 +46,7 @@ describe('ConfigurePackQueryForm - component', () => {
|
||||
expect(spy).toHaveBeenCalledWith({
|
||||
interval: 123,
|
||||
logging_type: 'differential',
|
||||
platform: 'all',
|
||||
platform: '',
|
||||
query_id: 1,
|
||||
version: '',
|
||||
shard: 12,
|
||||
|
||||
Reference in New Issue
Block a user