Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iobserve-ui-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iobserve-ui
iobserve-ui-frontend
Commits
f87604e6
Commit
f87604e6
authored
9 years ago
by
Mathis Neumann
Browse files
Options
Downloads
Patches
Plain Diff
improve documentation
parent
35f2aa32
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/services/changelog-parser.js
+22
-0
22 additions, 0 deletions
app/services/changelog-parser.js
app/services/changelog-queue.js
+8
-0
8 additions, 0 deletions
app/services/changelog-queue.js
app/services/visualisation-events.js
+0
-1
0 additions, 1 deletion
app/services/visualisation-events.js
with
30 additions
and
1 deletion
app/services/changelog-parser.js
+
22
−
0
View file @
f87604e6
import
Ember
from
'
ember
'
;
import
Ember
from
'
ember
'
;
// TODO: update cytoscape instead of complete rerender
// TODO: update cytoscape instead of complete rerender
/**
* The changelog parser takes a changelog (as a plain JS object) and updates the internal
* state of the Ember Data store automatically. Supports CREATE, UPDATE, DELETE and APPEND operations
*
* @class ChangelogParserService
* @extends {Ember.Service}
*/
export
default
Ember
.
Service
.
extend
({
export
default
Ember
.
Service
.
extend
({
store
:
Ember
.
inject
.
service
(),
store
:
Ember
.
inject
.
service
(),
/**
* Parse a list of changelogs
* @param {Array} changelogs List of changelogs, as plain JavaScript objects
* @method parse
* @public
*/
parse
(
changelogs
)
{
parse
(
changelogs
)
{
this
.
debug
(
'
store
'
,
this
.
get
(
'
store
'
));
this
.
debug
(
'
store
'
,
this
.
get
(
'
store
'
));
this
.
debug
(
'
parsing changelogs
'
,
changelogs
);
this
.
debug
(
'
parsing changelogs
'
,
changelogs
);
changelogs
.
forEach
(
this
.
parseSingle
.
bind
(
this
));
changelogs
.
forEach
(
this
.
parseSingle
.
bind
(
this
));
},
},
/**
* Parse a single changelog
*
* @param {Object} changelog changelog as plain JavaScript object, see backend documentation for data structure
* @method parseSingle
* @public
*/
parseSingle
(
changelog
)
{
parseSingle
(
changelog
)
{
const
operation
=
this
.
get
(
`operations.
${
changelog
.
operation
}
`
);
const
operation
=
this
.
get
(
`operations.
${
changelog
.
operation
}
`
);
if
(
!
operation
)
{
if
(
!
operation
)
{
...
...
This diff is collapsed.
Click to expand it.
app/services/changelog-queue.js
+
8
−
0
View file @
f87604e6
import
Ember
from
'
ember
'
;
import
Ember
from
'
ember
'
;
/**
* Stores changelogs which were received via ChangelogStreamService and applies the {ChangelogParserService} if triggered externally
*
* @class ChangelogQueueService
* @extends {Ember.Service}
* @uses ChangelogStreamService
* @uses ChangelogParserService
*/
export
default
Ember
.
Service
.
extend
({
export
default
Ember
.
Service
.
extend
({
changelogParser
:
Ember
.
inject
.
service
(),
changelogParser
:
Ember
.
inject
.
service
(),
_private
:
{
_private
:
{
...
...
This diff is collapsed.
Click to expand it.
app/services/visualisation-events.js
+
0
−
1
View file @
f87604e6
...
@@ -8,7 +8,6 @@ import Ember from 'ember';
...
@@ -8,7 +8,6 @@ import Ember from 'ember';
*
*
* @class VisualisationEventsService
* @class VisualisationEventsService
* @extends {Ember.Service}
* @extends {Ember.Service}
* @public
*/
*/
export
default
Ember
.
Service
.
extend
(
Ember
.
Evented
,
{
export
default
Ember
.
Service
.
extend
(
Ember
.
Evented
,
{
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment