이벤트 설명 길이 제한을 늘려주세요

site-wide only

  • max number of characters in an event description – increase from 1000 to ?? maybe 3000?

I have users who want to put a significant amount of text into the event description. This would be useful if it is desirable that the description be carried into google calendar, for instance, so just putting the text into the topic wouldn’t satisfy that use case.

Based on FEATURE: Add event location/description and "My Events" filter (#746) · discourse/discourse-calendar@bdf8869 · GitHub it looks like this is limited in the database to 1000 characters – is there a reason TEXT isn’t being used instead of STRING(1000)? (more of a database question – I am not familiar with any limitations use of ruby requires)

Can this be made bigger, or unlimited?

2개의 좋아요

You mean the description in the pop up dialog box when you create an event? Do your users see that somewhere? So putting the description in the topic where you are creating the event won’t work for your use case?

I’m talking about the text box under Description when you create the event

This shows up in the event as such

We are a running club and use the desciption for turn by turn directions, and if the route gets long there is concern there isn’t enough room.

The additional text is in the topic, but if the user saves to their calendar it isn’t visible on their calendar entry (at least for google calendar), but the description is.

ok, I get it

That is why I asked, so they would prefer it all fit on their calendar and not have to look at the topic.

1개의 좋아요

For me, the ideal would be to put it in the event preview

For me, this has two advantages

  • it avoids having to click on the event to see the description, allowing people to see if the event in question is interesting or not
  • same case for adding to the personal calendar. Seeing the description beforehand helps me decide whether or not to add it to my calendar, avoiding too many manipulations

Be careful, this is just an idea. It’s sometimes easier said than coded :sweat_smile:

제가 겪는 가장 큰 문제는 사용자가 이벤트 설명을 추가할 때 ***묵시적 실패(silent failure)***가 발생한다는 점입니다. 설명이 1,000자를 초과하면 이벤트 데이터베이스 레코드가 생성되지 않는 것으로 보입니다. 텍스트는 여전히 [event] 블록 내에서 토픽에 남아 있지만, 이벤트 자체는 사용자에게 어디에서도 표시되지 않습니다.

이러한 상황이 발생했음을 인지하고 토픽 게시물에 들어가서 설명을 이벤트 블록 밖으로 이동시켜야 합니다.

discourse/plugins/discourse-events/app/models/discourse_post_event/event.rb at 2ad5c29a2cda0513086295c0601cb7524ad5d87f · discourse/discourse · GitHub 에서 설명이 검증되고 있음을 확인했습니다. MAX_DESCRIPTION_LENGTH를 업데이트하는 것은 충분히 간단해 보이지만, 솔직히 Ruby/Discourse에 대해 충분히 숙지하지 못해 데이터베이스 마이그레이션을 추가하는 방법을 알지 못합니다. 또한 제 버전이 표준 버전과 어떤 식으로든 달라지는 것을 원하지 않습니다(다만 플러그인으로 이 마이그레이션을 수행할 수 있을지 모르겠습니다).

이 필드를 STRING(1000) 대신 TEXT로 마이그레이션하면 이 문제를 해결할 수 있을 것 같습니다(참고: discourse/plugins/discourse-events/db/migrate/20250616101945_add_description_to_event.rb at main · discourse/discourse · GitHub) 하지만 현재 282개의 풀 리퀘스트가 대기 중임을 확인했습니다.

2개의 좋아요

우연히도 이 문제는 방금 버그 보고서로 보고되었습니다: Event silently fails if description is longer than 1000 characters

3개의 좋아요