Skip to content

Diya 🔥 fix(teams): Show Inactive Teams#2153

Merged
one-community merged 1 commit intodevelopmentfrom
Diya_Fix_ShowInactiveTeams
Apr 7, 2026
Merged

Diya 🔥 fix(teams): Show Inactive Teams#2153
one-community merged 1 commit intodevelopmentfrom
Diya_Fix_ShowInactiveTeams

Conversation

@DiyaWadhwani
Copy link
Copy Markdown
Contributor

Description

Fixes a bug where inactive teams disappeared from the Teams page after a page reload. When a team was set to inactive, it would correctly appear in the Inactive Teams tab before reload, but after reload, it was missing from both the Active and Inactive tabs.

Related PRs:

None

Main changes explained:

  • Update src/controllers/teamController.js — remove $match: { isActive: true } stage from the getAllTeams aggregation pipeline so all teams, regardless of status, are returned to the frontend

How to test:

  1. Check out this branch
  2. Run npm install and start the backend server
  3. Clear site data/cache
  4. Log in as an Owner or Admin
  5. Go to the Teams page
  6. Set any team to inactive via the status toggle
  7. Verify the team appears in the Inactive Teams tab and the inactive count increments
  8. Reload the page
  9. Verify the team still appears in the Inactive Teams tab after reload and is not visible in the Active Teams tab
  10. Verify the Total Teams, Active Teams, and Inactive Teams counts are all correct after reload

Screenshots or videos of changes:

ShowInactiveTeams.mp4

@one-community one-community changed the title Diya fix(teams): Show Inactive Teams Diya 🔥 fix(teams): Show Inactive Teams Apr 7, 2026
@one-community one-community merged commit 0525cfe into development Apr 7, 2026
2 checks passed
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

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