Skip to content

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

Draft
weedySeaDragon wants to merge 7 commits intoAgileVentures:developfrom
weedySeaDragon:spike/sprint144-SPIKE-update-pom-year-annual-task-#177249747
Draft

SPIKE fix wrong year in H-brand card (Update pom year annual task )#963
weedySeaDragon wants to merge 7 commits intoAgileVentures:developfrom
weedySeaDragon:spike/sprint144-SPIKE-update-pom-year-annual-task-#177249747

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