Since we’re making channels in Slack via our project creation, it made sense to archive them when the project was completed. In projects (this particular post type) we have a custom field for the start date of the project and one for the end date of the project. Step one is to check on updates whether the post has the end-date field filled out. In my case, this is one of the legacy ACF fields that survived my great metadata purge. So checking it is done like so . . . The Slack archive API piece looks like this. And finally we run this function when projects are updated like so. We’re still experimenting with this workflow and archiving is a decent start. You can easily reactivate it and results still turn up in searches. It’s likely we’ll also rename it from p-whatever to z-whatever to get it out of the way.
Image from page 279 of “The Ladies’ home journal” (1889) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) In working through the project page a bit more, it seemed like it’d be more pleasant to start in WordPress and have our events echo outward in other services. One of those events is the creation of project specific Slack channels. In the past, I’d mainly listened for events . . . programmatically checking back every so often to see if something had occurred so I could do something else. In this case it made more sense to have one action directly precipitate another. These are the three functions that fire when we publish the custom-post-type Project.1 In any case, it’s a pretty instantaneous creation and invitation to the channels. 1 I don’t know how to punctuate that but it’s probably not hyphens.
Image from page 249 of “The development of the chick; an introduction to embryology” (1919) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) I ended up doing this while pursuing some of the API integration stuff for our projects page. It doesn’t list the private pages and might be useful to someone. This was the byproduct of looking for a way to look up the ID for a particular channel which ended up looking like this.
flickr photo shared by ReflectedSerendipity under a Creative Commons ( BY-SA ) license Like everyone else it seems, we started using Slack at work. It’s been a while (maybe 6 months?) and I’ve had mixed feelings which seem to be echoed by the group so I thought I’d take a harder look at our use and at least sketch out my personal feelings about where it’s working for me and where I’m struggling. As you should expect, your mileage should vary. Do not trust me. I am an unreliable narrator. I may not even know what’s going on here. Umwelt and all that. Workflow & Intent On my end, I thought Slack was worth pursuing mainly because of archive and search. Workflow baby. I’ve had a number of jobs and it’s really ugly to come in somewhere and realize any documentation that exists is in email exchanges. Those emails may forwarded to you in bulk or individually as you request information or they could simply disappear. That’s pretty horrific and if the emails are between the person you replaced and a faculty member, it’s really easy to simply lose all that information. The archive is valuable and while formal documentation is important a chunk of this stuff ought to be available through organic means. Given we’ve had a fair amount […]