keyshade-xyz / keyshade

Realtime secret and configuration management tool, with the best in class security and seamless integration support
https://keyshade.xyz
Mozilla Public License 2.0
131 stars 74 forks source link

API: Implement global search feature in workspace #309

Open rajdip-b opened 3 weeks ago

rajdip-b commented 3 weeks ago

Description

Given a certain workspace, we would like to search the following items by partial name or note/description:

Also note, we would only like to display the items that the user has access to.

Solution

rajdip-b commented 3 weeks ago

@kriptonian1 looks good?

kriptonian1 commented 3 weeks ago

Yeap

Tirthchoksi22 commented 3 weeks ago

/attempt

github-actions[bot] commented 3 weeks ago

Assigned the issue to @Tirthchoksi22!

Tirthchoksi22 commented 3 weeks ago

@rajdip-b Hey I am participating Foss Hack so should i made the PR right now or during the hackathon ??

rajdip-b commented 3 weeks ago

Hey buddy! We already have a few PRs related to the hackathon. As per the guidelines, the hackathon hours are the best for it. But if you want to, you can also make the PR now.

But, we won't be able to merge them before the timeline!

Tirthchoksi22 commented 3 weeks ago

@rajdip-b Hey I have made the PR pls review it

Tirthchoksi22 commented 3 weeks ago

@rajdip-b Volunteer of the foss hacks are saying that the PR commits at the time of hackathons will only be considered for evaluation so what should I do now as I have made the commit already

rajdip-b commented 3 weeks ago

You can take down the PR! No worries about that. Alternatively, you can also ask them about what can be done.

If they are looking at the commit timeline, I would say you can redo this entire commit once again in the hackathon window.

rajdip-b commented 3 weeks ago

@Tirthchoksi22 could you please join our Discord channel aswell? We have quite a few active FOSS contributors over there, so we can discuss this problem :)

Tirthchoksi22 commented 3 weeks ago

You can take down the PR! No worries about that. Alternatively, you can also ask them about what can be done.

If they are looking at the commit timeline, I would say you can redo this entire commit once again in the hackathon window.

@rajdip-b they are looking at the commit timeline so better I take down the PR but before that pls review it tell me the change so at the hackathon time I can just directly commit with the changes

rajdip-b commented 3 weeks ago

You can take down the PR! No worries about that. Alternatively, you can also ask them about what can be done. If they are looking at the commit timeline, I would say you can redo this entire commit once again in the hackathon window.

@rajdip-b they are looking at the commit timeline so better I take down the PR but before that pls review it tell me the change so at the hackathon time I can just directly commit with the changes

Yeap! That's underway :)

rajdip-b commented 3 weeks ago

Okay look, about the PR:

If you go through our permission structure, you would find that there is an AuthorityChecker class that does all the heavylifting of RBAC. So in this case, you would need to do the following:

Tirthchoksi22 commented 3 weeks ago

so i dont have to write seperate methods in project service but for this i have to make indiviual methods like getprojects in workspace.service itself and same with the other three. will it be fine than?

rajdip-b commented 3 weeks ago

so i dont have to write seperate methods in project service but for this i have to make indiviual methods like getprojects in workspace.service itself and same with the other three. will it be fine than?

Yeap that would be correct.