Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/custom_fields.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"custom_fields":[{"id":2,"name":"Discord ID","description":"ID used to link user to their discord account, to enable integration","customized_type":"user","field_format":"string","regexp":"","min_length":null,"max_length":null,"is_required":false,"is_filter":false,"searchable":false,"multiple":false,"default_value":"","visible":true},{"id":4,"name":"syncdata","description":"Metadata used to sync the ticket with external sources.\r\n\r\nCurrent format is thread-id|zulu-timestamp.\r\n\r\nNot recommend to edit.","customized_type":"issue","field_format":"string","regexp":"","min_length":null,"max_length":null,"is_required":false,"is_filter":true,"searchable":false,"multiple":false,"default_value":"","visible":false,"trackers":[{"id":2,"name":"Infra-Field"},{"id":4,"name":"Software-Dev"},{"id":6,"name":"Infra-Config"},{"id":8,"name":"External-Comms-Intake"},{"id":9,"name":"Comms"},{"id":10,"name":"Admin"},{"id":17,"name":"Research"}],"roles":[{"id":3,"name":"Administrator"}]},{"id":5,"name":"To/CC","description":"Contains the To and Cc headers from the email that created the ticket.","customized_type":"issue","field_format":"string","regexp":"","min_length":null,"max_length":null,"is_required":false,"is_filter":false,"searchable":true,"multiple":false,"default_value":"","visible":true,"trackers":[{"id":2,"name":"Infra-Field"},{"id":4,"name":"Software-Dev"},{"id":6,"name":"Infra-Config"},{"id":8,"name":"External-Comms-Intake"},{"id":9,"name":"Comms"},{"id":10,"name":"Admin"},{"id":13,"name":"Test-Reject"},{"id":17,"name":"Research"}],"roles":[]}]}
{"custom_fields":[{"id":2,"name":"Discord ID","description":"ID used to link user to their discord account, to enable integration","customized_type":"user","field_format":"string","regexp":"","min_length":null,"max_length":null,"is_required":false,"is_filter":false,"searchable":false,"multiple":false,"default_value":"","visible":true},{"id":4,"name":"syncdata","description":"Metadata used to sync the ticket with external sources.\r\n\r\nCurrent format is thread-id|zulu-timestamp.\r\n\r\nNot recommend to edit.","customized_type":"issue","field_format":"string","regexp":"","min_length":null,"max_length":null,"is_required":false,"is_filter":true,"searchable":false,"multiple":false,"default_value":"","visible":false,"trackers":[{"id":2,"name":"Infra-Field"},{"id":4,"name":"Software-Dev"},{"id":6,"name":"Infra-Config"},{"id":8,"name":"External-Comms-Intake"},{"id":9,"name":"Outreach-Partnerships"},{"id":10,"name":"Admin"},{"id":17,"name":"Research"},{"id":18,"name":"Mutual-Aid-Action"},{"id":19,"name":"SCN-Space"}],"roles":[{"id":3,"name":"Administrator"}]},{"id":5,"name":"To/CC","description":"Contains the To and Cc headers from the email that created the ticket.","customized_type":"issue","field_format":"string","regexp":"","min_length":null,"max_length":null,"is_required":false,"is_filter":false,"searchable":true,"multiple":false,"default_value":"","visible":true,"trackers":[{"id":2,"name":"Infra-Field"},{"id":4,"name":"Software-Dev"},{"id":6,"name":"Infra-Config"},{"id":8,"name":"External-Comms-Intake"},{"id":9,"name":"Outreach-Partnerships"},{"id":10,"name":"Admin"},{"id":13,"name":"Test-Reject"},{"id":17,"name":"Research"},{"id":18,"name":"Mutual-Aid-Action"},{"id":19,"name":"SCN-Space"}],"roles":[]}]}
20 changes: 14 additions & 6 deletions data/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
"id": 661,
"name": "blocked"
},
{
"id": 34,
"name": "comms-team"
},
{
"id": 650,
"name": "infra-config-team"
Expand All @@ -24,13 +20,25 @@
"id": 2279,
"name": "intake-team"
},
{
"id": 916,
"name": "mutual-aid-team"
},
{
"id": 34,
"name": "outreach-team"
},
{
"id": 917,
"name": "scn-space-member"
},
{
"id": 30,
"name": "software-dev-team"
},
{
"id": 2280,
"name": "uw-research-nsf-team"
"name": "uw-research-team"
}
]
}
}
4 changes: 2 additions & 2 deletions data/groups/2280.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"group": {
"id": 2280,
"name": "uw-research-nsf-team"
"name": "uw-research-team"
}
}
}
4 changes: 2 additions & 2 deletions data/groups/34.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"group": {
"id": 34,
"name": "comms-team"
"name": "outreach-team"
}
}
}
6 changes: 6 additions & 0 deletions data/groups/916.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"group": {
"id": 916,
"name": "mutual-aid-team"
}
}
6 changes: 6 additions & 0 deletions data/groups/917.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"group": {
"id": 916,
"name": "scn-space-member"
}
}
4 changes: 2 additions & 2 deletions data/issues/595.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"name": "feature request"
},
"subject": "Improved collaboration alerts for Redmine",
"description": "Owner = Assigned\r\nCollaborators = \"Watchers\" for Discord? (can turn off email- user setting)\r\nDue date, after which you have to give up the task by default (max 1 month)\r\nYour list is public\r\nEncourage people to carve out sub tickets\r\nOnly one owner and you can add yourself as Watcher \r\nCan you at mention watchers in a thread?\r\nYou can co own by creating a group\r\n\r\nAsks:\r\n* Command: \"Alert\" on a ticket/thread: if you're in a thread, it will know what ticket to alert on\r\n* Command: \"add yourself as a watcher\" for a ticket via Discord\r\n* Addition to \"new\" command- attach to a current ticket (as a sub ticket?)- this becomes a new thread\r\n* Unassign tickets that have not been touched for a certain amount of time eg 4 weeks- back to ticket intake, status back to new, send an alert to collaborators\r\n* Tracker to Discord channel mapping:\r\n- External Comms Intake- admin-team\r\n- Admin- admin-team\r\n- Comms- outreach\r\n- Infra-config- routing and infrastructure\r\n- Infra-field- installs\r\n- Software-dev- network software\r\n- Research- uw research nsf",
"description": "Owner = Assigned\r\nCollaborators = \"Watchers\" for Discord? (can turn off email- user setting)\r\nDue date, after which you have to give up the task by default (max 1 month)\r\nYour list is public\r\nEncourage people to carve out sub tickets\r\nOnly one owner and you can add yourself as Watcher \r\nCan you at mention watchers in a thread?\r\nYou can co own by creating a group\r\n\r\nAsks:\r\n* Command: \"Alert\" on a ticket/thread: if you're in a thread, it will know what ticket to alert on\r\n* Command: \"add yourself as a watcher\" for a ticket via Discord\r\n* Addition to \"new\" command- attach to a current ticket (as a sub ticket?)- this becomes a new thread\r\n* Unassign tickets that have not been touched for a certain amount of time eg 4 weeks- back to ticket intake, status back to new, send an alert to collaborators\r\n* Tracker to Discord channel mapping:\r\n- External Comms Intake- admin-team\r\n- Admin- admin-team\r\n- Outreach-Partnerships- outreach\r\n- Infra-config- routing and infrastructure\r\n- Infra-field- installs\r\n- Software-dev- network software\r\n- Research- uw research nsf",
"start_date": "2024-03-21",
"due_date": null,
"done_ratio": 75,
Expand Down Expand Up @@ -122,4 +122,4 @@
}
]
}
}
}
4 changes: 2 additions & 2 deletions data/trackers.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
{
"id": 9,
"name": "Comms",
"name": "Outreach-Partnerships",
"default_status": {
"id": 1,
"name": "New"
Expand Down Expand Up @@ -169,4 +169,4 @@
]
}
]
}
}
12 changes: 9 additions & 3 deletions netbot/netbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,27 @@
CHANNEL_MAPPING = {
"intake": "External-Comms-Intake",
"admin-team": "Admin",
"outreach": "Comms",
"outreach": "Outreach-Partnerships",
"mutual-aid": "Mutual-Aid-Action",
"routing-and-infrastructure": "Infra-Config",
"installs": "Infra-Field",
"repairs": "Infra-Field",
"network-software": "Software-Dev",
"scn-space": "SCN-Space",
"uw-research-nsf": "Research",
}

TEAM_MAPPING = {
"intake": "intake-team",
"admin-team": "admin-team",
"outreach": "comms-team",
"outreach": "outreach-team",
"mutual-aid": "mutual-aid-team",
"routing-and-infrastructure": "infra-config-team",
"installs": "infra-field-team",
"repairs": "infra-field-team",
"network-software": "software-dev-team",
"uw-research-nsf": "uw-research-nsf-team",
"scn-space": "scn-space-member",
"uw-research-nsf": "uw-research-team",
}

FALLBACK_TEAM = "admin-team"
Expand Down