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

Identify inactive participants #6

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

SaiNikhileshReddy
Copy link
Contributor

Added Changes

  • all_weeks_connections.json # contains json of all pairs of weeks
  • active_inactive.json # contains separated active and inactive participants based on their last 3 weeks status

Copy link
Member

@aravindvnair99 aravindvnair99 left a comment

Choose a reason for hiding this comment

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

@SaiNikhileshReddy It would be better to print out along with what's already being printed (partner list for example) + saving it to a CSV file (pairs for example).

@aravindvnair99 aravindvnair99 linked an issue Apr 25, 2021 that may be closed by this pull request
@SaiNikhileshReddy
Copy link
Contributor Author

Partners list is getting printed to a csv file with "Week_"+week_no+".csv" from starting. You wanted inactive ppl in a json, so I did that.

@SaiNikhileshReddy
Copy link
Contributor Author

Can you be more precise?

@aravindvnair99
Copy link
Member

@SaiNikhileshReddy Ah nope, inactive people we need in CSV. A CSV file can be imported to contacts either directly or by converting to a VCF file. JSON can't be. Also that list only needs to contain inactive people.

Also, all_weeks_connections.json isn't required.

Right now what I'm doing is that I'm taking last 3 weeks, putting into one sheet, cleaning duplicates and saving to contacts. And then I'll check the group. Whoever isn't in my contacts are the ones to be deleted.

Having this feature in code itself saves time. Also when we say 3 weeks, are you including current week + last 2 weeks or last 3 weeks excluding current week?

@SaiNikhileshReddy
Copy link
Contributor Author

last three weeks and current week is not included into the json because they are not final yet. I'll print them to csv.

@pull-request-size pull-request-size bot added size/L and removed size/M labels May 6, 2021
@SaiNikhileshReddy
Copy link
Contributor Author

Fixed known issues. Removed json and replaced it with .csv for active and inactive participants. Let me know how it is working on your end.

Copy link
Member

@aravindvnair99 aravindvnair99 left a comment

Choose a reason for hiding this comment

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

@SaiNikhileshReddy
Copy link
Contributor Author

SaiNikhileshReddy commented May 6, 2021

They are fixed now.

@lgtm-com
Copy link

lgtm-com bot commented May 7, 2021

This pull request fixes 1 alert when merging 3f671ba into 89eaf7d - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented May 7, 2021

This pull request fixes 1 alert when merging 40d85e7 into c1fc812 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented May 7, 2021

This pull request fixes 1 alert when merging 8d639c5 into c1fc812 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented May 7, 2021

This pull request fixes 1 alert when merging a342d53 into c1fc812 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

Copy link
Member

@aravindvnair99 aravindvnair99 left a comment

Choose a reason for hiding this comment

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

@SaiNikhileshReddy DeepSource is a static code analysing tool. You can find the 2 issues mentioned here where the description is also given. Only those 2 are left. Once that's done, I'll add test data to the test. Right now, it's already running tests on every commit as you can see here. Expand to see the output.

It's reported by Pylint. You can read more about PYL-R1718 and PYL-W0621 in that link above itself or by searching online.

Click on the hyperlinks to learn more.

SaiNikhileshReddy and others added 3 commits May 10, 2021 23:35
Signed-off-by: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com>
@lgtm-com
Copy link

lgtm-com bot commented May 10, 2021

This pull request fixes 1 alert when merging e11fc22 into c1fc812 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

Copy link
Member

@aravindvnair99 aravindvnair99 left a comment

Choose a reason for hiding this comment

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

…SC-ASEB/Weekly-Shuffle-Partner-Generator into issue-5-Identify_inactive_participants
@lgtm-com
Copy link

lgtm-com bot commented May 11, 2021

This pull request fixes 1 alert when merging 59d3708 into c1fc812 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@SaiNikhileshReddy
Copy link
Contributor Author

All checks are done. Can you execute the code on your system for any issues. We can close the PR if the issues are fixed.

@lgtm-com
Copy link

lgtm-com bot commented May 22, 2021

This pull request fixes 1 alert when merging 2c7e703 into c1fc812 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

Signed-off-by: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com>
@aravindvnair99 aravindvnair99 force-pushed the issue-5-Identify_inactive_participants branch from 2c7e703 to 8a751be Compare May 22, 2021 22:28
@lgtm-com
Copy link

lgtm-com bot commented May 22, 2021

This pull request fixes 1 alert when merging 8a751be into c1fc812 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

Signed-off-by: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com>
@aravindvnair99 aravindvnair99 changed the title Added active and inactive ppl json Find active and inactive people May 22, 2021
@aravindvnair99 aravindvnair99 changed the title Find active and inactive people Identify inactive participants May 22, 2021
Copy link
Member

@aravindvnair99 aravindvnair99 left a comment

Choose a reason for hiding this comment

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

@SaiNikhileshReddy The algorithm seems wrong. I can see active being listed as inactive. Check output here: https://github.com/DSC-ASEB/Weekly-Shuffle-Partner-Generator/pull/6/checks?check_run_id=2647728690

@lgtm-com
Copy link

lgtm-com bot commented May 22, 2021

This pull request fixes 1 alert when merging 3e771bd into 62af3aa - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Jun 24, 2021

This pull request fixes 1 alert when merging 343f465 into 8ea7bc8 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Identify inactive participants
2 participants