Skip to content

Cache dance party freeplay level - #46857

Merged
jamescodeorg merged 1 commit into
stagingfrom
jamescodeorg/cache-dance-freeplay
Jun 21, 2022
Merged

Cache dance party freeplay level#46857
jamescodeorg merged 1 commit into
stagingfrom
jamescodeorg/cache-dance-freeplay

Conversation

@jamescodeorg

@jamescodeorg jamescodeorg commented Jun 14, 2022

Copy link
Copy Markdown
Contributor

Finishing off the work to cache all free play levels that was started here.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

it 'Strips cookies from the penultimate dance level' do
assert strips_session_specific_cookies_from_request? '/s/dance/lessons/1/levels/12'
assert strips_session_specific_cookies_from_request? '/s/dance-2019/lessons/1/levels/9'
it 'Strips cookies from dance levels' do

@jamescodeorg jamescodeorg Jun 14, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was unable to verify these tests locally and Drone may not run them either so DTT may be the first place these will be run. I will keep an eye on the pipeline after I merge.

@jamescodeorg
jamescodeorg requested a review from a team June 14, 2022 21:32
end

it 'Strips cookies from the penultimate dance level' do
assert strips_session_specific_cookies_from_request? '/s/dance/lessons/1/levels/12'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We lost this /dance/ (not 2019) test, no longer needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There are lots of scripts and levels that we cache (and strip cookies from) so I changed this test to more of a spot check that some arbitrary levels in an arbitrary cached script behaves as expected.

@jamescodeorg
jamescodeorg merged commit 72c5ee5 into staging Jun 21, 2022
@jamescodeorg
jamescodeorg deleted the jamescodeorg/cache-dance-freeplay branch June 21, 2022 22:29
@bethanyaconnor bethanyaconnor mentioned this pull request Sep 9, 2022
8 tasks
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