question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to limit expired moments

See original GitHub issue

Add a boolean configuration setting to limit the number of expired moments kept. Boolean to keep users from setting stupid values.

This will keep very long running games from slowing down and reduce save bloat at the cost of breaking the visited family of functions.

Tasks

  • Add the Config.history.limitExpired boolean property (default: false). When enabled, expired moments will be limited to some TBD amount—probably the default max states or twice that; i.e., 40 or 80.
  • Make the visited family of functions throw with an appropriate error message when the above setting is enabled.
  • Loudly warn, in its documentation, that enabling the setting will break the visited family of functions and that it should not be changed mid-project, since it drops history.

Maybe

  • Make State.expired immutable.
  • Add warnings about the setting to the documentation of the visited family of functions?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tmedwardscommented, Sep 14, 2022

I think I’m just going to delete the #sugarcube channel and forget this shitshow ever happened. 😏

0reactions
tmedwardscommented, Sep 15, 2022

You didn’t need to do that. As I said, I’m not blaming anyone but myself for this fiasco.

I do appreciate the effort though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Importance of Time Value in Options Trading - Investopedia
If we compare the prices of each option at a certain moment in time, each with different expiration dates (February, March, and April),...
Read more >
Lifecycle configuration elements - AWS Documentation
One or more transition or expiration actions with a date or a time period in the object's lifetime when you want Amazon S3...
Read more >
How To Remove Expired Subscriptions On iPhone - YouTube
Let's remove any of your inactive or expired app subscriptions on your app store so no one can see them on your iPhone....
Read more >
Survey Options - Qualtrics
Quotas: Create and monitor quotas on your surveys. Translations: Translate your survey into multiple languages, allowing respondents to choose which language to ...
Read more >
Use Sharing Suggestions in Photos - Apple Support
If you want to create a space for ongoing collaborative photo ... send you photos capturing angles and moments that you might have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found