Skip to content

Commit 7b038ac

Browse files
Remove the temporary allocationFileExplorer mirage scenario
1 parent 1783a7a commit 7b038ac

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

ui/config/environment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function(environment) {
2626

2727
APP: {
2828
blockingQueries: true,
29-
mirageScenario: 'allocationFileExplorer', // FIXME for stable preview links only
29+
mirageScenario: 'smallCluster',
3030
mirageWithNamespaces: true,
3131
mirageWithTokens: true,
3232
mirageWithRegions: true,

ui/mirage/scenarios/default.js

-30
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const allScenarios = {
1313
allNodeTypes,
1414
everyFeature,
1515
emptyCluster,
16-
allocationFileExplorer, // FIXME for stable preview links only
1716
};
1817

1918
const scenario = getConfigValue('mirageScenario', 'emptyCluster');
@@ -118,35 +117,6 @@ function emptyCluster(server) {
118117
server.create('node');
119118
}
120119

121-
function allocationFileExplorer(server) {
122-
server.create('node');
123-
124-
const job = server.create('job', {
125-
id: 'a-job',
126-
type: 'service',
127-
activeDeployment: true,
128-
namespaceId: 'default',
129-
createAllocations: false,
130-
});
131-
132-
const taskGroup = server.create('task-group', {
133-
name: 'task-group',
134-
createAllocations: false,
135-
shallow: true,
136-
jobId: job.id,
137-
});
138-
server.create('task', { name: 'task', taskGroup: taskGroup });
139-
server.create('allocation', {
140-
clientStatus: 'running',
141-
desiredStatus: 'run',
142-
id: '12345',
143-
jobId: job.id,
144-
taskGroup: taskGroup.name,
145-
});
146-
server.createList('allocFile', 5);
147-
server.create('allocFile', 'dir', { depth: 2 });
148-
}
149-
150120
// Behaviors
151121

152122
function createTokens(server) {

0 commit comments

Comments
 (0)