2023 walkthrough changes

This commit is contained in:
2023-11-28 14:30:02 -05:00
parent 0b236e142f
commit a4321d0a23
40 changed files with 314 additions and 231 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.12.5
// Generated by CoffeeScript 2.7.0
import DS from 'ember-data';
export default DS.Model.extend({
@@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.12.5
// Generated by CoffeeScript 2.7.0
import DS from 'ember-data';
export default DS.Model.extend({
+1 -1
View File
@@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.12.5
// Generated by CoffeeScript 2.7.0
import DS from 'ember-data';
export default DS.Model.extend({
@@ -1,11 +1,11 @@
// Generated by CoffeeScript 1.12.5
// Generated by CoffeeScript 2.7.0
import DS from 'ember-data';
export default DS.Model.extend({
conditional_base_value: DS.attr('string', {
defaultValue: ''
}),
connection_type: DS.attr('string'),
connection_type: DS.attr('string'), // attached, constraint, info
workflow_action_definition: DS.belongsTo('panda/workflow-action-definition', {
inverse: 'workflow_action_connections'
}),
@@ -1,4 +1,4 @@
// Generated by CoffeeScript 1.12.5
// Generated by CoffeeScript 2.7.0
var Model;
import Ember from 'ember';
@@ -19,16 +19,16 @@ Model = {
name: Ember.computed.alias('title'),
description: DS.attr('string'),
isEditing: DS.attr('boolean', {
defaultValue: false
defaultValue: false //TODO: remove, is from PMBC
}),
done: DS.attr('boolean', {
defaultValue: false
defaultValue: false //TODO: remove, is from PMBC
}),
position: DS.attr('number', {
defaultValue: 0
}),
value_type: DS.attr('string', {
defaultValue: 'boolean'
defaultValue: 'boolean' // means checkbox progress type
}),
value_type_select_options: DS.attr({
defaultValue: function() {
@@ -37,7 +37,7 @@ Model = {
}),
extra_info: DS.attr('string'),
offset_type: DS.attr('string', {
defaultValue: 'none'
defaultValue: 'none' // none, attached, configured
}),
overdue_coulance: DS.attr('number', {
defaultValue: 0
@@ -45,6 +45,9 @@ Model = {
completes_group: DS.attr('boolean', {
defaultValue: false
}),
// Offset tree
//action_offset_base: DS.belongsTo('workflow-action-definition', inverse: 'action_offset_dependents')
//action_offset_dependents: DS.hasMany('workflow-action-definition', inverse: null) # do not give with api, will clear inverse if not given
workflow_group: DS.belongsTo('panda/workflow-group'),
project: DS.belongsTo('panda/project', {
inverse: 'workflow_action_definitions'
@@ -61,6 +64,7 @@ Model = {
dependent_workflow_action_offsets: DS.hasMany('panda/workflow-action-offset', {
inverse: 'base_workflow_action_definition'
}),
//project_scenarios: DS.hasMany('panda/project-scenario', inverse: 'workflow_action_definitions')
project_scenarios: DS.hasMany('panda/project-scenario'),
project_instance_actions: DS.hasMany('panda/project-instance-action', {
inverse: 'workflow_action_definition'
@@ -85,12 +89,17 @@ Model = {
})
};
//drag_identifier: Ember.computed 'id', 'workflow_group.id', 'position', ->
// "#{@get('id')}-#{@get('workflow_group.id')}-#{@get('position')}"
//smart_position: Ember.computed 'done', 'position', ->
// num = @get('position')
// if @get('done') then num + 1000 else num
add_business_day_computations(Model, 'offset', {
add_attributes: true
});
add_business_day_computations(Model, 'batch_element_threshold', {
add_attributes: true
add_attributes: true //, default_unit: 'businessday'
});
export default DS.Model.extend(Model);