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

Filter expired permissions from RAS Ga4gh Passports #240

Merged
merged 6 commits into from
Feb 11, 2025
Merged

Conversation

Gcolon021
Copy link
Contributor

Updated logic to exclude expired permissions when processing Ga4gh Passports and their corresponding RasDbgapPermissions. Adjusted tests to validate the new filtering behavior, ensuring only non-expired permissions are included.

Updated logic to exclude expired permissions when processing Ga4gh Passports and their corresponding RasDbgapPermissions. Adjusted tests to validate the new filtering behavior, ensuring only non-expired permissions are included.
@Gcolon021 Gcolon021 self-assigned this Feb 7, 2025
@Gcolon021 Gcolon021 added the enhancement New feature or request label Feb 7, 2025
Moved date initialization out of the loop in `RASPassPortService` for better efficiency. Added a new test case to ensure expired permissions are filtered correctly during GA4GH passport conversion. Enhanced assertions to validate expected behavior.
Replaced `new Date().toInstant()` with `Instant.now()` for clearer and more concise timestamp generation. This simplifies the code and eliminates unnecessary intermediate objects while maintaining the same functionality. Updated corresponding test cases to reflect the changes.
Updated timestamp calculations to use seconds instead of milliseconds for consistency with expected formats. Adjusted related test cases to align with the updated logic.
…lach/auth/service/impl/authentication/RASAuthenticationService.java
@Gcolon021 Gcolon021 merged commit f41e2c5 into release Feb 11, 2025
3 checks passed
@Gcolon021 Gcolon021 deleted the ALS-8324 branch February 11, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants