종료 시간이 있는 만료된 이벤트가 설정이 -1로 되어 있어도 예정된 이벤트에서 삭제됩니다

I am trying to utilise the Calendar Plugin, but it deletes the event from the calendar after it happens despite the fact that the settings are set to -1 to disable the deletion. I’ve also tried setting the expiry to two years (17532hrs) and that also removed the event straight after it happened.

The only way I’ve found to keep the events in the calendar is to remove the end time/date.

Does anyone know why the -1 doesn’t work, and what the solution is?

Thanks

안녕하세요, @Helen22 :slight_smile:

최근 이 플러그인을 검토하고 있었는데, 테스트 사이트에서 비교 확인을 위해 몇 개의 캘린더를 손쉽게 준비해 두었습니다. 문제가 발생하지 않는 부분에서 어떤 유형의 캘린더를 사용하고 계신지 여쭤봐도 될까요?

토픽에 있는 캘린더를 사용 중인데, 이 캘린더는 만료된 캘린더 항목들을 유지하고 있습니다:

카테고리 헤더로도 사용하고 있습니다:

이벤트 스타일 항목을 위한 /upcoming-event 캘린더도 하나 있습니다:

아직 이벤트 스타일의 카테고리를 헤더로 사용한 적은 없어서, 아마 그쪽일 것 같다는 느낌이 듭니다… :slight_smile:


사실, 종료 시간을 다시 한번 확인해 보겠습니다…

네, 종료 시간을 추가하면 이벤트가 /upcoming-event 캘린더에서 사라지는 것 같습니다. 이는 다른 캘린더의 동작 방식과 모순되는 것으로 보입니다. Contribute > Bug 카테고리로 이 문제를 넘겨서 누군가 확인해 볼 수 있도록 해야 할 것 같습니다. :+1:

(그리고, 확실하게 하기 위해 말씀드리면, 종료 날짜가 포함된 경우에도 이벤트 스타일이 아닌 캘린더는 예상대로 정상 작동하고 있습니다)

If you’re referring to the setting delete expired event posts after, I think it prevents the deletion of the post, but not the display of the event, plus I think the term event here is misleading, it’s in the calendar section so I think it means more “date related thing” than “event in the rsvp-possible sense”.
that’s a calendar-event, not an event-event

event-events are meant to be displayed in /upcoming-events hence nothing in the past…

There is a PR about that actually: FEATURE: Show all events in past (add deleted_at in discourse_calendar_post_event_dates) + add show_past_event in settings by ledadu · Pull Request #199 · discourse/discourse-calendar · GitHub

I couldn’t decide if the quirk was that it did show past events as long as they didn’t have an end time, or that it didn’t show the ones with an end time. It perhaps may be something I could include in the plugin topic rewrite if it’s a case of expectation versus actual behaviour?

:thinking: could an event be in the past if it doesn’t have an end time?

Car Chase Action GIF by Regal

I think the behavior now is expected, not showing past ones (ie with an end time in the past), but an option to be able to show all of them could be nice (but have unexpected UI side effect, I’m thinking here for instance: GitHub - paviliondev/layouts-event-list-widget: The Event List Widget allows you to display upcoming events in a sidebar using Pavilion's Custom Layouts Plugin. · GitHub)
If you’re going for a rewrite of the topic, pleeease :sweat_smile: “event” should really be exclusively used to describe events related things, it’s very confusing when related to calendar

Yup. :+1: And possibly even a tweak to some of the setting descriptions as well. :crossed_fingers:

Rather than ping pong it to another category just now, I’ll leave it here and see if I can absorb some further clarity before finding it a forever home. :slight_smile:

But thank you for being so knowledgable about this plugin, it is a genuine help. :+1: :slight_smile:

Thanks all for your comments -

We have the upcoming-events calendar from the hamburger menu, and the upcoming-events in the category. Neither of them are retaining the events.

Where do I find this?

I agree with this, as visually the upcoming events calendar looks more utilised when it is populated vs when there’s nothing to show in it.

다음 내용을 토픽의 원문(OP)에 추가하여 일반 캘린더를 만들 수 있습니다. (calendar enabled 체크박스를 선택해야 합니다)

[calendar]
[/calendar]

그런 다음 설명과 날짜가 포함된 모든 게시글이 캘린더에 추가됩니다. 예시:

It's my birthday!
[date-range from=2022-12-20 to=2020-12-21 timezone="America/Boise"]

더 눈에 띄는 위치에 표시하려면 카테고리 URL 끝에서 카테고리 ID를, 캘린더 토픽의 게시글 ID를 가져와야 합니다(이것은 JSON에서 확인할 수 있습니다). 그리고 이 설정에 추가하십시오:

이 토픽들의 캘린더 항목 게시글은 delete expired event posts after 설정으로 제어됩니다. :+1:

더 자세한 정보는 Discourse Events 토픽에서 확인할 수 있습니다. 추가 도움이 필요하시면 Support 토픽을 새로 생성하는 것도 좋습니다. :slightly_smiling_face:

사실, 설정이 예상대로 작동한다는 것을 알게 되었으므로, 이 토픽을 이제 영구적인 집인 #support로 이동시키는 것이 좋은 시점인 것 같습니다. Calendar&Event 문서를 업데이트한 후에는 누락된 아이디어를 다루기 위해 Contribute > UX 또는 Contribute > Feature 토픽을 새로 만드는 것도 가치가 있을 수 있습니다. :+1:

Thanks for your help @JammyDodger. I really appreciate it.

So just to circle back and clarify the answer my initial question, there is currently no way of keeping events in the upcoming-events calendar after they’ve happened, unless I remove the end time?

No worries. Glad to help. :slight_smile:

But yes, the only way to retain event-style items in the event-calendar/upcoming-events currently is to remove their end date. I wondered if another workaround to achieve something similar could be to create a ‘Past Events’ or ‘Event History’ calendar topic using calendar items? I’m not sure if that would be suitable for you, but may be worth an explore?

Yes, that might work. I will look into it. Thanks!