devguard icon indicating copy to clipboard operation
devguard copied to clipboard

add component occurrence repository for org-wide package search, expe…

Open 5byuri opened this issue 1 month ago • 1 comments

…cted struct added and made interface public , actual sql search in componentn_occurrece_repository an

5byuri avatar Oct 31 '25 11:10 5byuri

This looks really good! What do you think about deleting the component occurence controller in favor of the component_controller. I think you can just move your function to the component_controller. Same for the component occurence repository. I think the function can be moved to the component_repository as well.

Permission-Checking should be done in a middleware, like no other user is even allowed to call your route. Currently you are doing the heavy query BEFORE the permission check and you are just discarding the result. Have a look at the api.go file, there are a lot of middlewares applied to different routes.

timbastin avatar Nov 12 '25 09:11 timbastin