Skip to content

Comments

fix: guest user flow issue#1079

Merged
ThinuwanW merged 2 commits intodevelopfrom
fix/guest-user-flow-issue
Feb 20, 2026
Merged

fix: guest user flow issue#1079
ThinuwanW merged 2 commits intodevelopfrom
fix/guest-user-flow-issue

Conversation

@akilarootcode
Copy link
Contributor

PR checklist

TaskId: (https://github.com/SkappHQ/skapp/issues/[id])

Summary

How to test

Project Checklist

  • Changes build without any errors
  • Have written adequate test cases
  • Done developer testing in
    • Chrome
    • Firefox
    • Safari
  • Code is formatted with npm run format
  • Code is linted with npm run check-lint
  • No unnecessary comments left in code
  • Made corresponding changes to the documentation

Other

  • New atomic components added
  • New molecules added
  • New pages(routes) added
  • New dependencies installed

PR Checklist

  • Pull request is raised from the correct source branch
  • Pull request is raised to the correct destination branch
  • Pull request is raised with correct title
  • Pull request is self reviewed
  • Pull request is self assigned
  • Suitable pull request status labels are added (ready-for-code-review)

Additional Information

@akilarootcode akilarootcode self-assigned this Feb 20, 2026
Copilot AI review requested due to automatic review settings February 20, 2026 03:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a guest user flow issue by adding a new repository method to query employees including guest employees. Guest employees (those with the PM_GUEST_EMPLOYEE role) are typically filtered out in most employee queries, but this new method allows them to be included when needed, such as for resource availability calendars.

Changes:

  • Added findEmployeesIncludingGuests method to EmployeeRepository interface
  • Implemented the method in EmployeeRepositoryImpl to search employees without filtering out guest users

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
backend/src/main/java/com/skapp/community/peopleplanner/repository/EmployeeRepository.java Added interface method declaration for findEmployeesIncludingGuests with the same signature as the existing findEmployees method
backend/src/main/java/com/skapp/community/peopleplanner/repository/impl/EmployeeRepositoryImpl.java Implemented findEmployeesIncludingGuests method similar to findEmployees but without the PM_GUEST_EMPLOYEE role exclusion filter and without joining the EmployeeRole table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -234,6 +234,47 @@ else if (employeeIds != null && !employeeIds.isEmpty()) {
return query.getResultList();
}

Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

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

The method findEmployeesIncludingGuests is missing the @Override annotation. All other methods in this implementation class that implement interface methods have the @Override annotation (see line 193 for the similar findEmployees method). This annotation should be added for consistency and to ensure compile-time verification that this method correctly overrides the interface method.

Suggested change
@Override

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@sonarqubecloud
Copy link

@ThinuwanW ThinuwanW merged commit b0f8447 into develop Feb 20, 2026
3 of 4 checks passed
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