-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathApp.js
More file actions
68 lines (55 loc) · 1.57 KB
/
App.js
File metadata and controls
68 lines (55 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* This example app performs a full CRUD lifecycle of a user story.
*/
Ext.define('Rally.gettingstarted.DataModels', {
extend: 'Rally.app.App',
/**
* The app execution entry point
* _getStoryModel should be called here
*/
launch: function() {
},
/**
* Use Rally.data.ModelFactory to retrieve the story data model.
* When complete, call _createStory
*/
_getStoryModel: function() {
},
/**
* Create a new user story and persist it to the server.
* The model's save method should be useful here.
* When complete, call _readStory
*/
_createStory: function(model) {
},
/**
* Read the record you just created.
* The model's load method should be useful here.
* When complete call _printStory
*/
_readStory: function(story, operation) {
var model = story.self;
},
/**
* Print the story's FormattedID to the console.
* The model's get method should be useful here.
* Hint: did you remember to fetch FormattedID in _readStory?
* Call _updateStory when done.
*/
_printStory: function(story, operation) {
},
/**
* Set the story's PlanEstimate to 5.
* The model's set and save methods should be useful here.
* When complete call _deleteStory
*/
_updateStory: function(story) {
},
/**
* Delete the story.
* The model's destroy method should be useful here.
* When complete console.log a success message.
*/
_deleteStory: function(story, operation) {
}
});