Skip to content
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

Scheduler #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Scheduler #4

wants to merge 3 commits into from

Conversation

NyanHelsing
Copy link
Contributor

@NyanHelsing NyanHelsing commented May 10, 2017

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
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
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.

from workflow.models import Value


class WorkflowListFilter(SimpleListFilter):
Copy link
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

return queryset


class CaseListFilter(SimpleListFilter):
Copy link
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

@admin.register(models.Message)
class Message(admin.ModelAdmin):
list_display = ("id", )
#
Copy link
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
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
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
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
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
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
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