# Category Banners Komponente ist nicht kompatibel mit 3.2.0.beta2

**URL:** https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240
**Category:** Bug
**Tags:** category-banners
**Created:** [24. Oktober 2023 um 09:33 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240 "2023-10-24T09:33:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [24. Oktober 2023 um 09:33 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240/1 "2023-10-24T09:33:07Z")

</div>

Ich habe gestern die Komponente #category-banners auf einer Website mit 3.2.0.beta2 aktualisiert und die Banner werden nicht mehr angezeigt. Ich **denke** , das liegt an dieser Änderung:

> <https://github.com/discourse/discourse-category-banners/pull/39/files#diff-8a0571d5ba4429dcef5d7ce2f2e49a3e55c91a15c0d697e3fa1b557899415a00>
>
> This commits introduces the follow changes:
> 
> 1. Use the \`renderInOutlet\` API ove…r the connectors convention
> 1. Renames \`discourse-category-banners\` component to \`category-banner\`
> which is more appropriate cause we are only rendering banner for one
> category.
> 1. Adds system tests

Insbesondere glaube ich, dass diese Änderung dazu führt, dass die Komponente API-Version 1.15.0 benötigt, während die neueste Beta nur bei 1.14.0 liegt.

Bei einem kurzen Blick sehe ich, dass die Komponente 1.13.0 für `renderInOutlet` benötigt, aber ich glaube nicht, dass sie 1.14.0 oder 1.15.0 benötigt, oder?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [24. Oktober 2023 um 10:19 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240/2 "2023-10-24T10:19:17Z")

</div>

Haben Sie kürzlich einen Rebuild durchgeführt? Ich vermute, Sie benötigen ein neues Basis-Image.

---

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [24. Oktober 2023 um 10:37 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240/3 "2023-10-24T10:37:10Z")

</div>

Vielen Dank für die Antwort. Ich bin sicher, Sie haben Recht, dass die Komponente mit der neuesten `tests-passed`-Version funktioniert, aber ich ziehe es vor, mich, wenn möglich, an die Beta-Versionen zu halten. Mein Beitrag sollte teilweise als Warnung für alle anderen dienen, die wie ich bei den Betas bleiben, und teilweise als Hinweis an das Team, dass die API-Versionsanforderung für diese Komponente vielleicht strenger ist, als sie sein muss.

Ich halte es für einen Fehler, weil die [.discourse-compatibility-Datei](https://github.com/discourse/discourse-category-banners/blob/main/.discourse-compatibility) speziell die Revision `1398eeeff550c1da186a47b6d3878d3230f62340` als funktionierend mit 3.2.0.beta2 auflistet, und ich glaube nicht, dass es irgendeine Möglichkeit gibt, dass dies der Fall ist.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [26. Oktober 2023 um 06:20 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240/4 "2023-10-26T06:20:46Z")

</div>

> [@simonk](#):
>
> aber ich bleibe, wenn möglich, lieber bei den Beta-Versionen. Mein Beitrag sollte teilweise eine Warnung an alle anderen sein, die wie ich bei den Betas bleiben, und teilweise ein Hinweis an das Team, dass die API-Versionsanforderung für diese Komponente vielleicht strenger ist, als sie sein muss.

Verwenden Sie eine bestimmte Version eines Beta-Tags? Wenn ja, können Sie mir bitte mitteilen, auf welchem Beta-Tag Sie sich befinden, damit ich nachsehen kann?

> [@simonk](#):
>
> listet speziell die Revision `1398eeeff550c1da186a47b6d3878d3230f62340` als funktionierend mit 3.2.0.beta2 auf,

In der Kompatibilitätsdatei haben wir `\u003c 3.2.0.beta2: 1398eeeff550c1da186a47b6d3878d3230f62340`, was besagt, dass jede Discourse-Version kleiner als `3.2.0.beta2` das Theme auf den Commit-Hash `1398eeeff550c1da186a47b6d3878d3230f62340` festlegt.

---

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [26. Oktober 2023 um 09:27 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240/5 "2023-10-26T09:27:58Z")

</div>

Hallo @tgxworld, danke für die Antwort.

> [@tgxworld](#):
>
> Läuft bei Ihnen eine bestimmte Version eines Beta-Tags? Wenn ja, können Sie mir bitte mitteilen, auf welchem Beta-Tag Sie sich befinden, damit ich nachsehen kann?

Ja, ich verwende den Tag v3.2.0.beta2 ([`be04154838`](https://github.com/discourse/discourse/commits/be04154838c2e5a38cd544770d3290a9e2801241)):

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/6/8/c682459c7614dab90d4b6e4797475083ecd9afc9.png)

Die von dieser Version unterstützte Plugin-API-Version ist 1.14.0:

> <https://github.com/discourse/discourse/blob/v3.2.0.beta2/app/assets/javascripts/discourse/app/lib/plugin-api.js#L138>

> [@tgxworld](#):
>
> In der Kompatibilitätsdatei haben wir `\u003c 3.2.0.beta2: 1398eeeff550c1da186a47b6d3878d3230f62340`, was besagt, dass jede Discourse-Version kleiner als `3.2.0.beta2` das Thema an den Commit-Hash `1398eeeff550c1da186a47b6d3878d3230f62340` anheften wird.

Revision `1398eeeff550c1da186a47b6d3878d3230f62340` von discourse-category-banners erfordert API-Version 1.15.0, die in v3.2.0.beta2 nicht verfügbar ist.

> <https://github.com/discourse/discourse-category-banners/blob/1398eeeff550c1da186a47b6d3878d3230f62340/javascripts/discourse/initializers/discourse-category-banners.js#L4>

API-Version 1.15.0 wurde in diesem Commit hinzugefügt:

> <https://github.com/discourse/discourse/commit/9ef3a18ce4dacb81746dd129a9f5b04fe3074fef#diff-ee6ac7b12e2cbef3b5cc8551e036f5badd0577b3d832b4252d7a680c4b8abae6>
>
> This commit adds a new admin UI under the route \`/admin-revamp\`, which is
> only …accessible if the user is in a group defined by the new \`enable\_experimental\_admin\_ui\_groups\` site setting. It
> also adds a special \`admin\` sidebar panel that is shown instead of the \`main\`
> forum one when the admin is in this area.
> 
> !\[image\](https://github.com/discourse/discourse/assets/920448/fa0f25e1-e178-4d94-aa5f-472fd3efd787)
> 
> We also add an "Admin Revamp" sidebar link to the community section, which
> will only appear if the user is in the setting group:
> 
> !\[image\](https://github.com/discourse/discourse/assets/920448/ec05ca8b-5a54-442b-ba89-6af35695c104)
> 
> Within this there are subroutes defined like \`/admin-revamp/config/:area\`,
> these areas could contain any UI imaginable, this is just laying down an
> initial idea of the structure and how the sidebar will work. Sidebar links are
> currently hardcoded.
> 
> Some other changes:
> 
> \* Changed the \`main\` and \`chat\` panels sidebar panel keys to use exported const values for reuse
> \* Allowed custom sidebar sections to hide their headers with the \`hideSectionHeader\` option
> \* Add a \`groupSettingArray\` setting on \`this.siteSettings\` in JS, which accepts a group site setting name
> and splits it by \`|\` then converts the items in the array to integers, similar to the \`\_map\` magic for ruby
> group site settings
> \* Adds a \`hidden\` option for sidebar panels which prevents them from showing in separated mode and prevents
> the switch button from being shown
> 
> \---------
> 
> Co-authored-by: Krzysztof Kotlarek \<kotlarek.krzysztof@gmail.com\>

…welcher noch nicht als Beta veröffentlicht wurde.

Um dies zu lösen, denke ich, dass die Theme-Komponente einfach API-Version 1.13.0 anfordern könnte (diejenige, die `api.renderInOutlet` eingeführt hat), die Teil von v3.2.0.beta2 ist.

> <https://github.com/discourse/discourse/commit/c00fd3e17d84e074a190da40744d02b944814eda#diff-ee6ac7b12e2cbef3b5cc8551e036f5badd0577b3d832b4252d7a680c4b8abae6R140>
>
> Until now, plugins/themes had to follow very specific directory structures to se…t up plugin outlet connectors. This commit introduces a new \`api.renderInOutlet\` API which makes things much more flexible. Any Ember component definition can be passed to this API, and will then be rendered into the named outlet.
> 
> For example:
> 
> \`\`\`javascript
> import MyComponent from "discourse/plugins/my-plugin/components/my-component";
> api.renderInOutlet('user-profile-primary', MyComponent);
> \`\`\`
> 
> When using this API alongside the gjs file format, components can be defined inline like
> 
> \`\`\`javascript
> api.renderInOutlet('user-profile-primary', \<template\>Hello world\</template\>);
> \`\`\`

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [26. Oktober 2023 um 23:36 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240/6 "2023-10-26T23:36:00Z")

</div>

@simonk Danke für die Recherche. Dies ist ein Fehler auf unserer Seite und ich habe ihn in [DEV: Use plugin api version 1.13.0 by tgxworld · Pull Request #43 · discourse/discourse-category-banners · GitHub](https://github.com/discourse/discourse-category-banners/pull/43) behoben.

---

<div class="post-metadata">

### Author: ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)
#### Post date: [27. Oktober 2023 um 09:33 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240/7 "2023-10-27T09:33:52Z")

</div>

@tgxworld danke! Ich kann bestätigen, dass die Komponente auf meiner Website mit v3.2.0.beta2 wieder funktioniert :+1:

Ich frage mich, ob Sie die Datei `.discourse-compatibility` bearbeiten sollten. Im Moment erhält jeder, der Versionen zwischen 3.1.999 und 3.2.0.beta2 verwendet, eine Version, die von Plugin-API-Version 1.15.0 abhängt. Sie sollten wahrscheinlich stattdessen auf `65a2cfc43fb5f6ffd2f8db3888552594ed21c501` (dem Commit vor dem Refactoring) gesetzt werden.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [28. Oktober 2023 um 07:00 UTC](https://meta.discourse.org/t/category-banners-component-not-compatible-with-3-2-0-beta2/283240/8 "2023-10-28T07:00:49Z")

</div>

Dieses Thema wurde nach 20 Stunden automatisch geschlossen. Neue Antworten sind nicht mehr möglich.
