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

Add unique github id check #96

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

bshien
Copy link
Collaborator

@bshien bshien commented Nov 4, 2024

Description

Add unique github id check when scraping MAINTAINERS.md file in case of duplicate github ids.

Issues Resolved

Part of #75

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.87%. Comparing base (91099eb) to head (dee9e74).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #96      +/-   ##
============================================
+ Coverage     86.84%   86.87%   +0.02%     
- Complexity      317      318       +1     
============================================
  Files            69       69              
  Lines          1764     1767       +3     
  Branches         79       80       +1     
============================================
+ Hits           1532     1535       +3     
  Misses          195      195              
  Partials         37       37              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

maintainersList.add(maintainerData);
if(!maintainerIdSet.contains(githubId)){ // Add only unique github ids
maintainerIdSet.add(githubId);
maintainersList.add(maintainerData);
Copy link
Member

Choose a reason for hiding this comment

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

After added to maintainerIdSet, where is this maintainerIdSet used? Still I see as maintainersList.add(maintainerData);.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Line 257 to check if the id is within the set

import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

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

Better not to use the .*;.
Thanks

Signed-off-by: Brandon Shien <[email protected]>
@bshien bshien merged commit fad3dc8 into opensearch-project:main Nov 4, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants