Skip to content

Commit

Permalink
Event Room Availability: Too Many Meetings Warning
Browse files Browse the repository at this point in the history
- when the search results in more than 10000 meetings a warning is shown (as the query is limited to 10001 records)
- same warning/behaviour as on the Events page
  • Loading branch information
tomas-muller committed Sep 15, 2023
1 parent 17f3299 commit e2091ff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,14 @@ public int compare(EventInterface e1, EventInterface e2) {
}

private void populate(List<EventInterface> result, Integer sortBy) {
int nrMeetings = 0;
for (EventInterface event: result)
nrMeetings += event.getMeetings().size();
if (nrMeetings > CONSTANTS.maxMeetings())
iHeader.setErrorMessage(MESSAGES.warnTooManyMeetings(CONSTANTS.maxMeetings()));
else
iHeader.clearMessage();

for (int i = 0; i < iTables.getWidgetCount(); i++) {
Widget w = iTables.getWidget(i);
if (w instanceof TimeGrid)
Expand Down
10 changes: 10 additions & 0 deletions WebContent/help/Release-Notes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@
</description>
</item>
</category>
<category>
<title>Event Management</title>
<item>
<name>Event Room Availability: Too Many Meetings Warning</name>
<description>
<line>When the search results in more than 10000 meetings a warning is shown (as the query is limited to 10001 records).</line>
<line>This is the same warning as on the Events page.</line>
</description>
</item>
</category>
<category>
<title>Administration</title>
<item>
Expand Down

0 comments on commit e2091ff

Please sign in to comment.