Skip to content

Conversation

@Aulud
Copy link
Contributor

@Aulud Aulud commented Sep 4, 2019

[Bugfix] Fix playground share links not sharing execution time limit

Summary: Resolves #877 by ensuring the 'Share' button encodes the execution time limit in the output URL.

Changelog

  • Update the playground saga to additionally encode the new parameter exec (for execTime) in the generated URL
  • Add a new helper function parseExecTime for parsing the exec field in shared playground links to an execTime to update the Playground workspace with
    • If the exec parameter is missing or not a number or parsed to a number less than 1000 ms, the default execution time limit of 1000 ms for the Playground is used instead.

Last updated 4 Sept 2019, 11:55PM

@Aulud
Copy link
Contributor Author

Aulud commented Sep 4, 2019

@Eclmist - saw your simple raytracing program in Source. If possible, can you pull this branch and verify the changes fix the issue? I've tested it locally in the development environment with a few cases and it works as intended for me. Thanks!

@coveralls
Copy link

coveralls commented Sep 4, 2019

Pull Request Test Coverage Report for Build 3427

  • 7 of 10 (70.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 36.99%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Application.tsx 6 7 85.71%
src/containers/ApplicationContainer.ts 0 2 0.0%
Totals Coverage Status
Change from base Build 3425: 0.1%
Covered Lines: 2690
Relevant Lines: 6512

💛 - Coveralls

@Eclmist
Copy link

Eclmist commented Sep 4, 2019

Verified working on my end with no obvious issues or side-effects. Looking good!

@geshuming
Copy link
Contributor

Don't close issues without the associated PR being merged in.

Using keywords like 'Resolves' and "Fixes" will link the PR to the issue and close it automatically when this PR is merged

@geshuming geshuming merged commit 0b2b0a1 into source-academy:master Sep 8, 2019
wltan pushed a commit to Source-Academy-Game/cadet-frontend that referenced this pull request Feb 19, 2020
…cademy#919)

* Encode and decode interpreter execution time in playground share links

* Fix broken playground saga tests
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.

Playground share link does not share execution time limit

4 participants