![]() also don't allow editing account grading standards on a course grading standard page, even if the user has permission test plan: 1. create grading schemes in an account 2. create grading schemes in a course 3. create an account role that defines no additional permissions and add a user in this role 4. enroll the user from step 3 as a teacher in the course from step 2 5. confirm that the user cannot access the account grading standards page (account settings | Grading should be missing; the URL /accounts/X/grading_standards should yield an "Unauthorized" error) 6. as the user from step 3, go to the course grading standards page 7. confirm that course grading standards can be edited / deleted but these options are grayed out for account grading standards 8. as an account administrator, go to the account grading standards page (/accounts/X/grading_standards), and confirm all grading standards shown there are editable / deleteable 9. as an account administrator, go to the course grading standards page (/courses/X/grading_standards), and confirm the course grading standards are editable, whereas the account grading standards have an icon that links you to the account grading standards page, rather than being editable in-place. (title text on the link should explain this.) fixes CNVS-24716 Change-Id: I585f6dc148c675f7684a4faa14b34a27f21dbbd3 Reviewed-on: https://gerrit.instructure.com/66619 Tested-by: Jenkins Reviewed-by: James Williams <jamesw@instructure.com> QA-Review: Ryan Allen <rallen@instructure.com> Product-Review: Cosme Salazar <cosme@instructure.com> |
||
---|---|---|
.. | ||
assignments | ||
authentication_providers | ||
context_modules | ||
course_wizard | ||
dashboard_card | ||
due_dates | ||
epub_exports | ||
external_apps | ||
files | ||
gradebook | ||
grading | ||
groups | ||
navigation_header | ||
outcomes | ||
shared | ||
styleguide | ||
theme_editor | ||
README.md |
README.md
This directory is temporary until we rework the front-end build This is where we are headed.
Stuff you can do in Canvas JSX files
BUT WAIT!
Your file needs to:
- Have a file name with the
.jsx
extension.
JSX
function foo(paths) {
return <svg>{paths}</svg>;
}
Arrow Functions
var arr = ['hydrogen', 'helium', 'lithium'];
// es5
var a = arr.map(function(s){ return s.length });
// es6
var b = arr.map( s => s.length );
// with curlies requires normal return
var b = arr.map( (s) => {
return s.length
});
// lexical `this`
var obj = {
multiplier: 3,
multiplyStuff (stuff) {
return stuff.map((x) =>
// no bind!
return this.multiplier * x;
)
}
};
Classes
class EventEmitter {
constructor() {
// called when created
}
emit() {
// ...
}
on() {
// ...
}
once() {
// ...
}
removeListener() {
// ...
}
removeAllListeners() {
// ...
}
}
Extending and calling super
.
class Domain extends EventEmitter {
constructor() {
super();
this.members = [];
}
}
Creating instances
var domain = new Domain();
Destructuring
// es5
var map = _.map;
var each = _.each;
// es6
var {map, each} = _;
Concise Object Methods
// es5
var obj = {
foo: function() {}
bar: function() {}
};
// es6
var obj = {
foo() {}
bar() {}
};
Object Short Notation
// es5
function() {
// ...
return {foo: foo, bar: bar, x: 10};
}
// es6
function() {
// ...
return {foo, bar, x: 10};
}
Rest Parameters
// es5
function multiply(multiplier) {
var numbers = Array.prototype.slice.call(arguments, 0);
return number.map(function(n) { return multiplier * n; });
}
// es6
function multiply(multiplier, ...numbers) {
return numbers.map( n => multiplier * n);
}
String Templates
Multiline strings:
// es5
console.log("string text line 1" +
"string text line 2");
// es6
console.log(`string text line 1
string text line 2`);
Interpolated strings
var a = 5;
var b = 10;
// es5
console.log("Fifteen is " + (a + b) + " and not " + (2 * a + b) + ".");
// es6
console.log(`Fifteen is ${a + b} and not ${2 * a + b}.`);