Computerized Maintenance Management System
November 19, 2020 • ToolHero

Asset has_many attachments with Shrine per account

Erik here. :wave:

I've been working on the problem area of an asset having multiple attachments assigned to it on a per-account level basis. 

Currently, the basic idea of attachments and assets is wired up and semi-reusable with StimulusJS and Shrine. Our development setup is just like what our production environment will be, we have an upload endpoint, we receive a file object upon successful upload. We'll just have a separate endpoint which our StimulusJS will consume.

I've been wanting to do a deep dive into Shrine on the 'ol blog to help formulate my thoughts and understanding of this setup. It utilizes quite a bit of non-standard plugins that are offered via Shrine but not widely covered on the internet.

We were faced with making a decision around whether or not to have a Digital Ocean Space per account or to have one DO Space. Our infrastructure whiz Ahad felt we could benefit longer term if there was way to keep account attachments as separate DO Spaces. This would be made possible by Shrine's default_storage and dynamic_storage plugins.

Tomorrow begins the playing in default_storage and dynamic_storage land. Wish me luck.
November 18, 2020 • ToolHero

A very brief introduction

Ahad L. Amdani
Shouldn't be by me. I'm just testing out the 12in12 platform for Chris and the ToolHero account for Tabish ;-) 

In any case, I'm Ahad and I'll be focused on architecture, infrastructure, ops and tooling, as well as getting ToolHero shipped out the door, otherwise known as delivery. Tabish is driving development and vision, and Erik is driving user experience and integrations. Hassan is focused on marketing, SEO and growth.

The goal for now is to get the current version of the product in customers hands as soon as possible. As we work towards that and have meaningful updates to share, we'll of course convene and communicate that accordingly, but hopefully we'll be able to leverage this as a sort of guidepost around our progress.
© 2023 12in12