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 creator filter in user history redirection #6124

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

Archidoit
Copy link
Member

@Archidoit Archidoit commented Feb 26, 2024

issue: get all relationships (or entities) created by a user, from the user view, seems to break the filters

Steps to reproduce:

  • go to a user overview
  • in the history, click on the 'view all relationships created by the user' button
    image
  • we are redirected to the list of relationships with a filter on the creator
    Bug: this filter can't be edited

@Archidoit Archidoit added filigran team use to identify PR from the Filigran team filters temporarily used to identify filter issue to facilitate filter team’s work identification labels Feb 26, 2024
@Archidoit Archidoit added this to the Release 6.0.0 milestone Feb 26, 2024
@Archidoit Archidoit self-assigned this Feb 26, 2024
@@ -65,6 +66,7 @@ const UserHistory: FunctionComponent<UserHistoryProps> = ({
],
operator: 'eq',
mode: 'or',
id: generateUUID(), // because filters in the URL
Copy link
Member

Choose a reason for hiding this comment

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

why do we need an id in filters ? and it's using a method from tests_e2e, I don't think its the right import.

Copy link
Member

Choose a reason for hiding this comment

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

in filtersUtils.tsx, I see that you use :
id: uuid(),
I guess if we have now a logic with id in filters, we should use this same method uuid(), no?

Copy link
Member

Choose a reason for hiding this comment

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

I change by uuid().

@jpkha jpkha force-pushed the issue/user-history-redirection branch from 4ad21f2 to 46b3533 Compare February 27, 2024 13:28
@Kedae Kedae removed this from the Release 6.0.0 milestone Feb 27, 2024
@jpkha jpkha merged commit cb26a80 into master Feb 27, 2024
4 of 6 checks passed
@jpkha jpkha deleted the issue/user-history-redirection branch February 27, 2024 14:47
Archidoit added a commit that referenced this pull request Jun 6, 2024
Co-authored-by: Jean-Philippe Kha <jean-philippe.kha@filigran.io>
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 filters temporarily used to identify filter issue to facilitate filter team’s work identification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants