Skip to content

feat: Add excluding for categories - #143

Open
arnesetzer wants to merge 2 commits into
pelias:masterfrom
arnesetzer:feat/categories-exclude
Open

feat: Add excluding for categories#143
arnesetzer wants to merge 2 commits into
pelias:masterfrom
arnesetzer:feat/categories-exclude

Conversation

@arnesetzer

@arnesetzer arnesetzer commented Sep 11, 2026

Copy link
Copy Markdown

👋 I did some awesome work for the Pelias project and would love for everyone to have a look at it and provide feedback.

This is the first of two PRs who needs to be merged together. The second one is here: pelias/api#1725


Here's the reason for this change 🚀

For a project I need the functionality to exclude categories like layers which is currently not possible. Maybe it is a useful thing to have on upstream.


Here's what actually got changed 👏

  • view/categories.js: Add support for excluding categories by adding a "must_not" array
  • test/view/cateogries.js: Tests

Here's how others can test the changes 👀

  • Run the tests

@Joxit Joxit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Thank you for using pelias and submitting PR 😄
I put some comments in your code.
Could you also keep the same indentation / code style on all unchanged lines ? This will help us for the review and reduce the number of unnecessary changes.

Comment thread layout/FallbackQuery.js Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread layout/FallbackQuery.js Outdated
@arnesetzer
arnesetzer force-pushed the feat/categories-exclude branch from bcb0954 to c52f0a3 Compare September 11, 2026 16:25
@arnesetzer
arnesetzer force-pushed the feat/categories-exclude branch from c52f0a3 to e17334a Compare September 11, 2026 16:31
@arnesetzer

Copy link
Copy Markdown
Author

Fixed the mix up. Sorry again. After running npm run lint without any errors/warnings I hope the code is properly intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants