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

Add caching to the organization profile viewset #1876

Merged
merged 5 commits into from
Aug 27, 2020

Conversation

FrankApiyo
Copy link
Member

@FrankApiyo FrankApiyo commented Aug 14, 2020

Closes #1879

Changes introduced in this PR

  • Add caching; ensure it's updated and busted correctly for the UserProfile and OrganizationProfile viewsets
  • Update tests

@FrankApiyo FrankApiyo force-pushed the add-organization-and-user-profile-caching branch 4 times, most recently from 2884a9b to 1980f67 Compare August 21, 2020 11:28
@FrankApiyo FrankApiyo changed the title [WIP]Add caching to the organization profile viewset Add caching to the organization profile viewset Aug 21, 2020
"""
Specific to clear cache between tests
"""
cache.clear()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should also call super(self.__class__, self).tearDown()... In case the inherited class also has some custom tearDown functionality maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

done!

@FrankApiyo FrankApiyo force-pushed the add-organization-and-user-profile-caching branch 2 times, most recently from 51ebf7e to 2b04753 Compare August 24, 2020 09:34
@FrankApiyo FrankApiyo requested review from DavisRayM and pld and removed request for pld August 24, 2020 09:34
@FrankApiyo FrankApiyo force-pushed the add-organization-and-user-profile-caching branch from 2b04753 to 44c7da6 Compare August 24, 2020 11:44
@FrankApiyo FrankApiyo self-assigned this Aug 26, 2020
@DavisRayM DavisRayM merged commit e70a8b5 into master Aug 27, 2020
@DavisRayM DavisRayM deleted the add-organization-and-user-profile-caching branch August 27, 2020 08:03
This was referenced Aug 28, 2020
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.

Add caching to UserProfile and OrganizationProfile viewsets
3 participants