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.

Soft limit for maxEventCount

See original GitHub issue

Summary

When you have e.g. 4 events per day, set maxDaysToShow: 2 and maxEventCount: 6 you’ll have only half of tomorrows events listed. If you could set maxEventSoftCount: 6, tomorrow would either not shown or shown completely (depending on the way the function would be implemented)

Motivation

This is especially relevant if you have multiple calendars in the card or lots of events per day in one calendar. With the current hard limit, it can give the impression, that you only have e.g. 2 events for the last day shown in the calendar card while instead you have e.g. 4 events. If you look on the calendar card to plan something for the last day shown, you could miss an already planned event.

Describe alternatives you’ve considered

Instead of another limit setting, there could be a soft-limit-flag:

maxEventCount: 6
maxEventSoft: true

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
marksie1988commented, Jan 4, 2021

In testing I have the following:

maxDaysToShow: 7
maxEventCount: 3

image

maxDaysToShow: 7
maxEventCount: 3
softLimit: 1

image

maxDaysToShow: 7
maxEventCount: 6
softLimit: 1

image

maxDaysToShow: 7
maxEventCount: 6
softLimit: 3

image

1reaction
marksie1988commented, Jan 2, 2021

I also find JS a headache, I’m mainly a backend developer so it stumps me quite a bit!

Ok I think I understand now and also took a quick look at the other card you mentioned.

So I think I will add two new options: softLimit: 3 This would then show 3 events over the limit if 3 or less exist, in a case where more exist a link will be shown.

Where no softLimit is set then it will just show a link and count of missing events.

I will see what I can do 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Soft limit for maxEventCount · Issue #311 - GitHub
Summary When you have e.g. 4 events per day, set maxDaysToShow: 2 and maxEventCount: 6 you'll have only half of tomorrows events listed....
Read more >
SparkMAX soft limit help needed - Programming - Chief Delphi
Hello! We are a new team and try to use SparkMax soft limit feature this year. We see below example from RevRobotics: We...
Read more >
The softlimit program - DJ Bernstein's
The softlimit program. softlimit runs another program with new resource limits. ... softlimit sets soft resource limits as specified by opts.
Read more >
Amazon EventBridge quotas - AWS Documentation
PutPartnerEvents has a soft limit of 1,400 throughput requests per second and 3,600 burst requests per second by default in all Regions. Invocation...
Read more >
Qtree events - NetApp
Qtree events provide you with information about the qtree capacity and the file and disk limits so that you can monitor for potential...
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