Skip to content

ISSUE-670: Unable to add multiple new users in teams page - #820

Merged
harshach merged 1 commit into
open-metadata:mainfrom
vivekratnavel:issue-670
Oct 17, 2021
Merged

harshach merged 1 commit into
open-metadata:mainfrom
vivekratnavel:issue-670

Conversation

@vivekratnavel

Copy link
Copy Markdown
Contributor

Describe your changes :

Fixed the issue of hitting internal server error while adding multiple new users in the teams page as shown in the screen-shot gif below. While applying the patch internally, all the operations are sorted in reverse order of path to avoid errors while removing multiple entities. This causes add operation to fail since we try to apply the add operation with the highest index first resulting in an internal server error.

This patch fixes the issue by reverse sorting only the remove operations instead of all and provides a unit test to cover multiple "remove" and "add" operations.

fix #670

Type of change :

  • Bug fix

Frontend Preview (Screenshots) :

issue-670

Checklist:

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my own.
  • I have tagged my reviewers below.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

Reviewers

@sureshms @harshach

@harshach

Copy link
Copy Markdown
Collaborator

Thanks for the patch @vivekratnavel . LGTM. +1

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.

Unable to add multiple new user in teams page

2 participants