apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
696 stars 216 forks source link

[FEATURE] support pre-hook when operating a resource #4028

Open lw-yang opened 1 week ago

lw-yang commented 1 week ago

Describe the feature

support pre-hook when operating a resource

Motivation

No response

Describe the solution

No response

Additional context

No response

FANNG1 commented 1 week ago

@lw-yang could you provide more context why you need this feature?

lw-yang commented 1 week ago

@FANNG1 event bus is equivalent to a post-hook, and we also requires a pre-hook to inject some custom logic, such as doing custom permission checks, determining whether an approval process is necessary, and so on.