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

[frontend] Fix page group updated when adding users #4979

Closed
wants to merge 0 commits into from

Conversation

CelineSebe
Copy link
Member

@CelineSebe CelineSebe commented Nov 24, 2023

Related issues

#4930

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@CelineSebe CelineSebe self-assigned this Nov 24, 2023
@CelineSebe CelineSebe added the filigran team use to identify PR from the Filigran team label Nov 24, 2023
const membersData = data.group?.members;
return (
<ListLinesContent
initialLoading={!data}
isLoading={isLoadingMore}
loadMore={loadMore}
hasMore={hasMore}
dataList={membersData?.edges ?? []}
dataList={groupData.edges ?? []}
Copy link
Member

Choose a reason for hiding this comment

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

You can't call groupData.edges and type groupData: string[], TypeScript won't be happy with that 👿

But more globally, I'm not sure this is the approach we want to fix the issue. By giving members in props you are bypassing Relay refetchable fragment defined in this file. Or if we want to do this that way, you need to remove query that is not used anymore in this file. @Kedae any sharing on this?

Copy link
Member

Choose a reason for hiding this comment

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

Well, it's working but I think we can update the connection from an outside component. I'll check because I think we have done that for tasks. I'll get back to you.

Copy link
Member

Choose a reason for hiding this comment

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

As discussed with @CelineSebe > We need to use insertNode and deleteNode but we need to find a way to propagate the paginationOptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants