Skip to content

Team membership lost if admin adds new membership that is on the 2nd page of available teams #1661

Description

@MarkusGeigerDev

Current Behavior

Team membership of a team that is among the first 10 teams (if ordered alphabetically) is lost if admin adds another team membership that is from table row 11 .. n

Steps to Reproduce

  1. Create user test
  2. Create 26 teams, named "A" to "Z"
  3. Add user to team A --> verify OK
  4. click on the "+" icon to add user to another team.
  5. Find team "X" by flipping through the pages (">") or by choosing a page size of 50
  6. Select X and click "Select"
  7. Verify that now user test is a member of X but no longer of A

Expected Behavior

User test should be a member of both, A and X

Dependency-Track Version

5.x

Browser

Microsoft Edge

Checklist

Vague suspicion (without having looked at the code!): In v4.x, the UI state was merged with the backend state (if UI had "X" and backend had "A", then the result was "A, X", but in v5.x it seems like the UI replaces the prior backend state with its current UI state, which is incomplete after using the pagination controls --> data is lost

Metadata

Metadata

Assignees

Labels

defectSomething isn't workingp2Non-critical bugs, and features that help organizations to identify and reduce risksize/SSmall effort

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions