-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System Batch UI, Client Status Bar Chart and Client Tab page view #11078
Conversation
978f087
to
1f95a67
Compare
Ember Asset Size actionAs of 8c8c3fd Files that got Bigger 🚨:
Files that stayed the same size 🤷:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'm at a complete loss on all levels. If I'm supposed to be doing something that I'm not, could someone please politely let me know. I'm losing my mind here.
Ember Test Audit comparison
|
Ember Test Audit flaky testsEmber Test Audit detected these flaky tests on 38f764f:
|
Ember Test Audit flaky testsEmber Test Audit detected these flaky tests on 2c96d75:
|
refactor forceCollapsed logic to use hasClientStatus prop
Ember Test Audit flaky testsEmber Test Audit detected these flaky tests on c38c0a5:
|
Ember Test Audit flaky testsEmber Test Audit detected these flaky tests on dc22c75:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is top-notch work! All my comments are mere observations. Thank you for shipping this neat UI at the same time as the core feature ❤️
@@ -25,7 +25,8 @@ module.exports = function(environment) { | |||
|
|||
APP: { | |||
blockingQueries: true, | |||
mirageScenario: 'topoMedium', | |||
// TODO: revert before merging to main. | |||
mirageScenario: 'sysbatchSmall', // convert to 'sysbatchSmall' when working on feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. topoMedium
isn't a particularly good default scenario anyway.
const clientIDs = clients.sortBy('id').map(c => c.id); | ||
const clientsInTable = Clients.clients.map(c => c.id).sort(); | ||
assert.deepEqual(clientsInTable, clientIDs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally page object collections aren't sorted, and instead of the fixture data is sorted to match what the app behavior is. Either way, good to have coverage here.
assert.true(hasTooltip, `row ${index} has ${col} tooltip`); | ||
assert.ok(tooltipText, `row ${index} has ${col} tooltip content ${tooltipText}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two assertion methods do the same thing. assert.ok
is the method we have used in Nomad.
moduleForJobWithClientStatus('Acceptance | job detail with client status (system)', () => | ||
server.create('job', { | ||
status: 'running', | ||
datacenters: ['dc1'], | ||
type: 'system', | ||
createAllocations: false, | ||
}) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No harm in continuing the pattern of creating new moduleFor*
utilities, but now the more idiomatic thing to do is use hooks to add common behavior. Something like:
module('Acceptance | job detail with client status (system)', function(hooks) {
setupJobWithClientStatus(hooks);
test('...');
});
for (var testName in additionalTests) { | ||
test(testName, async function(assert) { | ||
await additionalTests[testName].call(this, job, assert); | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For annoying legacy JavaScript reasons, this would be better as a for...of
loop.
|
||
assert.deepEqual(result, expected); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great test coverage on the hairy bits of this util 👏
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR is linked to this umbrella issue.
It should cover the following:
sysbatch
jobsperiodic
anddispatch
sysbatch
jobsClients
tabCases to test:
periodic
andparameterized
sysbatch
jobssysbatch
job is registered