Skip to content

LG-15273 Create a Redis Set to track Socure users#11773

Merged
theabrad merged 10 commits intomainfrom
abrad-lg-15273-redis-track-users
Jan 23, 2025
Merged

LG-15273 Create a Redis Set to track Socure users#11773
theabrad merged 10 commits intomainfrom
abrad-lg-15273-redis-track-users

Conversation

@theabrad
Copy link
Copy Markdown
Contributor

🎫 Ticket

Link to the relevant ticket:
LG-15273

🛠 Summary of changes

We created a redis set to track unique socure users and keep a count of them. This gives us the ability to add users and to check the count of socure users.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Check that the specs test the correct functionality and that they pass

theabrad and others added 4 commits January 17, 2025 13:26
Co-authored-by: Abir Shukla <ashukla@gsa.gov>
changelog: Internal, Doc Auth Socure, Create a Redis set to track Socure users
Copy link
Copy Markdown
Contributor

@AShukla-GSA AShukla-GSA left a comment

Choose a reason for hiding this comment

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

LGTM!

@zachmargolis
Copy link
Copy Markdown
Contributor

How long is this meant to be kept around for?

@theabrad
Copy link
Copy Markdown
Contributor Author

How long is this meant to be kept around for?

We are keeping it around until we can lift the limit of socure users allowed in.

@zachmargolis
Copy link
Copy Markdown
Contributor

How long is this meant to be kept around for?

We are keeping it around until we can lift the limit of socure users allowed in.

I think in that case, maybe REDIS_POOL might be a better fit? I feel like the throttle pool is something we could wipe out and expect the application to recover from easily, but this would not survive as well

Copy link
Copy Markdown
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

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

Looks great except that I would rename SocureUser to SocureUserSet.

@theabrad theabrad merged commit 0ca2e57 into main Jan 23, 2025
@theabrad theabrad deleted the abrad-lg-15273-redis-track-users branch January 23, 2025 17:56
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.

5 participants