c2corg / c2corg/c2c_ui

Bug: Excluded categories for forum widget not working

Open
#2,612 4 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Vue
Stars
29
Forks
33
Avg merge
7m
Merged PRs (30d)
2

Description

**Describe the bug**
Some categories which are in EXCLUDED_CATEGORIES are not excluded.
Example : 23/03/22 13h55
![image](https://user-images.githubusercontent.com/24532066/159704609-bcdf2da9-0ee2-44a1-a772-052599bc4cf2.png)

```
https://forum.camptocamp.org/t/cherche-partenaire-alpi-4000m/295879

const EXCLUDED_CATEGORIES = [
// https://forum.camptocamp.org/c/comments
// document's comments
29,
[...]
// https://forum.camptocamp.org/c/partenaires/partenaires-alpinisme-cascade-de-glace
// mountaineering buddy finder
113,
```

I found this because I'm working on a widget which would show only "not mountaineering" categories (Site and Association, contributeurs...), but whatever changes I've done on the constant EXCLUDED_CATEGORIES, it stay still.

**Reproduce**
On local server, delete all categories in the constant EXCLUDED_CATEGORIES, this change nothing on the result.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the forum widget and its EXCLUDED_CATEGORIES constant, then reproduce the issue on a local server with the constant emptied. Trace where category data is filtered and verify that changing the constant changes the widget result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.