feat: 🎸 Add mirage data for the worker_filter (#1051)

* feat: 🎸 Add mirage data for the "worker_filter" attribute

✅ Closes: ICU-3888
This commit is contained in:
Zed authored and GitHub committed 2022-04-12 17:42:13 -04:00
1 parent 226475a47d
commit 670f38df74
2 files changed
+2

No files matched your search

+1
View File
@@ -25,6 +25,7 @@ export default factory.extend({
* -1 means "unlimited" and we want to generate these on occasion.
*/
session_connection_limit: () => random.arrayElement([-1, datatype.number()]),
worker_filter: (i) => (i % 2 === 0 ? random.words() : null),
type: (i) => types[i % types.length],
/**
* Generates attributes fields by type.
@@ -9,6 +9,7 @@ export default Factory.extend({
name: () => random.words(),
session_max_seconds: () => datatype.number(),
session_connection_limit: () => datatype.number(),
worker_filter: () => random.words(),
description: () => random.words(),
created_time: () => date.recent(),
updated_time: () => date.recent(),