Skip to content

Scheduler#4

Open
NyanHelsing wants to merge 3 commits into
cos-labs:masterfrom
NyanHelsing:scheduler
Open

Scheduler#4
NyanHelsing wants to merge 3 commits into
cos-labs:masterfrom
NyanHelsing:scheduler

Conversation

@NyanHelsing

@NyanHelsing NyanHelsing commented May 10, 2017

Copy link
Copy Markdown
Contributor

Rewrites scheduler
New models and relationships + updates to admin
Filtering by case; submission form and admin panel.

)
request_message.save()
request_message.origin.add(action),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the actual functions that implement the behavior of action objects

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved from operations.py; still more to come.

Comment thread service/workflow/admin.py
from workflow.models import Value


class WorkflowListFilter(SimpleListFilter):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This filter is new

Comment thread service/workflow/admin.py
return queryset


class CaseListFilter(SimpleListFilter):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This filter is new

Comment thread service/workflow/admin.py
@admin.register(models.Message)
class Message(admin.ModelAdmin):
list_display = ("id", )
#

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the admin classes got updated to reflect model changes

@@ -1,280 +1,294 @@
# -*- coding: utf-8 -*-
'''Workflow Models'''
"""Workflow Models"""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PEP says use " for docstrings

import Ember from 'ember';
/* global Freewall */
//import 'bower_components/freewall/freewall';
//

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont need that

//filter: {
return this.modelFor('cases.case').get('messages')
//}
//});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prune dead stuff

export default DS.JSONAPISerializer.extend({
attrs: {
}
});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prune

export default DS.JSONAPISerializer.extend({
attrs: {
}
});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prune

<h3>Parameters</h3>
{{#each message.response.parameters as |parameter|}}
<div>Parameter Key: {{parameter}}</div>
{{/each}}-->

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant