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

Added dynamic number of days to use when checking when users registered #1163

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

MICHAELMUNAVU83
Copy link
Collaborator

@MICHAELMUNAVU83 MICHAELMUNAVU83 commented Nov 20, 2024

  • I setup a dynamic number of days that we use to filter users registration time when we are showing potential partners on the sidebar .
    For dev and test env , we have

# configures the number of days behind we check when showing users on the sidebar for potential partners
config :animina, :number_of_days_to_filter_registered_users, 60

And in prod , we have

# configures the number of days behind we check when showing users on the sidebar for potential partners

config :animina, :number_of_days_to_filter_registered_users, 600

@MICHAELMUNAVU83 MICHAELMUNAVU83 marked this pull request as ready for review November 20, 2024 10:39
@@ -120,8 +120,8 @@ defmodule Animina.Accounts.User do
define :by_username_as_an_actor, args: [:username]
define :custom_sign_in, get?: true
define :request_password_reset_with_password
define :female_public_users_who_created_an_account_in_the_last_60_days
define :male_public_users_who_created_an_account_in_the_last_60_days
define :female_public_users_who_created_an_account_in_the_last_number_of_days
Copy link
Collaborator

Choose a reason for hiding this comment

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

We will come into the coding hell for those long variable names. 😂

@wintermeyer wintermeyer merged commit 07e28eb into main Nov 25, 2024
1 check passed
@wintermeyer wintermeyer deleted the setup-number-of-days-checker branch November 25, 2024 09:27
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