Skip to content

Incident filtering fixes#1216

Merged
Mygod merged 3 commits into
mainfrom
incident-filtering
May 11, 2026
Merged

Incident filtering fixes#1216
Mygod merged 3 commits into
mainfrom
incident-filtering

Conversation

@Mygod
Copy link
Copy Markdown
Collaborator

@Mygod Mygod commented May 10, 2026

No description provided.

@Mygod Mygod added the Bug Something isn't working label May 10, 2026
@Mygod Mygod requested a review from Copilot May 10, 2026 03:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes incident/invasion filtering behavior so Rocket invasions are handled consistently across client marker rendering and server-side filtering, while reducing duplication in invasion metadata refresh logic.

Changes:

  • Client: stop clearing markerInvasions when an incident “blocker” is present so invasions can still influence marker state/rendering.
  • Server: centralize invasion state updates into EventManager.setInvasions() (used both at startup and on refresh) to keep invasions, rocketGruntIDs, and rocketLeaderIDs in sync.
  • Server: refactor Rocket invasion filtering into Pokestop.invasionMatchesFilters() and add clearer, early-return exclusions (confirmed-only, exclude grunts/leaders, MAD made-up invasions).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/features/pokestop/incidentPriority.js Ensures invasions remain part of marker incident state even when a stronger blocker exists.
server/src/services/EventManager.js Adds setInvasions() helper to keep invasion metadata and derived Rocket ID lists consistent.
server/src/models/Pokestop.js Extracts invasion filter logic into reusable helpers and aligns filtering with new exclusion options.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 21b265a113

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/features/pokestop/incidentPriority.js Outdated
@Mygod Mygod merged commit 94510ee into main May 11, 2026
2 checks passed
@Mygod Mygod deleted the incident-filtering branch May 11, 2026 17:34
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.43.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Bug Something isn't working released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants