메타에서 실험적 'lazy_loaded_categories' 기능 활성화

The category is also not always loaded for the “Your topic is similar to…” suggestions

1개의 좋아요

태그 선택기가 함께 사용되는 경우, 카테고리 선택기가 지연 로드된 카테고리에서 문제를 일으키는 것 같습니다. 예를 들어 Topics tagged official 을 열었을 때, 사이드바에 Customization > PluginCustomization > Extras 를 추가했는지에 따라 표시가 달라집니다.

둘 다 추가하면 모든 것이 정상적으로 작동합니다.

사이드바에서 Customization > Extras 를 제거하면 하위 카테고리 선택기가 표시되지 않습니다.

사이드바에서 Customization > Plugin 도 함께 제거하면 카테고리 드롭다운에 선택된 카테고리가 더 이상 표시되지 않습니다(그리고 카테고리 배너에도 카테고리가 표시되지 않음).

여기서 ‘Hot’ 또는 ‘Top’ 을 클릭하면 Discourse 가 카테고리 필터를 무시합니다. 예를 들어 https://meta.discourse.org/tags/c/plugin/22/official/l/latest 의 ‘Latest’ 에서 https://meta.discourse.org/tags/c/plugin/22/official/l/top 의 ‘Top’ 으로 전환되는 대신, https://meta.discourse.org/tag/official/l/top 으로 리디렉션됩니다.

2개의 좋아요

I noticed that “Navigate to first post after topics are read” does not always work when the category is not added to the sidebar. So I think it is because of lazy loaded categories.

  1. Remove Documentation > Contributing from your sidebar
  2. Read Contributing to Discourse development so you should be taken to the top at your next visit. (I would pin it if it’s unpinned to better find it later)
  3. Open Contributing to Discourse
  4. Reload
  5. Use the link to Documentation > Contributing below the title
  6. Open Contributing to Discourse Development

Then you see the last post instead of the first

It works as expected when Documentation > Contributing is added to the categories section of the sidebar

1개의 좋아요

When the desktop category page style is set to “Subcategories with Featured Topics” with lazy loading, subcategories aren’t separated and displayed. This makes the style effectively the same as “Categories with Featured Topics.”

I can imagine that this is the intended result, but wanted to check first. If it is, some additional description or warning might be needed.

Without Lazy Load:

With Lazy Load:

2개의 좋아요

Lazy load categories make it impossible to configure approval settings of categories. You can save, but after a reload the checkboxes are blank again.

Lazy load categories turned off:

Lazy loaded categories turned on:

2개의 좋아요

Can you have a look in the console, curious does the call to save the category fail?

Such an odd edge case.

1개의 좋아요

I think saving works fine. The problem is that the checkbox is empty after a refresh, so the current status is unknown. But since it’s only possible to check the checkbox, you have to enable it and save, to be able to turn it off.

When lazy load categories is disabled GET /c/test-3/find_by_slug.json is used, which returns those settings.

"category_setting": {
    "auto_bump_cooldown_days": 1, 
    "num_auto_bump_daily": 0, 
    "require_reply_approval": true, 
    "require_topic_approval": true
}

When lazy load categories is enabled GET /categories/find?slug_path=test-3&include_permissions=true does not return these.

1개의 좋아요