Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback resource phase2 #47

Merged
merged 3 commits into from
Sep 26, 2024
Merged

Conversation

RonAzar
Copy link
Owner

@RonAzar RonAzar commented Sep 26, 2024

•Implemented API endpoints for get Status, update Status, get Filtered Feedbacks

@RonAzar RonAzar force-pushed the RonAzar/Feedback-resource-phase2 branch from 7f71ab7 to b0322e9 Compare September 26, 2024 06:05
@RonAzar RonAzar changed the base branch from master to RonAzar/Response-dao-updated-removing-companyID September 26, 2024 06:06
Base automatically changed from RonAzar/Response-dao-updated-removing-companyID to master September 26, 2024 07:25
@RonAzar RonAzar force-pushed the RonAzar/Feedback-resource-phase2 branch from b0322e9 to f390cfa Compare September 26, 2024 07:26
	•Implemented API endpoints for get Status, update Status, get Filtered Feedbacks
@RonAzar RonAzar force-pushed the RonAzar/Feedback-resource-phase2 branch from f390cfa to efe22e9 Compare September 26, 2024 08:04
          if (no permission) return
@RonAzar RonAzar requested a review from vasofi September 26, 2024 08:30
Copy link
Collaborator

@vasofi vasofi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the new lines
make sure you don't have conflicts

* Phase 2 - Step 4: Implement HR Response API

	•Added FeedbackResponseResource.kt to handle feedback response submissions.
	•Integrated role and permission checks to ensure authorized access for response submission.

* Phase 2 - Step 4: Implement HR Response API

	•Added FeedbackResponseResource.kt to handle feedback response submissions.
	•Integrated role and permission checks to ensure authorized access for response submission.

* fix to--> it's cleaner if you do:
          if (no permission) return

* Refactored permission validation in RolePermissionValidator to make it less dependent on specific API endpoints. Moved role and permission checks closer to where they are used in resource classes, enhancing maintainability and adhering to clean code principles. (#51)

recognize abortWith doesn't work properly
@RonAzar RonAzar merged commit 728b908 into master Sep 26, 2024
2 checks passed
@RonAzar RonAzar deleted the RonAzar/Feedback-resource-phase2 branch September 26, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants