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

SPIKE fix wrong year in H-brand card (Update pom year annual task ) #963

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

weedySeaDragon
Copy link
Collaborator

PT Story: H-Brand: Users are not seeing the correct year

PT URL: https://www.pivotaltracker.com/story/show/177249747

Didn't realize you were working on this, @RobertCram . This is what I started playing with, in case it's helpful in any way. Feel free to ignore everything. :-)

Basic idea: use Rails.cache.cache_delete_matched(...) to delete all cache entries for Users, Companies.

  • requires making the prefix for the cache keys public methods (for User, Company)
  • requires a condition timing to run it once a year (I thought that having a timing for the day of the year would accomplish this, and also be useful in the future)

INFO_MSG_START = 'update the Proof-of-Membership (POM) year'


def self.condition_response(condition, log, use_slack_notification: true)

Choose a reason for hiding this comment

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

Lint/UnusedMethodArgument: Unused method argument - use_slack_notification.

@weedySeaDragon weedySeaDragon marked this pull request as draft April 13, 2022 18:21
@weedySeaDragon weedySeaDragon changed the title SPIKE Update pom year annual task SPIKE fix wrong year in H-brand card (Update pom year annual task ) Apr 13, 2022
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