Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FF Bug: Duplicated list #1816

Closed
danoswaltCL opened this issue Aug 8, 2024 · 2 comments · Fixed by #1822
Closed

FF Bug: Duplicated list #1816

danoswaltCL opened this issue Aug 8, 2024 · 2 comments · Fixed by #1822
Assignees
Labels
bug Something isn't working epic: feature flags priority: high High priority issue release 6.0

Comments

@danoswaltCL
Copy link
Collaborator

Observed in demo, in some circumstance of navigating between root and detail page, the Include List table duplicated an entry.

@zackcl do you know the steps to reproduce?

@danoswaltCL danoswaltCL added the priority: high High priority issue label Aug 8, 2024
@zackcl
Copy link
Collaborator

zackcl commented Aug 8, 2024

Yes, you can add an inclusion list and then simply refresh the details page to see the duplicated list. I believe this happens due to a newly added effect from 2 days ago (#1759):

  upsertFeatureFlagInclusionList$ = createEffect(() =>
    this.actions$.pipe(
      ofType(FeatureFlagsActions.actionAddFeatureFlagInclusionList),
      map((action) => action.list),
      withLatestFrom(this.store$.pipe(select(selectSelectedFeatureFlag))),
      switchMap(([list, flag]) => {
        const request = {
          flagId: flag.id,
          ...list,
        };
        return this.featureFlagsDataService.addInclusionList(request).pipe(
          map((listResponse) => FeatureFlagsActions.actionUpdateFeatureFlagInclusionListSuccess({ listResponse })),
          catchError((error) => of(FeatureFlagsActions.actionUpdateFeatureFlagInclusionListFailure({ error })))
        );
      })
    )
  );

I think this had been replaced with addFeatureFlagInclusionList$ but somehow got included again in the PR. Commenting out that effect fixed the duplication issue for me. I can create a PR to remove this code.

@zackcl zackcl self-assigned this Aug 8, 2024
@zackcl zackcl moved this from Refined ToDo to In Progress in UpGrade Project Aug 8, 2024
@zackcl zackcl moved this from In Progress to Code Review in UpGrade Project Aug 8, 2024
@amurphy-cl amurphy-cl assigned bcb37 and unassigned zackcl Sep 3, 2024
@bcb37
Copy link
Collaborator

bcb37 commented Sep 4, 2024

QA: not seeing duplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working epic: feature flags priority: high High priority issue release 6.0
Projects
Status: Done
3 participants