Better HN
topnewbestaskshowjobs
Log inSign up

bryantgillespie

2 karma · joined Nov 3, 2023 (3y ago) · 7 submissions

Submissions

comment 1y ago · link · parent

Almost forgot - full disclosure - Bryant here from the Directus core team.

comment 1y ago · link · parent

You can certainly add whatever logic you want / need using custom hooks in Directus.

Here's the docs for custom hooks. https://directus.io/docs/guides/extensions/api-extensions/ho...

But honestly, depending on the complexity of your logic you may not even need custom hooks. You can get really granular with the built-in access policies and permissions.

As long as you have relationships configured with the user collection you can reference those in your permissions.

Here's an example rule for accessing items within a `projects` table that hides any projects that don't belong to the current agency partner.

{"_and":[{"partner":{"id":{"_eq":"$CURRENT_USER.agency_partner_id.id"}}}]}

Each project a many to one relationship to agency_partners. Each user has a many to one relationship to agency_partners.

You can even scope this down to allow / hide specific fields if you want.

comment 2y ago · link · parent

Agreed. Thanks for clarifying.

comment 2y ago · link · parent

Thanks! Exactly the type of feedback I was after.

You feel it's the joke / script that needs tightening? or the actual delivery?

comment 2y ago · link · parent

Sorry for any confusion. When you say title do you mean the title of the post here on HN? Or like the title of the page or video on the website?

comment 2y ago · link · parent

Hi folks - looking to get some real feedback outside of my own team / circle here - good, bad, ugly - whatever.

I'm a developer advocate at a startup. Over the last few months my team and I have been working hard to build and launch our own little content hub. We wanted to create a bunch of shows that developers find entertaining and educational.

We've gotten some really solid feedback about several of the shows but one there's one I'm on the fence about continuing. We'll start recording the next round soon and I'm need to decide whether it's worth spending more time on this particular one.

It's a parody of the old Saturday Night Live skit - Deep Thoughts by Jack Handy. So it's a very very very (haha) dry style of humor.

Of course, I think it's funny and I had a blast recording the episodes. But I'm also a mid-30s dad of three little girls so I wouldn't really call myself a "tastemaker" . I'm worried a lot of the context is lost if you're not familiar with that SNL skit.

So my question is – is this actually funny to you? Does it resonate? Or does it just miss the mark? Waste of time to record more episodes?

Thanks in advance! Bryant G

7.

Ask HN: Is This Funny?(directus.io ↗)

1 points · by bryantgillespie · 2y ago · 8 comments